- # 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*; \
- rm -rf tmp/var/lib/nfs/*; \
- cp --preserve=timestamps etc.exports tmp/etc/exports
- # Fixups End Here #
- dh_installdocs -A README
- dh_installexamples
-# dh_installmenu
- dh_installinit -n
-# dh_installcron
-# dh_installmanpages
-# dh_undocumented
+ mkdir $(DEBTMP)
+ $(MAKE) DESTDIR='$(DEBTMP)' install
+ dh_install
+ 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
+ dh_installman
+ dh_link