]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - debian/rules
Update to Standards-Version 3.9.5, no changes need
[mirror_smartmontools-debian.git] / debian / rules
index 0c65605b2395d0d6002da1e28218ead2211177a6..ed584fc368c161ab1f9281d304d44ac79f9e264b 100755 (executable)
@@ -14,6 +14,10 @@ ifeq ($(DEB_HOST_ARCH_OS),linux)
        CONFIGURE_ARGS += --with-selinux
 endif
 
+ifeq ($(DEB_HOST_ARCH_OS),kfreebsd)
+       CFLAGS += -I/usr/include/freebsd
+endif
+
 CFLAGS += -fsigned-char -Wall
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
         CFLAGS += -O0
@@ -36,6 +40,7 @@ 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/os_solaris_ata.s
                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"
@@ -44,7 +49,7 @@ configure: configure-stamp
 configure-stamp: 
        dh_testdir
        ./autogen.sh
-       CFLAGS="${CFLAGS}" ./configure --prefix=/usr             \
+       CFLAGS="${CFLAGS}" CXXFLAGS="${CFLAGS}" ./configure --prefix=/usr                \
                                --sysconfdir=/etc                \
                                --mandir=/usr/share/man          \
                                --with-initscriptdir=no \
@@ -55,6 +60,10 @@ configure-stamp:
                                --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
                                ${CONFIGURE_ARGS}
        touch configure-stamp
 
@@ -83,8 +92,6 @@ install: build
        dh_prep
        dh_installdirs
        $(MAKE) DESTDIR=$(CURDIR)/debian/smartmontools install
-       install -D -m 755 debian/smartmontools-bug \
-               $(CURDIR)/debian/smartmontools/usr/share/bug/smartmontools
 
 # Build architecture-independent files here.
 binary-indep:
@@ -99,13 +106,15 @@ binary-arch: build install
        dh_installmenu
        dh_installlogrotate
        dh_install
+       dh_link
+       dh_systemd_enable
        dh_installinit -- start 20 2 3 4 5 . stop 20 1 .
+       dh_systemd_enable
        dh_installcron
-       dh_installman
+       dh_installman debian/update-smart-drivedb.8
        dh_installinfo
        dh_lintian
        dh_installchangelogs ChangeLog
-       dh_link
        dh_strip
        dh_compress
        dh_fixperms