[med-svn] [theseus] 03/09: Use DEB_SOURCE in d/rules

Andreas Tille tille at debian.org
Thu Aug 24 19:12:26 UTC 2017


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

tille pushed a commit to tag debian/3.3.0-6
in repository theseus.

commit f3670152e77120f4f44f48586800d4b68223d4d1
Author: Andreas Tille <tille at debian.org>
Date:   Thu Aug 24 15:26:32 2017 +0200

    Use DEB_SOURCE in d/rules
---
 debian/changelog |  1 +
 debian/rules     | 11 ++++-------
 2 files changed, 5 insertions(+), 7 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9f14e52..76d6e62 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ theseus (3.3.0-6) UNRELEASED; urgency=medium
   * Move packaging from SVN to Git
   * debhelper 10
   * Standards-Version: 4.1.0 (no changes needed)
+  * Use DEB_SOURCE in d/rules
 
  -- Andreas Tille <tille at debian.org>  Thu, 24 Aug 2017 15:20:58 +0200
 
diff --git a/debian/rules b/debian/rules
index c1f46e9..75245c2 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,9 +1,4 @@
 #!/usr/bin/make -f
-# rules file using dh for theseus
-# Copyright (C) Andreas Tille <tille at debian.org>
-# License: GPL
-
-pkg=theseus
 
 # This
 #     export DEB_BUILD_MAINT_OPTIONS = hardening=+pie
@@ -11,16 +6,18 @@ pkg=theseus
 # /usr/bin/ld: theseus.o: relocation R_X86_64_32 against `.rodata' can not be used when making a shared object; recompile with -fPIC
 DEB_BUILD_MAINT_OPTIONS=hardening=+all,-pie
 
+include /usr/share/dpkg/default.mk
+
 %:
 	dh $@
 
 override_dh_auto_install-arch:
-	make install INSTALLDIR=$(CURDIR)/debian/$(pkg)/usr/bin
+	make install INSTALLDIR=$(CURDIR)/debian/$(DEB_SOURCE)/usr/bin
 	# Fix wrong path used in upstream script.  Fixing it here is safer than
 	# changing the patch for any new upstream release
 	sed -e 's?/usr/local/bin?/usr/bin?' \
 	    -e 's?/usr/bin/sed?/bin/sed?'   \
-	    theseus_align > debian/$(pkg)/usr/bin/theseus_align
+	    theseus_align > debian/$(DEB_SOURCE)/usr/bin/theseus_align
 
 override_dh_auto_install-indep:
 	# nothing to do here

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



More information about the debian-med-commit mailing list