[med-svn] [probabel] 04/04: d/rules: make use of DEB_SOURCE, hardening=+all, upload to unstable

Andreas Tille tille at debian.org
Thu Jun 22 13:07:02 UTC 2017


This is an automated email from the git hooks/post-receive script.

tille pushed a commit to branch master
in repository probabel.

commit d9eafbcba30f15f9b38fde9afbaf46435e9e5ee3
Author: Andreas Tille <tille at debian.org>
Date:   Thu Jun 22 15:05:24 2017 +0200

    d/rules: make use of DEB_SOURCE, hardening=+all, upload to unstable
---
 debian/changelog |  6 ++++--
 debian/rules     | 25 ++++++++++---------------
 2 files changed, 14 insertions(+), 17 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 50cdb7e..dcd95cb 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,11 +1,13 @@
-probabel (0.4.5-4) UNRELEASED; urgency=medium
+probabel (0.4.5-4) unstable; urgency=medium
 
   * debhelper 10
   * Standards-Version: 4.0.0 (no changes needed)
   * update Build-Depends from latex-xcolor to texlive-latex-recommended
     Closes: #865251
+  * d/rules: make use of DEB_SOURCE
+  * hardening=+all
 
- -- Andreas Tille <tille at debian.org>  Thu, 22 Jun 2017 13:58:58 +0200
+ -- Andreas Tille <tille at debian.org>  Thu, 22 Jun 2017 14:04:13 +0200
 
 probabel (0.4.5-3) unstable; urgency=medium
 
diff --git a/debian/rules b/debian/rules
index 6a11db4..9ff057d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,18 +2,13 @@
 
 # DH_VERBOSE := 1
 
-# some helpful variables
-# shamelessly stolen from http://jmtd.net/log/awk/
-# DEBVERS        := $(shell dpkg-parsechangelog | awk '/^Version:/ {print $$2}')
-# VERSION        := $(shell echo '$(DEBVERS)' | sed -e 's/^[0-9]*://' -e 's/-.*//')
-# DEBFLAVOR      := $(shell dpkg-parsechangelog | awk '/^Distribution:/ {print $$2}')
-DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
-# DEBIAN_BRANCH  := $(shell awk 'BEGIN{FS="[= ]+"} /debian-branch/ {print $$2}' debian/gbp.conf)
-# GIT_TAG        := $(subst ~,_,$(VERSION))
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+
+include /usr/share/dpkg/default.mk
 
 # Location of the example files, will be converted to the
 # probabel-examples package
-DEBEXAMPLES:=$(DEBPKGNAME)-examples
+DEBEXAMPLES:=$(DEB_SOURCE)-examples
 
 
 # alternatively to manually set those variables you can
@@ -32,15 +27,15 @@ override_dh_installdocs-indep:
 
 override_dh_installdocs-arch:
 	dh_installdocs -a
-	rm debian/$(DEBPKGNAME)/usr/share/doc/$(DEBPKGNAME)/COPYING
-	rm debian/$(DEBPKGNAME)/usr/share/doc/$(DEBPKGNAME)/INSTALL
-	rm debian/$(DEBPKGNAME)/usr/share/doc/$(DEBPKGNAME)/LICENSE
-	rm debian/$(DEBPKGNAME)/usr/share/doc/$(DEBPKGNAME)/ChangeLog
+	rm debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/COPYING
+	rm debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/INSTALL
+	rm debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/LICENSE
+	rm debian/$(DEB_SOURCE)/usr/share/doc/$(DEB_SOURCE)/ChangeLog
 
 override_dh_installchangelogs:
 	dh_installchangelogs doc/ChangeLog
 
 override_dh_install-arch:
 	dh_install -a --fail-missing
-	rm debian/$(DEBPKGNAME)/usr/bin/probabel.pl
-	mv debian/$(DEBPKGNAME)/etc/probabel_config.cfg.example debian/$(DEBPKGNAME)/etc/probabel_config.cfg
+	rm debian/$(DEB_SOURCE)/usr/bin/probabel.pl
+	mv debian/$(DEB_SOURCE)/etc/probabel_config.cfg.example debian/$(DEB_SOURCE)/etc/probabel_config.cfg

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-med/probabel.git



More information about the debian-med-commit mailing list