X-Git-Url: https://git.decadent.org.uk/gitweb/?p=nfs-utils.git;a=blobdiff_plain;f=debian%2Frules;h=94c635f8253c8bbae0ed7a26f3576bca83c2b3f8;hp=536853119f1124a8b3e6e6b196ff8947138017cd;hb=4b00650283c8e87e9e0326a4bd42faae2d69f9f0;hpb=48549afe6f5d5b67b4132e9551d62b1a864d672e diff --git a/debian/rules b/debian/rules index 5368531..94c635f 100755 --- a/debian/rules +++ b/debian/rules @@ -1,8 +1,9 @@ #!/usr/bin/make -f # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. +# Copyright (c) 2005 by Anibal Monsalve Salazar. # Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 +export DH_VERBOSE=1 # You can use gcc 2.7.2 if it's installed, # but I don't think that's necessary any more. @@ -13,6 +14,13 @@ DEBTMP := $(shell pwd)/debian/tmp build: build-stamp build-stamp: + # Debian source diffs don't reflect removals. + # This kludge will suffice until the next upstream version. *sigh* + rm -f debian/nfs-common.config \ + debian/nfs-common.templates \ + debian/nfs-kernel-server.config \ + debian/nfs-kernel-server.templates + dh_testdir # Add here commands to compile the package. $(SETGCC) ./configure \ @@ -39,6 +47,7 @@ binary-arch: build dh_testroot dh_clean -k dh_installdirs + dh_install # Add here commands to install the files into debian/tmp $(MAKE) install_prefix='$(DEBTMP)' install dh_movefiles @@ -51,7 +60,8 @@ binary-arch: build done; \ rm -f tmp/usr/sbin/*quota*; \ rm -f tmp/usr/share/man/man8/*quota*; \ - rm -rf tmp/var/lib/nfs/* + rm -rf tmp/var/lib/nfs/*; \ + cp --preserve=timestamps etc.exports tmp/etc/exports # Fixups End Here # dh_installdocs -A README dh_installexamples @@ -68,9 +78,6 @@ binary-arch: build dh_installdeb # dh_makeshlibs dh_shlibdeps - # Hackery Begins Here # - perl -pi -e 's/2\.2\.4-2/2.2.4-1/g' debian/*substvars - # Hackery Ends Here # dh_gencontrol dh_md5sums dh_builddeb