File: rules

package info (click to toggle)
nss-pam-ldapd 0.9.10-2
  • links: PTS, VCS
  • area: main
  • in suites: buster, sid
  • size: 4,768 kB
  • sloc: ansic: 16,287; sh: 6,589; python: 3,368; xml: 1,925; makefile: 294; exp: 146
file content (33 lines) | stat: -rwxr-xr-x 880 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/make -f

export DH_VERBOSE=1

# multiarch support
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

# enable hardening options
export DEB_BUILD_MAINT_OPTIONS=hardening=+all

%:
	dh $@ --with python2

# pass extra flags to configure
override_dh_auto_configure:
	dh_auto_configure -- \
	            --libdir=/lib/$(DEB_HOST_MULTIARCH) \
	            --with-pam-seclib-dir=/lib/$(DEB_HOST_MULTIARCH)/security \
	            --enable-warnings \
	            --enable-pynslcd

# run the tests but ignore the results
override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	-chmod o-rwx tests/nslcd-test.conf
	-dh_auto_test
	-cat tests/test-suite.log
endif

# generate a pynslcd init script on the fly
override_dh_installinit:
	sed 's/^\(# Provides: *\|NSLCD_NAME=\)nslcd/\1pynslcd/' debian/nslcd.init > debian/pynslcd.init
	dh_installinit