diff options
author | Mattia Rizzolo <mattia@debian.org> | 2018-10-10 14:50:38 +0200 |
---|---|---|
committer | Mattia Rizzolo <mattia@debian.org> | 2018-10-10 14:50:57 +0200 |
commit | 050292b083987aa5cb13cfb95c558121f6c6466f (patch) | |
tree | 8e8355da5a49c6ec40a194299ab7467e6ed9759e | |
parent | 657c538f355534b9a35be8124d1ca75205583bb9 (diff) |
d/rules: Rewrite using the dh sequencer.
Signed-off-by: Mattia Rizzolo <mattia@debian.org>
-rw-r--r-- | debian/install | 1 | ||||
-rwxr-xr-x | debian/rules | 101 |
2 files changed, 17 insertions, 85 deletions
diff --git a/debian/install b/debian/install new file mode 100644 index 0000000..351d322 --- /dev/null +++ b/debian/install @@ -0,0 +1 @@ +samlib /var/lib/mason/ diff --git a/debian/rules b/debian/rules index d153daf..8d40222 100755 --- a/debian/rules +++ b/debian/rules @@ -1,54 +1,24 @@ #!/usr/bin/make -f -# Made with the aid of dh_make, by Craig Small -# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. -# Some lines taken from debmake, by Cristoph Lameter. -# Uncomment this to turn on verbose mode. -#export DH_VERBOSE=1 +%: + dh $@ -build: build-stamp -build-stamp: - dh_testdir - - # Add here commands to compile the package. - # $(MAKE) - - touch build-stamp - -clean: - dh_testdir - dh_testroot - rm -f build-stamp install-stamp - debconf-updatepo - - # Add here commands to clean up after the build process. - #-$(MAKE) clean - - dh_clean - -install: install-stamp -install-stamp: build-stamp - dh_testdir - dh_testroot - dh_clean -k - dh_installdirs +override_dh_auto_build: + : nothing to do +override_dh_auto_install: # Make directories - mkdir -p `pwd`/debian/mason/usr/bin - mkdir -p `pwd`/debian/mason/usr/share/man/man1 - mkdir -p `pwd`/debian/mason/var/lib/mason - mkdir -p `pwd`/debian/mason/etc/init.d - mkdir -p `pwd`/debian/mason/etc/mason.d/restart.d - mkdir -p `pwd`/debian/mason/var/log/mason - mkdir -p `pwd`/debian/mason/usr/share/mason - - # Add here commands to install the package into debian/mason. - $(MAKE) install DESTDIR=`pwd`/debian/mason \ - DOCDIR=`pwd`/debian/mason/usr/share/doc/mason/ \ - MANDIR=`pwd`/debian/mason/usr/share/man/man1/ \ - SYSVDIR=`pwd`/debian/mason/etc/init.d/ - - install samlib `pwd`/debian/mason/var/lib/mason/ + mkdir -p debian/mason/usr/bin + mkdir -p debian/mason/usr/share/man/man1 + mkdir -p debian/mason/etc/init.d + mkdir -p debian/mason/etc/mason.d/restart.d + mkdir -p debian/mason/var/log/mason + mkdir -p debian/mason/usr/share/mason + + dh_auto_install -- \ + DOCDIR=`pwd`/debian/mason/usr/share/doc/mason/ \ + MANDIR=`pwd`/debian/mason/usr/share/man/man1/ \ + SYSVDIR=`pwd`/debian/mason/etc/init.d/ # Miscellaneous cleanup mv debian/mason/etc/init.d/firewall debian/mason/etc/init.d/mason @@ -57,42 +27,3 @@ install-stamp: build-stamp mv debian/mason/var/lib/mason/baserules debian/mason/etc/mason.baserules ln -sf /etc/mason.baserules debian/mason/var/lib/mason/baserules mv debian/mason/etc/masonrc debian/mason/usr/share/mason/ - - touch install-stamp - -# Build architecture-independent files here. -binary-indep: build install -# dh_testversion - dh_testdir - dh_testroot - dh_installdocs -# dh_installexamples -# dh_installmenu -# dh_installemacsen -# dh_installinit -# dh_installcron -# dh_installmanpages -# dh_undocumented - dh_installchangelogs - dh_installdebconf - dh_lintian - dh_strip - dh_compress - dh_fixperms -# dh_suidregister - dh_installdeb -# dh_shlibdeps - dh_gencontrol -# dh_makeshlibs - dh_md5sums - dh_builddeb - -# Build architecture-dependent files here. -binary-arch: build install -# We have nothing to do by default. - -source diff: - @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false - -binary: binary-indep binary-arch -.PHONY: build clean binary-indep binary-arch binary |