r16063 - in /trunk/libnet-cidr-lite-perl/debian: changelog rules

gregoa-guest at users.alioth.debian.org gregoa-guest at users.alioth.debian.org
Sat Mar 1 20:34:24 UTC 2008


Author: gregoa-guest
Date: Sat Mar  1 20:34:23 2008
New Revision: 16063

URL: http://svn.debian.org/wsvn/?sc=1&rev=16063
Log:
debian/rules: update with the help of dh-make-perl's templates; don't
  install README anymore (contains only installation instructions and
  copyright).

Modified:
    trunk/libnet-cidr-lite-perl/debian/changelog
    trunk/libnet-cidr-lite-perl/debian/rules

Modified: trunk/libnet-cidr-lite-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libnet-cidr-lite-perl/debian/changelog?rev=16063&op=diff
==============================================================================
--- trunk/libnet-cidr-lite-perl/debian/changelog (original)
+++ trunk/libnet-cidr-lite-perl/debian/changelog Sat Mar  1 20:34:23 2008
@@ -9,8 +9,11 @@
   * Set debhelper compatibility level to 6.
   * debian/watch: use extended regexp for matching upstream releases.
   * debian/copyright: add upstream source location, convert to new format.
+  * debian/rules: update with the help of dh-make-perl's templates; don't
+    install README anymore (contains only installation instructions and
+    copyright).
 
- -- gregor herrmann <gregor+debian at comodo.priv.at>  Sat, 01 Mar 2008 21:30:17 +0100
+ -- gregor herrmann <gregor+debian at comodo.priv.at>  Sat, 01 Mar 2008 21:31:47 +0100
 
 libnet-cidr-lite-perl (0.20-1) unstable; urgency=low
 

Modified: trunk/libnet-cidr-lite-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libnet-cidr-lite-perl/debian/rules?rev=16063&op=diff
==============================================================================
--- trunk/libnet-cidr-lite-perl/debian/rules (original)
+++ trunk/libnet-cidr-lite-perl/debian/rules Sat Mar  1 20:34:23 2008
@@ -1,8 +1,8 @@
 #!/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
@@ -17,77 +17,54 @@
 PERL = /usr/bin/perl
 endif
 
-ifndef DESTDIR
-DESTDIR=..
-endif
-TMP     =`pwd`/debian/$(PACKAGE)
+TMP     =$(CURDIR)/debian/$(PACKAGE)
 
 build: build-stamp
 build-stamp:
 	dh_testdir
 
-	
-	# Add here commands to compile the package.
 	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	$(MAKE) OPTIMIZE="-O2 -g -Wall"
+	$(MAKE)
+	$(MAKE) test
 
-	touch build-stamp
+	touch $@
 
 clean:
 	dh_testdir
 	dh_testroot
-	rm -f build-stamp
 
-	# Add here commands to clean up after the build process.
+	dh_clean build-stamp install-stamp
 	[ ! -f Makefile ] || $(MAKE) realclean
 
-	dh_clean
-
-install: 
+install: install-stamp
+install-stamp: build-stamp
 	dh_testdir
 	dh_testroot
 	dh_clean -k
-	dh_installdirs
 
-	$(MAKE) test
-
-	# Add here commands to install the package into debian/tmp.
-	#$(MAKE) install DESTDIR=`pwd`/debian/tmp
-	$(MAKE) install PREFIX=$(TMP)/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:
+	$(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
 	[ ! -d $(TMP)/usr/lib/perl5 ] || rmdir --ignore-fail-on-non-empty --parents --verbose $(TMP)/usr/lib/perl5
 
-# Build architecture-dependent files here.
-binary-arch: build install
-# We have nothing to do by default.
+	touch $@
 
-# Build architecture-independent files here.
+binary-arch:
+# We have nothing to do here for an architecture-independent package
+
 binary-indep: build install
 	dh_testdir
 	dh_testroot
-	dh_installdocs README
 	dh_installexamples
-	dh_installmenu
-#	dh_installemacsen
-#	dh_installinit
-	dh_installcron
-	dh_installman
+	dh_installdocs
 	dh_installchangelogs Changes
-	dh_link
-	dh_strip
+	dh_perl
 	dh_compress
 	dh_fixperms
-#	dh_makeshlibs
 	dh_installdeb
-	dh_perl 
-	dh_shlibdeps
 	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