[med-svn] [diamond-aligner] 01/02: Alternative executable name in Debian Med scope

Andreas Tille tille at debian.org
Thu Jan 5 10:51:59 UTC 2017


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

tille pushed a commit to branch master
in repository diamond-aligner.

commit d820d863b3e56825700599b2cbec8e3525f84838
Author: Andreas Tille <tille at debian.org>
Date:   Thu Jan 5 11:51:18 2017 +0100

    Alternative executable name in Debian Med scope
---
 debian/README.Debian | 36 ++++++++++++++++++++++++++++++++++++
 debian/doc-base      |  2 +-
 debian/links         |  3 +++
 debian/rules         | 15 +++++++++++++++
 4 files changed, 55 insertions(+), 1 deletion(-)

diff --git a/debian/README.Debian b/debian/README.Debian
new file mode 100644
index 0000000..89d0d1f
--- /dev/null
+++ b/debian/README.Debian
@@ -0,0 +1,36 @@
+diamond for Debian
+------------------
+
+There is a name conflict with 
+
+  diamond - smart data producer for Graphite graphing package
+
+The short story is: We are facing a name clash in the Free Software
+universe and we have to circumvent this somehow.  The Debian Med team
+deals with situation usually the following way:
+
+  1. The diamond executable resides in
+        /usr/lib/debian-med/bin/diamond
+     and can be either executed there or users can use
+  2. A symlink with the name
+        /usr/bin/diamond-aligner
+     which can be used alternatively
+
+If you want to use diamond right from the command line just set the
+PATH variable like
+
+  export PATH=/usr/lib/debian-med/bin:$PATH
+
+If a user creates a file
+
+    ${HOME}/.blends
+
+with the content
+
+# Add Blend names here which should prepend its bin dir to PATH
+debian-med
+
+the med-config package automatically adds this PATH to the users
+environment (when using bash).
+
+ -- Andreas Tille <tille at debian.org>  Thu, 05 Jan 2017 10:33:38 +0100
diff --git a/debian/doc-base b/debian/doc-base
index 284b04e..bc2a6ec 100644
--- a/debian/doc-base
+++ b/debian/doc-base
@@ -10,4 +10,4 @@ Abstract: accelerated BLAST compatible local sequence aligner
 Section: Science/Biology
 
 Format: pdf
-Files: /usr/share/doc/diamond/diamond_manual.pdf
+Files: /usr/share/doc/diamond-aligner/diamond_manual.pdf
diff --git a/debian/links b/debian/links
new file mode 100644
index 0000000..2a24be2
--- /dev/null
+++ b/debian/links
@@ -0,0 +1,3 @@
+usr/lib/debian-med/bin/diamond			usr/bin/diamond-aligner
+usr/lib/debian-med/share/man/man1/diamond.1	usr/share/man/man1/diamond-aligner.1 
+
diff --git a/debian/rules b/debian/rules
index 622ff4a..8abfedf 100755
--- a/debian/rules
+++ b/debian/rules
@@ -6,11 +6,26 @@ export LC_ALL=C.UTF-8
 # for hardening you might like to uncomment this:
 export DEB_BUILD_MAINT_OPTIONS=hardening=+all
 
+DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')
+
 MSSSSE3=$(shell if [ `dpkg-architecture -qDEB_BUILD_ARCH` = 'amd64' ] ; then echo "-mssse3" ; fi)
 
 %:
 	dh $@
 
+override_dh_install:
+	dh_install
+	# due to a file name conflict diamond is moved out of the way
+	mkdir -p debian/$(DEBPKGNAME)/usr/lib/debian-med/bin/
+	mv debian/$(DEBPKGNAME)/usr/bin/diamond debian/$(DEBPKGNAME)/usr/lib/debian-med/bin/
+
+override_dh_installman:
+	dh_installman
+	# due to a file name conflict diamond.1 is moved out of the way
+	mkdir -p debian/$(DEBPKGNAME)/usr/lib/debian-med/share/man/man1/
+	mv debian/$(DEBPKGNAME)/usr/share/man/man1/diamond.1 debian/$(DEBPKGNAME)/usr/lib/debian-med/share/man/man1/
+	gzip -9 debian/$(DEBPKGNAME)/usr/lib/debian-med/share/man/man1/diamond.1
+
 override_dh_compress:
 	dh_compress --exclude=.pdf
 

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



More information about the debian-med-commit mailing list