r21140 - in /trunk/libsys-syslog-perl/debian: changelog rules
gregoa at users.alioth.debian.org
gregoa at users.alioth.debian.org
Sat Jun 14 21:59:15 UTC 2008
Author: gregoa
Date: Sat Jun 14 21:59:15 2008
New Revision: 21140
URL: http://svn.debian.org/wsvn/pkg-perl/?sc=1&rev=21140
Log:
Refresh debian/rules, no functional changes. Don't install README any
more.
Modified:
trunk/libsys-syslog-perl/debian/changelog
trunk/libsys-syslog-perl/debian/rules
Modified: trunk/libsys-syslog-perl/debian/changelog
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsys-syslog-perl/debian/changelog?rev=21140&op=diff
==============================================================================
--- trunk/libsys-syslog-perl/debian/changelog (original)
+++ trunk/libsys-syslog-perl/debian/changelog Sat Jun 14 21:59:15 2008
@@ -6,6 +6,8 @@
* debian/control: change my email address.
* Set Standards-Version to 3.8.0; add debian/README.source accordingly.
* Make dependency on quilt versioned.
+ * Refresh debian/rules, no functional changes. Don't install README any
+ more.
-- gregor herrmann <gregoa at debian.org> Sat, 14 Jun 2008 23:46:04 +0200
Modified: trunk/libsys-syslog-perl/debian/rules
URL: http://svn.debian.org/wsvn/pkg-perl/trunk/libsys-syslog-perl/debian/rules?rev=21140&op=diff
==============================================================================
--- trunk/libsys-syslog-perl/debian/rules (original)
+++ trunk/libsys-syslog-perl/debian/rules Sat Jun 14 21:59:15 2008
@@ -1,58 +1,70 @@
#!/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
-PERL=/usr/bin/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
include /usr/share/quilt/quilt.make
-configure: configure-stamp
-configure-stamp: $(QUILT_STAMPFN)
+PERL ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
+
+# Allow disabling build optimisation by setting noopt in
+# $DEB_BUILD_OPTIONS
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
+endif
+
+build: build-stamp
+build-stamp: $(QUILT_STAMPFN)
dh_testdir
$(PERL) Makefile.PL INSTALLDIRS=vendor
- touch $@
-
-build: build-stamp
-build-stamp: configure-stamp
- dh_testdir
- $(PERL) Makefile.PL
- $(MAKE)
+ $(MAKE) OPTIMIZE="$(CFLAGS)" LD_RUN_PATH=""
$(MAKE) test
touch $@
clean: unpatch
dh_testdir
dh_testroot
- rm -f build-stamp configure-stamp
- [ ! -f Makefile ] || $(MAKE) distclean
- dh_clean
+ dh_clean build-stamp install-stamp
+ [ ! -f Makefile ] || $(MAKE) realclean
-install: build
+install: install-stamp
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
- dh_installdirs
- $(MAKE) install \
- INSTALLDIRS=vendor \
- DESTDIR=$(CURDIR)/debian/libsys-syslog-perl \
- PREFIX=/usr
- [ ! -d $(CURDIR)/debian/libsys-syslog-perl/usr/share/perl5 ] || rmdir --parents --ignore-fail-on-non-empty $(CURDIR)/debian/libsys-syslog-perl/usr/share/perl5
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+ [ ! -d $(TMP)/usr/share/perl5 ] || \
+ rmdir --ignore-fail-on-non-empty --parents --verbose \
+ $(TMP)/usr/share/perl5
+ touch $@
# Build architecture-independent files here.
binary-indep: build install
-# We have nothing to do by default.
+# We have nothing to do here for an architecture-dependent package
# Build architecture-dependent files here.
binary-arch: build install
dh_testdir
dh_testroot
- dh_installdocs README
+ dh_installexamples eg/*
+ dh_installdocs
dh_installchangelogs Changes
- dh_installexamples eg/*
+ dh_shlibdeps
+ dh_strip
dh_perl
- dh_strip
- dh_shlibdeps
dh_compress
dh_fixperms
dh_installdeb
@@ -61,4 +73,4 @@
dh_builddeb
binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install configure
+.PHONY: build clean binary-indep binary-arch binary install
More information about the Pkg-perl-cvs-commits
mailing list