X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=debian%2Frules;h=5a65ec5ccf949a0c8361a25f7caad1c770e3eed4;hb=f96c403d8d7089e83c8077498855efe54a4c2366;hp=fe2b273985852ddb2f1587bd75c008e66d9f8c57;hpb=30c5ce16383cee420047c94747aac306387226aa;p=nfs-utils.git diff --git a/debian/rules b/debian/rules index fe2b273..5a65ec5 100755 --- a/debian/rules +++ b/debian/rules @@ -2,6 +2,8 @@ include /usr/share/quilt/quilt.make +DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) + # Temporary root DEBTMP := $(CURDIR)/debian/tmp @@ -11,8 +13,7 @@ build-stamp: CFLAGS="-g -O2 -Wall" ./configure \ --mandir='$${prefix}/share/man' \ --enable-secure-statd \ - --with-tcp-wrappers \ - --enable-mount + --with-tcp-wrappers $(MAKE) touch build-stamp @@ -21,7 +22,7 @@ clean: unpatch dh_testroot rm -f build-stamp rm -rf $(DEBTMP) - -$(MAKE) distclean + [ ! -f Makefile ] || $(MAKE) distclean dh_clean binary-indep: build @@ -43,6 +44,7 @@ binary-arch: build dh_strip dh_compress dh_fixperms + chmod u+s debian/nfs-common/sbin/mount.nfs dh_installdeb dh_shlibdeps dh_gencontrol