From 938d9decdb5c1e1543454b557f1269b310d897c8 Mon Sep 17 00:00:00 2001 From: Arthur de Jong Date: Sun, 7 Aug 2011 16:40:40 +0000 Subject: build Debian packages with multiarch support git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-pam-ldapd@1491 ef36b2f9-881f-0410-afb5-c4e39611909c --- debian/rules | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) (limited to 'debian/rules') diff --git a/debian/rules b/debian/rules index 530e008..b5747fa 100755 --- a/debian/rules +++ b/debian/rules @@ -2,17 +2,19 @@ export DH_VERBOSE=1 +# multiarch support +DEB_HOST_MULTIARCH ?= $(shell dpkg-architecture -qDEB_HOST_MULTIARCH) + %: dh $@ +# pass extra flags to configure override_dh_auto_configure: dh_auto_configure -- \ - --libdir=/lib \ + --libdir=/lib/$(DEB_HOST_MULTIARCH) \ + --with-pam-seclib-dir=/lib/$(DEB_HOST_MULTIARCH)/security \ --enable-warnings \ --with-ldap-lib=openldap \ --with-ldap-conf-file=/etc/nslcd.conf \ --with-nslcd-pidfile=/var/run/nslcd/nslcd.pid \ --with-nslcd-socket=/var/run/nslcd/socket - -override_dh_makeshlibs: - # do not generate shlibs (shared NSS library not meant to be linked) -- cgit v1.2.3