[debsums] 172/184: Simplify debian/rules

Axel Beckert abe at deuxchevaux.org
Mon Mar 2 21:21:30 UTC 2015


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

abe pushed a commit to branch master
in repository debsums.

commit 0ea5d2b07c2cb2b1c30efaef0b25b6331d62174e
Author: Axel Beckert <abe at deuxchevaux.org>
Date:   Sat Feb 7 00:12:31 2015 +0100

    Simplify debian/rules
---
 debian/changelog | 4 ++++
 debian/clean     | 2 ++
 debian/docs      | 1 +
 debian/install   | 2 ++
 debian/rules     | 8 --------
 5 files changed, 9 insertions(+), 8 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 5ac9a34..3f0165a 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -11,6 +11,10 @@ debsums (2.1~dev) UNRELEASED; urgency=medium
     + Update copyright years.
     + Add myself.
   * Declare compliance with Debian Policy 3.9.6 (no further changes)
+  * debian/rules:
+    + Simplify by moving cp, rm and dh_installdocs parameters to
+      debian/{install,clean,docs}.
+    + Remove now obsolete chmod call.
 
  -- Axel Beckert <abe at debian.org>  Fri, 06 Feb 2015 23:50:20 +0100
 
diff --git a/debian/clean b/debian/clean
new file mode 100644
index 0000000..7fb9b5f
--- /dev/null
+++ b/debian/clean
@@ -0,0 +1,2 @@
+man/po/*~
+man/*/debsums*.[18]
diff --git a/debian/docs b/debian/docs
new file mode 100644
index 0000000..e845566
--- /dev/null
+++ b/debian/docs
@@ -0,0 +1 @@
+README
diff --git a/debian/install b/debian/install
new file mode 100644
index 0000000..2b5e926
--- /dev/null
+++ b/debian/install
@@ -0,0 +1,2 @@
+debsums_init usr/sbin
+debsums rdebsums usr/bin
diff --git a/debian/rules b/debian/rules
index 116c7b9..92c57c1 100755
--- a/debian/rules
+++ b/debian/rules
@@ -9,19 +9,11 @@ tmp=$(CURDIR)/debian/$(package)
 	dh $@
 
 override_dh_auto_install:
-	cp debsums_init $(tmp)/usr/sbin
-	cp debsums rdebsums $(tmp)/usr/bin
-	chmod 755 $(tmp)/usr/bin/debsums  \
-	    $(tmp)/usr/sbin/debsums_init $(tmp)/usr/bin/rdebsums
 	touch $(tmp)/etc/debsums-ignore
 	cd man && po4a --rm-backups po4a.cfg
 
 override_dh_auto_clean:
 	cd man && po4a --no-translations --rm-backups po4a.cfg
-	rm -f man/po/*~ man/*/debsums*.[18]
-
-override_dh_installdocs:
-	dh_installdocs README
 
 override_dh_installman:
 	dh_installman `find man -type f -name '*.[18]'`

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/debsums.git



More information about the Pkg-perl-cvs-commits mailing list