]> git.decadent.org.uk Git - nfs-utils.git/blob - debian/rules
etc/nodist minor bugfixes
[nfs-utils.git] / debian / rules
1 #!/usr/bin/make -f
2 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
3
4 # Uncomment this to turn on verbose mode.
5 #export DH_VERBOSE=1
6
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'))
10
11 # Temporary root
12 DEBTMP  := $(shell pwd)/debian/tmp
13
14 build: build-stamp
15 build-stamp:
16         dh_testdir
17         # Add here commands to compile the package.
18         $(SETGCC) ./configure \
19                 --mandir='$${prefix}/share/man' \
20                 --enable-secure-statd
21         $(MAKE)
22         touch build-stamp
23
24 clean:
25         dh_testdir
26         dh_testroot
27         rm -f build-stamp
28         # Add here commands to clean up after the build process.
29         -$(MAKE) distclean
30         dh_clean
31
32 # Build architecture-independent files here.
33 binary-indep: build
34 # We have nothing to do by default.
35
36 # Build architecture-dependent files here.
37 binary-arch: build
38         dh_testdir
39         dh_testroot
40         dh_clean -k
41         dh_installdirs
42         # Add here commands to install the files into debian/tmp
43         $(MAKE) install_prefix='$(DEBTMP)' install
44         dh_movefiles
45         # Fixups Start Here #
46         cd debian && \
47           for f in rpc.lockd rpc.statd showmount; do \
48             mv tmp/usr/sbin/$$f nfs-common/sbin/$$f; \
49           done; \
50           rm -f tmp/usr/sbin/*quota*; \
51           rm -f tmp/usr/share/man/man8/*quota*; \
52           rm -rf tmp/var/lib/nfs/*
53         # Fixups End Here #
54         dh_installdocs ChangeLog README
55         dh_installexamples
56 #       dh_installmenu
57         dh_installinit -n
58 #       dh_installcron
59 #       dh_installmanpages
60 #       dh_undocumented
61         dh_installchangelogs
62         dh_strip
63         dh_suidregister
64         dh_compress
65         dh_fixperms
66         dh_installdeb
67 #       dh_makeshlibs
68         dh_shlibdeps
69         dh_gencontrol
70         dh_md5sums
71         dh_builddeb
72
73 source diff:                                                                  
74         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
75
76 binary: binary-indep binary-arch
77 .PHONY: build clean binary-indep binary-arch binary