[med-svn] [gnumed-server] 05/06: do not parse d/changelog

Andreas Tille tille at debian.org
Mon Nov 13 12:47:17 UTC 2017


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

tille pushed a commit to branch master
in repository gnumed-server.

commit 63f835db81a2e15d74caf3ac5a8df3e3357d03c8
Author: Andreas Tille <tille at debian.org>
Date:   Mon Nov 13 13:30:23 2017 +0100

    do not parse d/changelog
---
 debian/changelog |  1 +
 debian/rules     | 14 ++++++--------
 2 files changed, 7 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9ada204..024ab01 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ gnumed-server (21.15-1) UNRELEASED; urgency=medium
   * New upstream version
   * Standards-Version: 4.1.1
   * Secure URI in watch file
+  * d/rules: do not parse d/changelog
 
  -- Andreas Tille <tille at debian.org>  Mon, 13 Nov 2017 13:19:11 +0100
 
diff --git a/debian/rules b/debian/rules
index b9d3f43..709348a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,26 +1,24 @@
 #!/usr/bin/make -f
-# debian/rules for gnumed-server using dh
-# Andreas Tille <tille at debian.org>, GPL
 
-pkg := $(shell dpkg-parsechangelog | sed -n 's/^Source: //p')
+include /usr/share/dpkg/default.mk
 
 %:
 	dh $@ --with python2
 
 override_dh_install:
 	dh_install
-	cp -a server/bootstrap/[a-z]* debian/$(pkg)/var/lib/gnumed/server/bootstrap
-	for conffile in `find debian/$(pkg)/var/lib/gnumed/server/bootstrap -maxdepth 1 -type f -name \*.conf` ; do \
+	cp -a server/bootstrap/[a-z]* debian/$(DEB_SOURCE)/var/lib/gnumed/server/bootstrap
+	for conffile in `find debian/$(DEB_SOURCE)/var/lib/gnumed/server/bootstrap -maxdepth 1 -type f -name \*.conf` ; do \
     	    sed -i 's/^\(interactive[[:space:]]*=[[:space:]]*\)yes/\1no/' "$$conffile" ; \
     	    sed -i 's/^\(password[[:space:]]*=[[:space:]]*\)/\1 gm-dbo/' "$$conffile" ; \
     	done
 	for script in `ls server/gm-*.sh` ; do \
 	    if [ "$$script" = "server/gm-remove_person.sh" -o \
 	         "$$script" = "server/gm-move_backups_offsite.sh" ] ; then \
-		cp -a "$$script" debian/$(pkg)/usr/bin/`basename "$$script" .sh` ; \
+		cp -a "$$script" debian/$(DEB_SOURCE)/usr/bin/`basename "$$script" .sh` ; \
 	    else \
-		cp -a "$$script" debian/$(pkg)/usr/sbin/`basename "$$script" .sh` ; \
+		cp -a "$$script" debian/$(DEB_SOURCE)/usr/sbin/`basename "$$script" .sh` ; \
 	    fi \
 	done
-	cp -a server/gm-fingerprint_db.py debian/$(pkg)/usr/sbin/gm-fingerprint_db ; \
+	cp -a server/gm-fingerprint_db.py debian/$(DEB_SOURCE)/usr/sbin/gm-fingerprint_db ; \
 

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



More information about the debian-med-commit mailing list