- # Add here commands to install the files into debian/tmp
- $(MAKE) install_prefix='$(DEBTMP)' install
- dh_movefiles
- # Fixups Start Here #
- cd debian && \
- for f in lockd statd showmount; do \
- mv tmp/usr/sbin/*$$f nfs-common/sbin; \
- perl -pi -e "s#/usr(/sbin/(rpc\\.)?$$f)#\$$1#g" \
- nfs-common/usr/share/man/man8/$$f.8; \
- done; \
- rm -f tmp/usr/sbin/*quota*; \
- rm -f tmp/usr/share/man/man8/*quota*; \
- ( cd tmp && rm -rf var/lib/nfs && rmdir -p var/lib )
- # Fixups End Here #
- dh_installdocs -A README
- dh_installexamples
-# dh_installmenu
- dh_installinit -n
-# dh_installcron
-# dh_installmanpages
-# dh_undocumented
- dh_installchangelogs ChangeLog
+ mkdir $(DEBTMP)
+ $(MAKE) DESTDIR='$(DEBTMP)' install
+ dh_installman
+ dh_install -Xman --fail-missing
+ dh_installdocs -A
+ dh_installdocs -pnfs-common debian/README.Debian.nfsv4
+ install -m 0755 debian/nfs-common.init debian/nfs-common/etc/init.d/nfs-common
+ install -m 0755 debian/nfs-kernel-server.init debian/nfs-kernel-server/etc/init.d/nfs-kernel-server
+ install -m 0644 debian/nfs-common.bugcontrol debian/nfs-common/usr/share/bug/nfs-common/control
+ install -m 0755 debian/nfs-common.bugscript debian/nfs-common/usr/share/bug/nfs-common/script
+ install -m 0644 debian/nfs-utils.bugcontrol debian/nfs-common/usr/share/bug/nfs-utils/control
+ install -m 0644 debian/nfs-utils.bugpresubj debian/nfs-common/usr/share/bug/nfs-utils/presubj
+ install -m 0755 debian/nfs-kernel-server.bugscript debian/nfs-kernel-server/usr/share/bug/nfs-kernel-server/script
+ dh_link
+ dh_installchangelogs
+ dh_lintian