[Logcheck-commits] [logcheck] 03/07: Migrated to dh7 style debian/rules file

Hannes von Haugwitz hvhaugwitz at moszumanska.debian.org
Sun Mar 30 21:24:49 UTC 2014


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

hvhaugwitz pushed a commit to branch master
in repository logcheck.

commit 5060ae393b66915c3587cfb941371dbd496a41df
Author: Hannes von Haugwitz <hannes at vonhaugwitz.com>
Date:   Tue Jan 28 21:14:54 2014 +0100

    Migrated to dh7 style debian/rules file
---
 debian/changelog                                   |  1 +
 ...ck-database.files => logcheck-database.install} |  0
 debian/{logcheck.files => logcheck.install}        |  2 +-
 debian/logcheck.manpages                           |  2 +
 debian/{logtail.files => logtail.install}          |  0
 debian/logtail.manpages                            |  2 +
 debian/rules                                       | 79 +++-------------------
 7 files changed, 17 insertions(+), 69 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d296b80..dcbb4e2 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -3,6 +3,7 @@ logcheck (1.3.17) UNRELEASED; urgency=low
   * debian/control:
     - updated Homepage field
     - dropped obsolete Replaces fields
+  * Migrated to dh7 style debian/rules file
 
  -- Hannes von Haugwitz <hannes at vonhaugwitz.com>  Sun, 26 Jan 2014 20:09:26 +0100
 
diff --git a/debian/logcheck-database.files b/debian/logcheck-database.install
similarity index 100%
rename from debian/logcheck-database.files
rename to debian/logcheck-database.install
diff --git a/debian/logcheck.files b/debian/logcheck.install
similarity index 74%
rename from debian/logcheck.files
rename to debian/logcheck.install
index 5c97602..24c6b63 100644
--- a/debian/logcheck.files
+++ b/debian/logcheck.install
@@ -3,4 +3,4 @@ usr/bin/logcheck-test
 var/lib/logcheck/
 etc/logcheck/logcheck.logfiles
 etc/logcheck/logcheck.conf
-usr/share/lintian/overrides/logcheck
+debian/header.txt /usr/share/logcheck/
diff --git a/debian/logcheck.manpages b/debian/logcheck.manpages
new file mode 100644
index 0000000..5c1205d
--- /dev/null
+++ b/debian/logcheck.manpages
@@ -0,0 +1,2 @@
+docs/logcheck-test.1
+debian/logcheck.8
diff --git a/debian/logtail.files b/debian/logtail.install
similarity index 100%
rename from debian/logtail.files
rename to debian/logtail.install
diff --git a/debian/logtail.manpages b/debian/logtail.manpages
new file mode 100644
index 0000000..e71cf70
--- /dev/null
+++ b/debian/logtail.manpages
@@ -0,0 +1,2 @@
+docs/logtail.8
+docs/logtail2.8
diff --git a/debian/rules b/debian/rules
index f5932ef..9b02d7d 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,76 +1,19 @@
 #!/usr/bin/make -f
-# Made with the aid of dh_make, by Craig Small
-# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
-# Some lines taken from debmake, by Cristoph Lameter.
+# -*- makefile -*-
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
 
-.PHONY: build clean binary-indep binary-arch binary cvs-build checkpo help
+%:
+	dh $@
 
-build: build-arch build-indep
-build-arch: build-stamp
-build-indep: build-stamp
+override_dh_auto_build:
+	docbook-to-man docs/logcheck.sgml > debian/logcheck.8
+	dh_auto_build
 
-build-stamp:
-	dh_testdir
+override_dh_auto_clean:
+	rm -f debian/logcheck.8
+	dh_auto_clean
 
-	/usr/bin/docbook-to-man docs/logcheck.sgml > \
-		docs/logcheck.8
-
-	make check
-	touch build-stamp
-
-clean:
-	dh_testdir
-	dh_testroot
-	rm -f build-stamp install-stamp
-
-	rm -f docs/logcheck.8
-	[ ! -f Makefile ] || $(MAKE) clean DESTDIR=$(CURDIR)/debian/tmp
-
-	dh_clean
-
-install: install-stamp
-install-stamp: DESTDIR=$(CURDIR)/debian/tmp
-install-stamp: build-stamp
-	dh_testdir
-	dh_testroot
-	dh_prep
-	dh_installdirs
-
-	$(MAKE) install DESTDIR=$(DESTDIR)
-
-	mkdir -p $(DESTDIR)/usr/share/lintian/overrides
-	install -m644 debian/logcheck.lintian-overrides \
-		$(DESTDIR)/usr/share/lintian/overrides/logcheck
-	# install -m644 debian/logcheck-database.lintian-overrides \
-	# 	$(DESTDIR)/usr/share/lintian/overrides/logcheck-database
-
-	touch install-stamp
-
-# Build architecture-independent files here.
-binary-indep: build install
-	dh_testdir
-	dh_testroot
-	dh_installdocs
-	dh_movefiles
-	dh_install debian/header.txt usr/share/logcheck
-	dh_installcron
-	dh_installman -p logtail docs/logtail.8
-	dh_installman -p logtail docs/logtail2.8
-	dh_installman -p logcheck docs/logcheck.8
-	dh_installman -p logcheck docs/logcheck-test.1
-	dh_installchangelogs
-	dh_compress
-	dh_fixperms --exclude etc/logcheck
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-# Build architecture-dependent files here.
-binary-arch: build install
-# We have nothing to do by default.
-
-binary: binary-indep binary-arch
+override_dh_fixperms:
+	dh_fixperms --exclude /etc/logcheck/logcheck.

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



More information about the Logcheck-commits mailing list