[med-svn] [manta] 01/04: Bit more sensible directory layout but far from working package

Andreas Tille tille at debian.org
Mon May 1 06:24:05 UTC 2017


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

tille pushed a commit to branch master
in repository manta.

commit fbf915a797d2387ffed939258eec1793c0320c3b
Author: Andreas Tille <tille at debian.org>
Date:   Sun Feb 12 16:53:55 2017 +0100

    Bit more sensible directory layout but far from working package
---
 debian/manta.install |  1 +
 debian/rules         | 11 +++++++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/debian/manta.install b/debian/manta.install
index dff9430..ae274f5 100644
--- a/debian/manta.install
+++ b/debian/manta.install
@@ -1,2 +1,3 @@
 usr/libexec/*		usr/lib/manta
 usr/lib/python/*	usr/share/manta
+usr/bin			usr
diff --git a/debian/rules b/debian/rules
index 79b3d9e..6558457 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,8 +6,7 @@ export LC_ALL=C.UTF-8
 DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
 demopkg        := $(DEBPKGNAME)-demo
 
-# for hardening you might like to uncomment this:
-# export DEB_BUILD_MAINT_OPTIONS=hardening=+all
+export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
 CMAKE_EXTRA_FLAGS += -DCMAKE_BUILD_TYPE=Release
 
@@ -22,3 +21,11 @@ override_dh_auto_install:
 	find debian -name "*.pyc" -delete
 	# FIXME: better solution: do not Build-Depend: samtools and rather prevent copy of samtools by quilt patch
 	find debian -name "samtools" -delete
+
+override_dh_install:
+	dh_install
+	rmdir $(CURDIR)/debian/$(DEBPKGNAME)/usr/libexec
+	for py in $(CURDIR)/debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)/*.py ; do \
+	    mv $$py $(CURDIR)/debian/$(DEBPKGNAME)/usr/share/$(DEBPKGNAME)/ ; \
+	    ln -s ../../share/$(DEBPKGNAME)/`basename $$py` $(CURDIR)/debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME) ; \
+	done

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



More information about the debian-med-commit mailing list