]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - debian/rules
Stop passing arguments to dh_installinit
[mirror_smartmontools-debian.git] / debian / rules
index 41a1ea24ae5c77db7fed07f8cd7504f73ceee73a..d0fd0730a6622c0ad0a2b2a0ed3b6005bfe93dd5 100755 (executable)
@@ -35,15 +35,16 @@ endif
 PACKAGE = smartmontools
 SRC_VERSION := $(shell dpkg-parsechangelog | sed -ne 's/^Version: \(.*\)-.*/\1/p'| cut -d':' -f2)
 SVN_REVISION := $(shell echo $(SRC_VERSION) | awk -F"+" '{ print $$2 }' | sed 's/svn//' )
-TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.gz
+TARBALL = $(PACKAGE)_$(SRC_VERSION).orig.tar.xz
+SVN_ROOT := 'https://svn.code.sf.net/p/smartmontools/code/trunk/smartmontools'
 
 get-orig-source:
                rm -rf get-orig-source $(TARBALL)
                mkdir get-orig-source
-               svn export -r $(SVN_REVISION) https://smartmontools.svn.sourceforge.net/svnroot/smartmontools/trunk/smartmontools/ \
+               svn export -r $(SVN_REVISION) $(SVN_ROOT) \
                        get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig
                rm -rf get-orig-source/$(PACKAGE)-$(SRC_VERSION).orig/os_solaris_ata.s
-               GZIP=--best tar czf $(TARBALL) -C get-orig-source $(PACKAGE)-$(SRC_VERSION).orig
+               tar cJf $(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"
 
@@ -57,14 +58,10 @@ configure-stamp:
                                --sysconfdir=/etc                \
                                --mandir=/usr/share/man          \
                                --with-initscriptdir=no \
-                               --with-docdir=/usr/share/doc/smartmontools \
-                               --enable-drivedb \
-                               --enable-savestates \
-                               --enable-attributelog \
+                               --docdir=/usr/share/doc/smartmontools \
                                --with-savestates=/var/lib/smartmontools/smartd. \
                                --with-attributelog=/var/lib/smartmontools/attrlog. \
                                --with-exampledir=/usr/share/doc/smartmontools/examples/ \
-                               --with-drivedbdir=/var/lib/smartmontools/drivedb \
                                --with-systemdsystemunitdir=/lib/systemd/system \
                                --with-smartdscriptdir=/usr/share/smartmontools \
                                --with-smartdplugindir=/etc/smartmontools/smartd_warning.d \
@@ -88,7 +85,9 @@ clean:
        # Add here commands to clean up after the build process.
        [ ! -f Makefile ] || $(MAKE) distclean
        rm -f build-stamp configure-stamp \
-             Makefile.in examplescripts/Makefile.in aclocal.m4 configure
+             Makefile.in examplescripts/Makefile.in aclocal.m4 configure \
+             config.guess config.h.in config.sub depcomp install-sh \
+             m4/pkg.m4 missing
        dh_clean
 
 install: build
@@ -97,6 +96,7 @@ install: build
        dh_prep
        dh_installdirs
        $(MAKE) DESTDIR=$(CURDIR)/debian/smartmontools install
+       rm -f debian/smartmontools/usr/sbin/update-smart-drivedb
 
 # Build architecture-independent files here.
 binary-indep:
@@ -106,6 +106,9 @@ binary-indep:
 binary-arch: build install
        dh_testdir
        dh_testroot
+       rm -f debian/smartmontools/usr/share/doc/smartmontools/INSTALL \
+          debian/smartmontools/usr/share/doc/smartmontools/COPYING \
+          debian/smartmontools/usr/share/doc/smartmontools/ChangeLog
        dh_installdocs
        dh_installexamples
        dh_installmenu
@@ -113,10 +116,9 @@ binary-arch: build install
        dh_install
        dh_link
        dh_systemd_enable
-       dh_installinit -- start 20 2 3 4 5 . stop 20 1 .
+       dh_installinit
        dh_systemd_enable
        dh_installcron
-       dh_installman debian/update-smart-drivedb.8
        dh_installinfo
        dh_lintian
        dh_installchangelogs ChangeLog