]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - debian/rules
Harden smartmontools binaries
[mirror_smartmontools-debian.git] / debian / rules
index c492780a3bd10133c0597f7a26254d5b359cc94d..0c65605b2395d0d6002da1e28218ead2211177a6 100755 (executable)
@@ -5,8 +5,7 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-# for quilt
-include /usr/share/quilt/quilt.make
+export DEB_BUILD_HARDENING=1
 
 DEB_BUILD_ARCH_OS  ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
 DEB_BUILD_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
@@ -42,13 +41,13 @@ get-orig-source:
                echo "  "$(TARBALL)" created; move it to the right destination to build the package"
 
 configure: configure-stamp
-configure-stamp: debian/stamp-patched
+configure-stamp: 
        dh_testdir
        ./autogen.sh
        CFLAGS="${CFLAGS}" ./configure --prefix=/usr             \
                                --sysconfdir=/etc                \
                                --mandir=/usr/share/man          \
-                               --with-initscriptdir=/etc/init.d \
+                               --with-initscriptdir=no \
                                --with-docdir=/usr/share/doc/smartmontools \
                                --enable-drivedb \
                                --enable-savestates \
@@ -59,15 +58,16 @@ configure-stamp: debian/stamp-patched
                                ${CONFIGURE_ARGS}
        touch configure-stamp
 
-
-build: build-stamp
+build: build-arch build-indep
+build-arch: build-stamp
+build-indep: build-stamp
 build-stamp: configure-stamp
        dh_testdir
        # Add here commands to compile the package.
        $(MAKE)
        touch build-stamp
 
-clean: unpatch
+clean: 
        dh_testdir
        dh_testroot
        # rm -f debian/logcheck.logcheck.ignore.*
@@ -104,7 +104,7 @@ binary-arch: build install
        dh_installman
        dh_installinfo
        dh_lintian
-       dh_installchangelogs CHANGELOG
+       dh_installchangelogs ChangeLog
        dh_link
        dh_strip
        dh_compress