2 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
7 DEBTMP := $(shell pwd)/debian/tmp
11 # Debian source diffs don't reflect removals.
12 # This kludge will suffice until the next upstream version. *sigh*
13 rm -f debian/nfs-common.conffiles \
14 debian/nfs-common.config \
15 debian/nfs-common.files \
16 debian/nfs-common.templates \
17 debian/nfs-kernel-server.conffiles\
18 debian/nfs-kernel-server.config \
19 debian/nfs-kernel-server.templates\
20 debian/nhfsstone.files
23 -test -r /usr/share/misc/config.sub && cp -f /usr/share/misc/config.sub config.sub
24 -test -r /usr/share/misc/config.guess && cp -f /usr/share/misc/config.guess config.guess
27 --mandir='$${prefix}/share/man' \
37 # Add here commands to clean up after the build process.
38 -test -r /usr/share/misc/config.sub && rm -f config.sub
39 -test -r /usr/share/misc/config.guess && rm -f config.guess
41 rm -f config.log configure
51 # Add here commands to install the files into debian/tmp
52 $(MAKE) install_prefix='$(DEBTMP)' install
53 dh_install --sourcedir=debian/tmp
56 for f in lockd statd showmount; do \
57 perl -pi -e "s#/usr(/sbin/(rpc\\.)?$$f)#\$$1#g" \
58 tmp/usr/share/man/man8/$$f.8; \
60 cp --preserve=timestamps etc.exports nfs-kernel-server/etc/exports; \
61 cp --preserve=timestamps idmapd.conf nfs-common/etc/; \
62 cp --preserve=timestamps gssapi_mech.conf nfs-common/etc/; \
65 dh_installdocs -pnfs-common debian/README.Debian.nfsv4
70 dh_installchangelogs ChangeLog
80 binary: binary-indep binary-arch
81 .PHONY: build clean binary-indep binary-arch binary