r16774 - in /trunk/libcrypt-cbc-perl/debian: changelog rules
gregoa-guest at users.alioth.debian.org
gregoa-guest at users.alioth.debian.org
Fri Mar 7 23:11:11 UTC 2008
Author: gregoa-guest
Date: Fri Mar 7 23:11:10 2008
New Revision: 16774
URL: http://svn.debian.org/wsvn/?sc=1&rev=16774
Log:
debian/rules: update based on dh-make-perl's templates.
Modified:
trunk/libcrypt-cbc-perl/debian/changelog
trunk/libcrypt-cbc-perl/debian/rules
Modified: trunk/libcrypt-cbc-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libcrypt-cbc-perl/debian/changelog?rev=16774&op=diff
==============================================================================
--- trunk/libcrypt-cbc-perl/debian/changelog (original)
+++ trunk/libcrypt-cbc-perl/debian/changelog Fri Mar 7 23:11:10 2008
@@ -11,8 +11,9 @@
* debian/watch: use dist-based URL.
* Set Standards-Version to 3.7.3 (no changes).
* debian/copyright: assume that the author is the copyright holder.
+ * debian/rules: update based on dh-make-perl's templates.
- -- gregor herrmann <gregor+debian at comodo.priv.at> Sat, 08 Mar 2008 00:02:49 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at> Sat, 08 Mar 2008 00:06:43 +0100
libcrypt-cbc-perl (2.24-1) unstable; urgency=low
Modified: trunk/libcrypt-cbc-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libcrypt-cbc-perl/debian/rules?rev=16774&op=diff
==============================================================================
--- trunk/libcrypt-cbc-perl/debian/rules (original)
+++ trunk/libcrypt-cbc-perl/debian/rules Fri Mar 7 23:11:10 2008
@@ -1,59 +1,71 @@
-#! /usr/bin/make -f
-# -*-makefile-*-
-# debian/rules file for libcrypt-cbc-perl
+#!/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.
+
+# 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)
ifndef PERL
PERL = /usr/bin/perl
endif
-package := $(shell sed -ne 's/^Package: *//p' debian/control)
-prefix := $(CURDIR)/debian/$(package)/usr
-
-
-# thanks to: Gergely Nagy.
-Makefile: Makefile.PL
- ${PERL} Makefile.PL INSTALLDIRS=vendor PERL=${PERL}
+TMP =$(CURDIR)/debian/$(PACKAGE)
build: build-stamp
+build-stamp:
+ dh_testdir
-build-stamp: Makefile
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
+ $(MAKE)
+ $(MAKE) test
+
+ touch $@
+
+clean:
dh_testdir
- ${MAKE}
- $(MAKE) test
- touch build-stamp
+ dh_testroot
-clean: checkroot
- rm -f build-stamp
- dh_clean
- [ ! -f Makefile ] || $(MAKE) distclean
+ dh_clean build-stamp install-stamp
+ [ ! -f Makefile ] || $(MAKE) realclean
-binary-indep: checkroot build
- dh_clean
- dh_installdirs
- $(MAKE) pure_install PREFIX=$(prefix)
+install: install-stamp
+install-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
- #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 $(prefix)/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(prefix)/lib/perl5
+ $(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
+ dh_testdir
+ dh_testroot
+ dh_installexamples eg/*
dh_installdocs README
- dh_installexamples eg/*
dh_installchangelogs Changes
+ dh_perl
dh_compress
dh_fixperms
- dh_perl
dh_installdeb
dh_gencontrol
dh_md5sums
dh_builddeb
-binary-arch: checkroot build
-# We have nothing to do by default.
+source diff:
+ @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-binary: binary-indep binary-arch
-
-checkroot:
- dh_testdir
- dh_testroot
-
-.PHONY: binary binary-arch binary-indep clean checkroot build
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
More information about the Pkg-perl-cvs-commits
mailing list