]> git.proxmox.com Git - mirror_smartmontools-debian.git/blobdiff - debian/rules
CHANGELOG file has been renamed, install Changelog
[mirror_smartmontools-debian.git] / debian / rules
index 9c9871df8a1273820e20ca55133327ae5282ae25..7bce8cc450f1fbf8251c26ed4ccaa17b26edf325 100755 (executable)
@@ -5,9 +5,6 @@
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-# for quilt
-include /usr/share/quilt/quilt.make
-
 DEB_BUILD_ARCH_OS  ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_OS)
 DEB_BUILD_ARCH_CPU ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH_CPU)
 
@@ -15,10 +12,6 @@ ifeq ($(DEB_HOST_ARCH_OS),linux)
        CONFIGURE_ARGS += --with-selinux
 endif
 
-ifeq ($(DEB_BUILD_ARCH_CPU),armel)
-       CONFIGURE_ARGS += --without-libcap-ng 
-endif
-
 CFLAGS += -fsigned-char -Wall
 ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
         CFLAGS += -O0
@@ -46,19 +39,20 @@ 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 \
                                --enable-attributelog \
                                --with-savestates=/var/lib/smartmontools/smartd. \
                                --with-attributelog=/var/lib/smartmontools/attrlog. \
+                               --with-exampledir=/usr/share/doc/smartmontools/examples/ \
                                ${CONFIGURE_ARGS}
        touch configure-stamp
 
@@ -70,7 +64,7 @@ build-stamp: configure-stamp
        $(MAKE)
        touch build-stamp
 
-clean: unpatch
+clean: 
        dh_testdir
        dh_testroot
        # rm -f debian/logcheck.logcheck.ignore.*
@@ -85,15 +79,7 @@ install: build
        dh_testroot
        dh_prep
        dh_installdirs
-       $(MAKE) DESTDIR=$(CURDIR)/debian/smartmontools \
-               INSTALL_PROGRAM="${INSTALL_PROGRAM}" install-sbinPROGRAMS
-       $(MAKE) DESTDIR=$(CURDIR)/debian/smartmontools \
-               install-sysconfDATA
-       $(MAKE) DESTDIR=$(CURDIR)/debian/smartmontools \
-               install-man
-       $(MAKE) DESTDIR=$(CURDIR)/debian/smartmontools \
-               examplesdir='$$(docdir)/examples'      \
-               -C examplescripts/ install-examplesSCRIPTS install-examplesDATA
+       $(MAKE) DESTDIR=$(CURDIR)/debian/smartmontools install
        install -D -m 755 debian/smartmontools-bug \
                $(CURDIR)/debian/smartmontools/usr/share/bug/smartmontools
 
@@ -115,7 +101,7 @@ binary-arch: build install
        dh_installman
        dh_installinfo
        dh_lintian
-       dh_installchangelogs CHANGELOG
+       dh_installchangelogs ChangeLog
        dh_link
        dh_strip
        dh_compress