r15978 - in /trunk/libapache-dbilogger-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Fri Feb 29 20:03:36 UTC 2008


Author: gregoa-guest
Date: Fri Feb 29 20:03:34 2008
New Revision: 15978

URL: http://svn.debian.org/wsvn/?sc=1&rev=15978
Log:
debian/rules:
  - update with the help of dh-make-perl's templates
  - don't install README anymore, it's just the text version of the POD
    documentation

Modified:
    trunk/libapache-dbilogger-perl/debian/changelog
    trunk/libapache-dbilogger-perl/debian/rules

Modified: trunk/libapache-dbilogger-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libapache-dbilogger-perl/debian/changelog?rev=15978&op=diff
==============================================================================
--- trunk/libapache-dbilogger-perl/debian/changelog (original)
+++ trunk/libapache-dbilogger-perl/debian/changelog Fri Feb 29 20:03:34 2008
@@ -4,14 +4,15 @@
     field (source stanza); Homepage field (source stanza). Removed: XS-
     Vcs-Svn fields.
   * debian/rules: delete /usr/lib/perl5 only if it exists (closes: #468238).
+  * debian/watch: use dist-based URL.
+  * Set Standards-Version to 3.7.3 (no changes).
+  * Set debhelper compatibility level to 6.
+  * debian/rules:
+    - update with the help of dh-make-perl's templates
+    - don't install README anymore, it's just the text version of the POD
+      documentation
 
-  * debian/watch: use dist-based URL.
-
-  * Set Standards-Version to 3.7.3 (no changes).
-
-  * Set debhelper compatibility level to 6.
-
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Fri, 29 Feb 2008 20:55:46 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Fri, 29 Feb 2008 21:02:46 +0100
 
 libapache-dbilogger-perl (0.93-10) unstable; urgency=low
 

Modified: trunk/libapache-dbilogger-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libapache-dbilogger-perl/debian/rules?rev=15978&op=diff
==============================================================================
--- trunk/libapache-dbilogger-perl/debian/rules (original)
+++ trunk/libapache-dbilogger-perl/debian/rules Fri Feb 29 20:03:34 2008
@@ -1,68 +1,72 @@
 #!/usr/bin/make -f
+# This debian/rules file is provided as a template for normal perl
+# packages. It was created by Marc Brockschmidt <marc at dch-faq.de> for
+# the Debian Perl Group (http://pkg-perl.alioth.debian.org/) but may
+# be used freely wherever it is useful.
 
-PERL ?= /usr/bin/perl
+# Uncomment this to turn on verbose mode.
+#export DH_VERBOSE=1
 
-b := $(shell pwd)/debian/libapache-dbilogger-perl
+# If set to a true value then MakeMaker's prompt function will
+# always return the default without waiting for user input.
+export PERL_MM_USE_DEFAULT=1
 
-arrange: arrange-stamp
-arrange-stamp: install
-	dh_testdir
-	touch arrange-stamp
+PACKAGE=$(shell dh_listpackages)
 
-binary: binary-stamp
-binary-stamp: binary-indep binary-arch
-	dh_testdir
-	touch binary-stamp
+ifndef PERL
+PERL = /usr/bin/perl
+endif
 
-binary-arch: binary-arch-stamp
-binary-arch-stamp: arrange
-	dh_testdir
-	touch binary-arch-stamp
-
-binary-indep: binary-indep-stamp
-binary-indep-stamp: arrange
-	dh_testdir
-	dh_testroot
-	dh_installdocs README
-	dh_installchangelogs Changes
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_perl
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-	touch binary-indep-stamp
+TMP     =$(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
-build-stamp: config
+build-stamp:
 	dh_testdir
+
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
 	$(MAKE) test
-	touch build-stamp
+
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	dh_clean arrange-stamp binary-stamp binary-arch-stamp binary-indep-stamp build-stamp config-stamp install-stamp
-	if [ -e Makefile ]; then $(MAKE) -i distclean; fi
 
-config: config-stamp
-config-stamp:
-	dh_testdir
-	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	touch config-stamp
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
 install: install-stamp
-install-stamp: build
+install-stamp: build-stamp
 	dh_testdir
-	dh_installdirs
-	$(MAKE) install PREFIX=$(b)/usr
-	# As this is a architecture independent package, we are not
-	# supposed to install stuff to /usr/lib. MakeMaker creates
-	# the dirs, we delete them from the deb:
-	[ ! -d $(b)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(b)/usr/lib/perl5
+	dh_testroot
+	dh_clean -k
 
-	touch install-stamp
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
 
-.PHONY: arrange binary binary-arch binary-indep build clean config install
+	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
+
+	touch $@
+
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
+binary-indep: build install
+	dh_testdir
+	dh_testroot
+	dh_installexamples
+	dh_installdocs
+	dh_installchangelogs Changes
+	dh_perl
+	dh_compress
+	dh_fixperms
+	dh_installdeb
+	dh_gencontrol
+	dh_md5sums
+	dh_builddeb
+
+source diff:
+	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
+
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary




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