5
# code for passing host/build options to configure
6
export DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
7
export DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
8
ifeq ($(DEB_BUILD_GNU_TYPE), $(DEB_HOST_GNU_TYPE))
9
confflags += --build $(DEB_HOST_GNU_TYPE)
11
confflags += --build $(DEB_BUILD_GNU_TYPE) --host $(DEB_HOST_GNU_TYPE)
14
configure: configure-stamp
17
./configure $(confflags) \
19
--mandir=\$${prefix}/share/man \
21
--localstatedir=/var \
24
--disable-maintainer-mode \
25
--disable-dependency-tracking \
26
--with-ldap-lib=openldap \
27
--with-ldap-conf-file=/etc/nslcd.conf \
28
--with-nslcd-pidfile=/var/run/nslcd/nslcd.pid \
29
--with-nslcd-socket=/var/run/nslcd/socket
32
build: configure-stamp build-stamp
39
-test -r /usr/share/misc/config.sub && \
40
cp -f /usr/share/misc/config.sub config.sub
41
-test -r /usr/share/misc/config.guess && \
42
cp -f /usr/share/misc/config.guess config.guess
45
[ ! -f Makefile ] || $(MAKE) distclean
47
debconf-updatepo --verbose
53
$(MAKE) install DESTDIR=$(CURDIR)/debian/tmp
54
# make configfile fully generated
55
rm -f $(CURDIR)/debian/tmp/etc/nslcd.conf
57
# install a pam-auth-update configuration file
58
install -D -m 644 debian/libpam-ldapd.pam-auth-update debian/tmp/usr/share/pam-configs/ldap
60
# build architecture-independent files
61
binary-indep: build install
62
# we have nothing to do by default
64
# build architecture-dependent files
65
binary-arch: build install
85
binary: binary-indep binary-arch
6
DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
11
# pass extra flags to configure
12
override_dh_auto_configure:
13
dh_auto_configure -- \
14
--libdir=/lib/$(DEB_HOST_MULTIARCH) \
15
--with-pam-seclib-dir=/lib/$(DEB_HOST_MULTIARCH)/security \
18
# run the tests but ignore the results
19
override_dh_auto_test: