r20297 - in /trunk/libmail-sendmail-perl/debian: changelog rules

gregoa at users.alioth.debian.org gregoa at users.alioth.debian.org
Thu May 22 20:22:15 UTC 2008


Author: gregoa
Date: Thu May 22 20:22:14 2008
New Revision: 20297

URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=20297
Log:
Refresh debian/rules, no functional changes.

Modified:
    trunk/libmail-sendmail-perl/debian/changelog
    trunk/libmail-sendmail-perl/debian/rules

Modified: trunk/libmail-sendmail-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmail-sendmail-perl/debian/changelog?rev=20297&op=diff
==============================================================================
--- trunk/libmail-sendmail-perl/debian/changelog (original)
+++ trunk/libmail-sendmail-perl/debian/changelog Thu May 22 20:22:14 2008
@@ -20,6 +20,7 @@
   * debian/copyright: add year of last release to copyright notice.
   * Set Standards-Version to 3.7.3 (no changes).
   * Add /me to Uploaders.
+  * Refresh debian/rules, no functional changes.
 
  -- gregor herrmann <gregor+debian at comodo.priv.at>  Tue, 09 Oct 2007 22:30:16 +0200
 

Modified: trunk/libmail-sendmail-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libmail-sendmail-perl/debian/rules?rev=20297&op=diff
==============================================================================
--- trunk/libmail-sendmail-perl/debian/rules (original)
+++ trunk/libmail-sendmail-perl/debian/rules Thu May 22 20:22:14 2008
@@ -1,61 +1,63 @@
 #!/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.
 
-package=libmail-sendmail-perl
-tempdir=$(shell pwd)/debian/libmail-sendmail-perl
-arch=$(shell dpkg --print-architecture)
+# 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
 
 include /usr/share/quilt/quilt.make
+
+PERL   ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP     = $(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
 build-stamp: $(QUILT_STAMPFN)
 	dh_testdir
-	perl Makefile.PL INSTALLDIRS=vendor
+	$(PERL) Makefile.PL INSTALLDIRS=vendor
 	$(MAKE)
-#	-$(MAKE) test
-	touch build-stamp
+	# tests try to send a mail
+	#$(MAKE) test
+	touch $@
 
 clean: unpatch
 	dh_testdir
 	dh_testroot
-	-rm -f build-stamp install-stamp
-	if [ -e Makefile ]; then  \
-		$(MAKE) distclean; \
-	else \
-		perl Makefile.PL && $(MAKE) distclean; \
-	fi;
-	dh_clean
+	dh_clean build-stamp install-stamp
+	[ ! -f Makefile ] || $(MAKE) realclean
 
 install: install-stamp
 install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
-	$(MAKE) PREFIX=$(tempdir)/usr install
-	[ ! -d $(tempdir)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(tempdir)/usr/lib/perl5
-	dh_installdocs
-	dh_installman
-	dh_installchangelogs Changes
-	touch install-stamp
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+	[ ! -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
-
-binary-arch: build install
 	dh_testdir
+	dh_testroot
+	dh_installdocs Todo
+	dh_installchangelogs Changes
+	dh_perl
 	dh_compress
 	dh_fixperms
-	dh_perl
-	dh_shlibdeps
 	dh_installdeb
 	dh_gencontrol
 	dh_md5sums
 	dh_builddeb
 
-# Below here is fairly generic really
 binary: binary-indep binary-arch
-.PHONY: binary clean checkroot
-
-#Local variables:
-#mode: makefile
-#End:
-
+.PHONY: build clean binary-indep binary-arch binary install




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