3
include /usr/share/cdbs/1/class/makefile.mk
4
DEB_UPSTREAM_VERSION := $(shell echo $(DEB_VERSION) | sed 's/-[^-]*//')
5
# strip of a optionally added cvs patch (format: upstream+cvs-debian)
6
DEB_UPSTREAM_TARBALL_VERSION := $(shell echo $(DEB_UPSTREAM_VERSION) | sed 's/+[^+]*//')
7
DEB_TAR_SRCDIR := nss_ldap-$(DEB_UPSTREAM_TARBALL_VERSION)
8
include /usr/share/cdbs/1/class/autotools.mk
5
9
include /usr/share/cdbs/1/rules/debhelper.mk
6
include /usr/share/cdbs/1/class/autotools.mk
10
include /usr/share/cdbs/1/rules/simple-patchsys.mk
11
include /usr/share/cdbs/1/rules/tarball.mk
8
DEB_CONFIGURE_EXTRA_FLAGS += --enable-rfc2307bis --with-ldap-lib=openldap --with-ldap-conf-file=/etc/libnss-ldap.conf --with-ldap-secret-file=/etc/libnss-ldap.secret --enable-schema-mapping --enable-paged-results --enable-configurable-krb5-ccname-gssapi
9
13
DEB_DESTDIR = $(CURDIR)/debian/tmp
14
MY_INST_DIR = $(CURDIR)/debian/libnss-ldap/usr/share
15
DEB_CONFIGURE_EXTRA_FLAGS += \
17
--with-ldap-lib=openldap \
18
--with-ldap-conf-file=/etc/libnss-ldap.conf \
19
--with-ldap-secret-file=/etc/libnss-ldap.secret \
20
--enable-schema-mapping \
21
--enable-paged-results \
22
--enable-configurable-krb5-ccname-gssapi
10
23
DEB_OPT_FLAG += -fPIC
12
MY_INST_DIR = $(CURDIR)/debian/libnss-ldap/usr/share
26
# Keep file autoconf list out of the diff
30
# after the directories are created but before dh_compress is run.
31
common-binary-post-install-arch::
14
34
binary-post-install/libnss-ldap::
16
mv $(MY_INST_DIR)/man/man5/nss_ldap.5 $(MY_INST_DIR)/man/man5/libnss-ldap.conf.5
36
mv $(MY_INST_DIR)/man/man5/nss_ldap.5 \
37
$(MY_INST_DIR)/man/man5/libnss-ldap.conf.5
17
38
# change all references from /etc/ldap.conf to /etc/libnss-ldap.conf
18
39
for file in $(MY_INST_DIR)/man/man5/libnss-ldap.conf.5 \
19
40
$(MY_INST_DIR)/libnss-ldap/ldap.conf ; do \
20
41
sed -i -e 's:/etc/ldap.conf:/etc/libnss-ldap.conf:g' \
21
42
-e 's:/etc/ldap.secret:/etc/libnss-ldap.secret:g' $$file; \