X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=debian%2Frules;h=81659a45170c0006cb3d3e9acb77c579459f8dbf;hb=1e0a42d0979887fefcbb3918bd5cd5832afbecf0;hp=fe2b273985852ddb2f1587bd75c008e66d9f8c57;hpb=30c5ce16383cee420047c94747aac306387226aa;p=nfs-utils.git diff --git a/debian/rules b/debian/rules index fe2b273..81659a4 100755 --- a/debian/rules +++ b/debian/rules @@ -2,17 +2,21 @@ include /usr/share/quilt/quilt.make +DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH) + # Temporary root DEBTMP := $(CURDIR)/debian/tmp build: patch build-stamp build-stamp: dh_testdir +ifeq ($(DEB_HOST_ARCH),arm) + patch -p0 -i debian/major.patch +endif 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 +25,7 @@ clean: unpatch dh_testroot rm -f build-stamp rm -rf $(DEBTMP) - -$(MAKE) distclean + [ ! -f Makefile ] || $(MAKE) distclean dh_clean binary-indep: build @@ -40,9 +44,9 @@ binary-arch: build dh_installman dh_link dh_installchangelogs ChangeLog - dh_strip + #dh_strip dh_compress - dh_fixperms + dh_fixperms -Xmount.nfs dh_installdeb dh_shlibdeps dh_gencontrol