From 31e40f75da4a5d77d66a4f7760d77529e571a9a1 Mon Sep 17 00:00:00 2001 From: Giuseppe Iuculano Date: Mon, 31 Aug 2009 08:06:01 +0200 Subject: [PATCH] debian/rules: use dh_install to install files --- debian/rules | 26 ++++---------------------- debian/smartmontools.install | 2 ++ 2 files changed, 6 insertions(+), 22 deletions(-) create mode 100644 debian/smartmontools.install diff --git a/debian/rules b/debian/rules index e51bc08..b21a254 100755 --- a/debian/rules +++ b/debian/rules @@ -31,8 +31,6 @@ get-orig-source: mkdir get-orig-source svn export -r $(SVN_REVISION) https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk/smartmontools/ \ get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig - #rm -rf get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig/debian - #cd get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig/ ; sh ../../debian/remove-nonfree.sh GZIP=--best tar czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION).orig rm -rf get-orig-source echo " "$(TARBALL)" created; move it to the right destination to build the package" @@ -46,26 +44,20 @@ configure-stamp: debian/stamp-patched --mandir=/usr/share/man \ --with-initscriptdir=/etc/init.d \ --with-docdir=/usr/share/doc/smartmontools - touch configure-stamp build: build-stamp build-stamp: configure-stamp dh_testdir - # Add here commands to compile the package. $(MAKE) - - #/usr/bin/docbook-to-man debian/smartmontools.sgml > smartmontools.1 - touch build-stamp clean: unpatch dh_testdir dh_testroot # rm -f debian/logcheck.logcheck.ignore.* - # Add here commands to clean up after the build process. [ ! -f Makefile ] || $(MAKE) distclean rm -f build-stamp configure-stamp \ @@ -77,7 +69,6 @@ install: build dh_testroot dh_prep dh_installdirs - $(MAKE) DESTDIR=$(CURDIR)/debian/smartmontools \ INSTALL_PROGRAM="${INSTALL_PROGRAM}" install-sbinPROGRAMS $(MAKE) DESTDIR=$(CURDIR)/debian/smartmontools \ @@ -87,13 +78,8 @@ install: build $(MAKE) DESTDIR=$(CURDIR)/debian/smartmontools \ examplesdir='$$(docdir)/examples' \ -C examplescripts/ install-examplesSCRIPTS install-examplesDATA - install -D -m 755 debian/smartmontools-bug \ $(CURDIR)/debian/smartmontools/usr/share/bug/smartmontools - install -D -m 755 debian/smartd-runner \ - $(CURDIR)/debian/smartmontools/usr/share/smartmontools/smartd-runner - install -D -m 755 debian/10mail \ - $(CURDIR)/debian/smartmontools/etc/smartmontools/run.d/10mail # Build architecture-independent files here. binary-indep: @@ -103,29 +89,25 @@ binary-indep: binary-arch: build install dh_testdir dh_testroot -# dh_installdebconf dh_installdocs dh_installexamples dh_installmenu dh_installlogrotate -# dh_installemacsen -# dh_installpam -# dh_installmime + dh_install dh_installinit -- start 20 2 3 4 5 . stop 20 1 . dh_installcron dh_installman dh_installinfo dh_lintian -# dh_installlogcheck -# dh_undocumented dh_installchangelogs CHANGELOG dh_link dh_strip dh_compress dh_fixperms -# dh_makeshlibs + chmod 755 $(CURDIR)/debian/smartmontools/etc/smartmontools/run.d/10mail \ + $(CURDIR)/debian/smartmontools/usr/share/smartmontools/smartd-runner + dh_makeshlibs dh_installdeb -# dh_perl dh_shlibdeps dh_gencontrol dh_md5sums diff --git a/debian/smartmontools.install b/debian/smartmontools.install new file mode 100644 index 0000000..14bc3ad --- /dev/null +++ b/debian/smartmontools.install @@ -0,0 +1,2 @@ +debian/smartd-runner usr/share/smartmontools +debian/10mail etc/smartmontools/run.d -- 2.39.5