[med-svn] [pftools] 02/02: Move test script to examples and make sure scripts will call the correct binaries

Andreas Tille tille at debian.org
Wed Mar 22 14:35:25 UTC 2017


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

tille pushed a commit to branch master
in repository pftools.

commit 79ef59fff4cc896d4070bd141d01aebe46a45206
Author: Andreas Tille <tille at debian.org>
Date:   Wed Mar 22 15:32:55 2017 +0100

    Move test script to examples and make sure scripts will call the correct binaries
---
 debian/rules | 17 +++++++++++++++++
 1 file changed, 17 insertions(+)

diff --git a/debian/rules b/debian/rules
index 9ddc740..79f4ebb 100755
--- a/debian/rules
+++ b/debian/rules
@@ -22,3 +22,20 @@ override_dh_installman:
 	dh_installman
 	mv debian/$(DEBPKGNAME)/usr/share/man/man1/gtop.1 debian/$(DEBPKGNAME)/usr/share/man/man1/pfgtop.1
 	mv debian/$(DEBPKGNAME)/usr/share/man/man1/htop.1 debian/$(DEBPKGNAME)/usr/share/man/man1/pfhtop.1
+
+override_dh_installdocs:
+	dh_installdocs
+	mv debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)/README debian/$(DEBPKGNAME)/usr/share/doc/$(DEBPKGNAME)/
+
+override_dh_installexamples:
+	dh_installexamples
+	mkdir -p debian/$(DEBPKGNAME)/usr/share/doc/$(DEBPKGNAME)/examples
+	mv debian/$(DEBPKGNAME)/usr/lib/$(DEBPKGNAME)/test.* debian/$(DEBPKGNAME)/usr/share/doc/$(DEBPKGNAME)/examples
+	sed -i \
+	    -e 's:^\./\([gh]top\):/usr/bin/pf\1:' \
+	    -e 's:^\./:/usr/bin/:' \
+	    -e 's:\([;|]\) *\./:\1 /usr/bin/:g' \
+	    -e "1a cp -a /usr/lib/$(DEBPKGNAME)/[A-Z]* ." \
+	    -e "1a cp -a /usr/lib/$(DEBPKGNAME)/*.prf ." \
+	    -e "1a cp -a /usr/lib/$(DEBPKGNAME)/*.seq ." \
+	    debian/$(DEBPKGNAME)/usr/share/doc/$(DEBPKGNAME)/examples/test.sh

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



More information about the debian-med-commit mailing list