File: rules

package info (click to toggle)
libnss-ldap 265-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 2,628 kB
  • sloc: ansic: 16,912; sh: 3,357; perl: 284; makefile: 105
file content (28 lines) | stat: -rwxr-xr-x 947 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
#!/usr/bin/make -f

# Needed to find cvslib.pl during the build process
export PERL5LIB=.

%:
	dh $@ --with autoreconf

override_dh_auto_configure:
	dh_auto_configure -- \
	  --libdir=/lib/$(DEB_HOST_MULTIARCH) \
	  --enable-rfc2307bis \
	  --with-ldap-lib=openldap \
	  --with-ldap-conf-file=/etc/libnss-ldap.conf \
	  --with-ldap-secret-file=/etc/libnss-ldap.secret \
	  --enable-paged-results \
	  --enable-configurable-krb5-ccname-gssapi

override_dh_install:
	mv debian/libnss-ldap/usr/share/man/man5/nss_ldap.5 debian/libnss-ldap/usr/share/man/man5/libnss-ldap.conf.5
	rm -rf debian/libnss-ldap/etc
	dh_install
	# change all references from /etc/ldap.conf to /etc/libnss-ldap.conf
	for file in debian/libnss-ldap/usr/share/man/man5/libnss-ldap.conf.5 \
		debian/libnss-ldap/usr/share/libnss-ldap/ldap.conf ; do \
	  sed -i -e 's:/etc/ldap.conf:/etc/libnss-ldap.conf:g' \
		 -e 's:/etc/ldap.secret:/etc/libnss-ldap.secret:g' $$file; \
	done;