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.
50
# Add here commands to install the files into debian/tmp
51
$(MAKE) install_prefix='$(DEBTMP)' install
55
for f in lockd statd showmount; do \
56
mv tmp/usr/sbin/*$$f nfs-common/sbin; \
57
perl -pi -e "s#/usr(/sbin/(rpc\\.)?$$f)#\$$1#g" \
58
nfs-common/usr/share/man/man8/$$f.8; \
60
rm -f tmp/usr/sbin/*quota*; \
61
rm -f tmp/usr/share/man/man8/*quota*; \
62
rm -rf tmp/var/lib/nfs/*; \
63
cp --preserve=timestamps etc.exports tmp/etc/exports
65
dh_installdocs -A README
72
dh_installchangelogs ChangeLog
85
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
87
binary: binary-indep binary-arch
88
.PHONY: build clean binary-indep binary-arch binary