]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - debian/rules
import smartmontools 7.0
[mirror_smartmontools-debian.git] / debian / rules
index 72ca8b3a8f9e44dc9a3a6528419849bad55ec023..8033106a71836c93be98b94a46f29872b31ba5c4 100755 (executable)
@@ -35,7 +35,7 @@ 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:
@@ -44,7 +44,7 @@ get-orig-source:
                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"
 
@@ -58,12 +58,11 @@ configure-stamp:
                                --sysconfdir=/etc                \
                                --mandir=/usr/share/man          \
                                --with-initscriptdir=no \
-                               --with-docdir=/usr/share/doc/smartmontools \
-                               --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 \
@@ -117,9 +116,8 @@ binary-arch: build install
        dh_installlogrotate
        dh_install
        dh_link
-       dh_systemd_enable
-       dh_installinit -- start 20 2 3 4 5 . stop 20 1 .
-       dh_systemd_enable
+       dh_installsystemd
+       dh_installinit
        dh_installcron
        dh_installinfo
        dh_lintian