]> git.donarmstrong.com Git - debbugs.git/commitdiff
use dh $@ and debehlper version 9
authorDon Armstrong <don@donarmstrong.com>
Thu, 17 Nov 2016 01:09:37 +0000 (17:09 -0800)
committerDon Armstrong <don@donarmstrong.com>
Thu, 17 Nov 2016 01:09:37 +0000 (17:09 -0800)
Makefile
debian/changelog
debian/compat
debian/control
debian/rules

index 3e48fc1fc28d45926a35493f2fa115d935532d3e..8114d0bc4baea08251e7b0285ea1cc1972827727 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ PERL ?= /usr/bin/perl
 # Some tests need to run under an UTF-8 locale.
 UTF8_LOCALE ?= C.UTF-8
 
-all: build test
+all: build
 
 build:
        $(PERL) Makefile.PL
@@ -49,10 +49,8 @@ clean:
 
 install: install_mostfiles
        # install basic debbugs documentation
-       $(install_data) COPYING UPGRADE README debian/README.mail $(doc_dir)
-
-       # configure debbugs
-       $(sbin_dir)/debbugsconfig
+       $(install_data) COPYING UPGRADE README.md debian/README.mail $(doc_dir)
+       $(MAKE) -f Makefile.perl install DESTDIR=$(DESTDIR)
 
 install_mostfiles:
        # create the directories if they aren't there
index 6cdffa4104ff2b119434e010b77dfa9e6035ffe7..42d7ceeed7f79d8df67ba04c2ede4b49f9d45741 100644 (file)
@@ -40,6 +40,8 @@ debbugs (2.6.0~exp1) UNRELEASED; urgency=low
     #836613).
   * Fix clone removing all other blocks instead of adding them (Closes:
     #820044). Thanks to James Clarke.
+  * Use a supported version of debhelper and switch to dh $@ style rules
+    (Closes: #800287)
 
   [ Niels Thykier ]
   * quitcgi() now returns 400/500 status codes instead of 200 (Closes: #584922)
index 7ed6ff82de6bcc2a78243fc9c54d3ef5ac14da69..ec635144f60048986bc560c5576355344005e6e7 100644 (file)
@@ -1 +1 @@
-5
+9
index 6fdf7fb961fd878fdab9fde62258e6c85ae70c08..964b0de0db396a320538674110d53255e093f4b9 100644 (file)
@@ -6,7 +6,7 @@ Uploaders: Colin Watson <cjwatson@debian.org>, Don Armstrong <don@debian.org>
 Standards-Version: 3.9.4
 Vcs-Browser: http://bugs.debian.org/debbugs-source/mainline
 Vcs-Git: http://bugs.debian.org/debbugs-source/debbugs.git
-Build-Depends: debhelper (>= 5)
+Build-Depends: debhelper (>= 9)
 Build-Depends-Indep: libparams-validate-perl,
  libmailtools-perl, libmime-tools-perl, libio-stringy-perl, libmldbm-perl,
  liburi-perl, libsoap-lite-perl, libcgi-simple-perl,
@@ -24,7 +24,7 @@ Depends:
  ${perl:Depends},
  ${misc:Depends},
  exim4 | mail-transport-agent,
- libdebbugs-perl,
+ libdebbugs-perl
 Recommends: debbugs-web
 Suggests: spamassassin (>= 3.0), libcgi-alert-perl
 Description: bug tracking system based on the active Debian BTS
@@ -63,6 +63,7 @@ Description: modules used by the active Debian BTS
 Package: debbugs-web
 Architecture: all
 Depends:
+ ${perl:Depends},
  ${misc:Depends},
  libdebbugs-perl, apache2 | httpd
 Suggests: libcgi-alert-perl, libapache2-mod-perl2
@@ -78,6 +79,7 @@ Description: web scripts for the active Debian BTS
 Package: debbugs-local
 Architecture: all
 Depends:
+ ${perl:Depends},
  ${misc:Depends},
  libdebbugs-perl, debbugs-web, libconfig-simple-perl,
  libuser-perl, rsync, libhttp-server-simple-perl, libnet-server-perl
index 7bdd341f7ab2e7ce59ca12837a2c5e56aedfa278..75d02ac49a156a85c5d62a93e77d9774e8763dec 100755 (executable)
@@ -1,73 +1,7 @@
 #!/usr/bin/make -f
-# Made with the aid of dh_make, by Craig Small
-# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
-# Some lines taken from debmake, by Cristoph Lameter.
 
-# Uncomment this to turn on verbose mode.
-#export DH_VERBOSE=1
+%:
+       dh $@ --parallel
 
-DEST_DIR := $(CURDIR)/debian/tmp
-PERL ?= /usr/bin/perl
-
-
-build: build-arch build-indep
-
-build-arch:
-# nothing to do, as there aren't any architecture-dependent packages
-
-build-indep: build-stamp
-
-build-stamp:
-# Call the test suite
-       $(PERL) Makefile.PL INSTALLDIRS=vendor
-       $(MAKE) -f Makefile.perl
-       $(MAKE) test
-       touch $@
-
-clean:
-       dh_testdir
-       dh_testroot
-       rm -f *-stamp;
-       if [ -e Makefile.perl ]; then  \
-               $(MAKE) -f Makefile.perl clean; \
-       fi;
-       #something to remove all trace and *.trace files?
-       rm -f debbugs.trace Makefile.perl.old
-       dh_clean
-
-install: install-stamp
-install-stamp: build
-       dh_testroot
-       dh_clean -k
-       dh_installdirs
-       $(MAKE) install_mostfiles DESTDIR=$(DEST_DIR)
-       $(MAKE) -f Makefile.perl install DESTDIR=$(DEST_DIR)
-       touch $@
-
-binary-arch:
-# nothing to do, as there aren't any architecture-dependent packages
-
-binary-indep: build install
-       dh_testdir
-       dh_testroot
-       dh_clean -k
-       dh_installdirs
-       $(MAKE) install_mostfiles DESTDIR=$(DEST_DIR)
-       $(MAKE) -f Makefile.perl install DESTDIR=$(DEST_DIR)
-       dh_install --sourcedir=debian/tmp --fail-missing
-       dh_installdocs
-       dh_installchangelogs
-       dh_strip
-       dh_fixperms
-       #chown bugs.bugs $(var_dir)/spool/incoming
-       dh_installdeb
-       dh_perl
-       dh_compress -X examples/text
-       dh_shlibdeps
-       dh_gencontrol
-       dh_md5sums
-       dh_builddeb
-
-
-binary: binary-indep binary-arch
-.PHONY: build clean install binary-indep binary-arch binary
+override_dh_auto_install:
+       dh_auto_install -- INSTALLDIRS=vendor