r15683 - in /trunk/libcache-simple-timedexpiry-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Tue Feb 26 22:18:55 UTC 2008


Author: gregoa-guest
Date: Tue Feb 26 22:18:54 2008
New Revision: 15683

URL: http://svn.debian.org/wsvn/?sc=1&rev=15683
Log:
debian/rules: replace with template from dh-make-perl, install upstream
  changelog.

Modified:
    trunk/libcache-simple-timedexpiry-perl/debian/changelog
    trunk/libcache-simple-timedexpiry-perl/debian/rules

Modified: trunk/libcache-simple-timedexpiry-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libcache-simple-timedexpiry-perl/debian/changelog?rev=15683&op=diff
==============================================================================
--- trunk/libcache-simple-timedexpiry-perl/debian/changelog (original)
+++ trunk/libcache-simple-timedexpiry-perl/debian/changelog Tue Feb 26 22:18:54 2008
@@ -9,8 +9,10 @@
   * debian/watch: use dist-based URL.
   * debian/copyright: add upstream source location and convert to new
     format.
+  * debian/rules: replace with template from dh-make-perl, install upstream
+    changelog.
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Tue, 26 Feb 2008 23:13:04 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Tue, 26 Feb 2008 23:15:24 +0100
 
 libcache-simple-timedexpiry-perl (0.27-1) unstable; urgency=low
 

Modified: trunk/libcache-simple-timedexpiry-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libcache-simple-timedexpiry-perl/debian/rules?rev=15683&op=diff
==============================================================================
--- trunk/libcache-simple-timedexpiry-perl/debian/rules (original)
+++ trunk/libcache-simple-timedexpiry-perl/debian/rules Tue Feb 26 22:18:54 2008
@@ -1,11 +1,15 @@
 #!/usr/bin/make -f
-#-*- makefile -*-
-# 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 Christoph Lameter.
+# 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.
 
 # Uncomment this to turn on verbose mode.
 #export DH_VERBOSE=1
+
+# 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
 
 PACKAGE=$(shell dh_listpackages)
 
@@ -13,9 +17,6 @@
 PERL = /usr/bin/perl
 endif
 
-ifndef DESTDIR
-DESTDIR=..
-endif
 TMP     =$(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
@@ -25,48 +26,45 @@
 	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
 	$(MAKE) test
-	touch build-stamp
+
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
 
-	[ ! -e Makefile ] || $(MAKE) distclean
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
-	dh_clean build-stamp
-
-install: 
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
 
-	$(MAKE) install PREFIX=$(TMP)/usr
-	# Remove the empty directory
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
 	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
 
+	touch $@
 
-# Build architecture-independent files here.
-binary-arch: build install
-# We have nothing to do.
+binary-arch:
+# We have nothing to do here for an architecture-independent package
 
-# Build architecture-dependent files here.
 binary-indep: build install
 	dh_testdir
 	dh_testroot
-	dh_installdocs 
-	dh_installman
-	dh_installchangelogs
-	dh_link
+	dh_installexamples
+	dh_installdocs
+	dh_installchangelogs Changes
+	dh_perl
 	dh_compress
 	dh_fixperms
 	dh_installdeb
-	dh_perl 
 	dh_gencontrol
 	dh_md5sums
-	dh_builddeb --destdir=$(DESTDIR)
+	dh_builddeb
 
-source diff:                                                                  
+source diff:
 	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
 
 binary: binary-indep binary-arch




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