[med-svn] [ngsqctoolkit] 03/08: Get the files somehow arranged inside the packaging file system - now it would be time for testing. Any volunteer?

Andreas Tille tille at debian.org
Wed Dec 13 16:11:33 UTC 2017


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

tille pushed a commit to branch master
in repository ngsqctoolkit.

commit 5113a4e3b07be33db7c84d79b5a07531bde8af95
Author: Andreas Tille <tille at debian.org>
Date:   Fri Nov 14 15:23:26 2014 +0000

    Get the files somehow arranged inside the packaging file system - now it would be time for testing.  Any volunteer?
---
 debian/changelog |  2 +-
 debian/docs      |  1 +
 debian/install   |  2 ++
 debian/rules     | 24 +++++++++++-------------
 4 files changed, 15 insertions(+), 14 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index db62c16..3faae99 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,4 +2,4 @@ ngsqctoolkit (2.3.3-1) UNRELEASED; urgency=low
 
   * Initial release (Closes: #<bug>)
 
- -- DMPT <debian-med-packaging at lists.alioth.debian.org>  Thu, 24 May 2012 14:30:13 +0200
+ -- Andreas Tille <tille at debian.org>  Fri, 14 Nov 2014 16:21:56 +0100
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..53c1ee8
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+NGSQCToolkitv2.3.3_manual.pdf
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..21531d9
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,2 @@
+QC/lib/*	usr/share/perl5/ngsqctoolkit
+*/*.pl		usr/share/ngsqctoolkit
diff --git a/debian/rules b/debian/rules
index 58ec00b..fc9ccde 100755
--- a/debian/rules
+++ b/debian/rules
@@ -2,22 +2,20 @@
 
 # DH_VERBOSE := 1
 
-# some helpful variables - uncomment them if needed
-# 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))
-
-# alternatively to manually set those variables you can
-#  include /usr/share/cdbs/1/rules/buildvars.mk
-# and use what is set there.  Any hint whether dh might set variables in
-# a similar manner are welcome.
+DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
 
 %:
 	dh $@
 
+override_dh_fixperms:
+	dh_fixperms
+	chmod +x debian/$(DEBPKGNAME)/usr/share/ngsqctoolkit/*.pl
+
+override_dh_link:
+	mkdir -p debian/$(DEBPKGNAME)/usr/bin
+	for pl in debian/$(DEBPKGNAME)/usr/share/ngsqctoolkit/*.pl ; do \
+	    ln -s ../share/ngsqctoolkit/`basename $${pl}` debian/$(DEBPKGNAME)/usr/bin/`basename $${pl} .pl` ; \
+	done
+
 #get-orig-source:
 #	. debian/get-orig-source

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



More information about the debian-med-commit mailing list