2 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 # Uncomment this to turn on verbose mode.
7 # You can use gcc 2.7.2 if it's installed,
8 # but I don't think that's necessary any more.
9 #SETGCC := CC=$(notdir $(shell which gcc272 gcc 2>/dev/null | sed '1q'))
12 DEBTMP := $(shell pwd)/debian/tmp
16 # Debian source diffs don't reflect removals.
17 # This kludge will suffice until the next upstream version. *sigh*
18 rm -f debian/nfs-common.config \
19 debian/nfs-common.templates \
20 debian/nfs-kernel-server.config \
21 debian/nfs-kernel-server.templates
24 # Add here commands to compile the package.
25 $(SETGCC) ./configure \
26 --mandir='$${prefix}/share/man' \
35 # Add here commands to clean up after the build process.
39 # Build architecture-independent files here.
41 # We have nothing to do by default.
43 # Build architecture-dependent files here.
49 # Add here commands to install the files into debian/tmp
50 $(MAKE) install_prefix='$(DEBTMP)' install
54 for f in lockd statd showmount; do \
55 mv tmp/usr/sbin/*$$f nfs-common/sbin; \
56 perl -pi -e "s#/usr(/sbin/(rpc\\.)?$$f)#\$$1#g" \
57 nfs-common/usr/share/man/man8/$$f.8; \
59 rm -f tmp/usr/sbin/*quota*; \
60 rm -f tmp/usr/share/man/man8/*quota*; \
61 rm -rf tmp/var/lib/nfs/*; \
62 cp --preserve=timestamps etc.exports tmp/etc/exports
64 dh_installdocs -A README
71 dh_installchangelogs ChangeLog
84 @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
86 binary: binary-indep binary-arch
87 .PHONY: build clean binary-indep binary-arch binary