#!/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.
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 \
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
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 ChangeLog README
+ dh_installdocs -A README
dh_installexamples
# dh_installmenu
dh_installinit -n
# dh_installcron
# dh_installmanpages
# dh_undocumented
- dh_installchangelogs
+ dh_installchangelogs ChangeLog
dh_strip
- dh_suidregister
dh_compress
dh_fixperms
+ dh_installdebconf
dh_installdeb
# dh_makeshlibs
dh_shlibdeps