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