r13673 - in /trunk/libcrypt-openssl-dsa-perl/debian: changelog rules
dmn at users.alioth.debian.org
dmn at users.alioth.debian.org
Sun Jan 27 18:37:01 UTC 2008
Author: dmn
Date: Sun Jan 27 18:37:01 2008
New Revision: 13673
URL: http://svn.debian.org/wsvn/?sc=1&rev=13673
Log:
* debian/rules: sync with current dh-make-perl templates
Modified:
trunk/libcrypt-openssl-dsa-perl/debian/changelog
trunk/libcrypt-openssl-dsa-perl/debian/rules
Modified: trunk/libcrypt-openssl-dsa-perl/debian/changelog
URL: http://svn.debian.org/wsvn/trunk/libcrypt-openssl-dsa-perl/debian/changelog?rev=13673&op=diff
==============================================================================
--- trunk/libcrypt-openssl-dsa-perl/debian/changelog (original)
+++ trunk/libcrypt-openssl-dsa-perl/debian/changelog Sun Jan 27 18:37:01 2008
@@ -9,6 +9,7 @@
* Standards-Version: 3.7.3 (no changes)
* debhelper compatibility level 6
* add myself to Uploaders
+ * debian/rules: sync with current dh-make-perl templates
-- Damyan Ivanov <dmn at debian.org> Thu, 24 Jan 2008 21:36:44 +0200
Modified: trunk/libcrypt-openssl-dsa-perl/debian/rules
URL: http://svn.debian.org/wsvn/trunk/libcrypt-openssl-dsa-perl/debian/rules?rev=13673&op=diff
==============================================================================
--- trunk/libcrypt-openssl-dsa-perl/debian/rules (original)
+++ trunk/libcrypt-openssl-dsa-perl/debian/rules Sun Jan 27 18:37:01 2008
@@ -13,10 +13,16 @@
PERL = /usr/bin/perl
endif
-ifndef DESTDIR
-DESTDIR=..
+# Allow disabling build optimation by setting noopt in
+# $DEB_BUILD_OPTIONS
+CFLAGS = -Wall -g
+ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
+ CFLAGS += -O0
+else
+ CFLAGS += -O2
endif
-TMP =`pwd`/debian/$(PACKAGE)
+
+TMP =$(CURDIR)/debian/$(PACKAGE)
build: build-stamp
build-stamp:
@@ -26,45 +32,45 @@
$(MAKE)
$(MAKE) test
- touch build-stamp
+ touch $@
clean:
dh_testdir
dh_testroot
- rm -f build-stamp
+ dh_clean build-stamp install-stamp
- -$(MAKE) realclean
+ [ ! -e Makefile ] || $(MAKE) realclean
- dh_clean
-
-install:
+install: install-stamp
+install-stamp: build-stamp
dh_testdir
dh_testroot
dh_clean -k
- dh_installdirs
- $(MAKE) install PREFIX=$(TMP)/usr
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+
+ [ ! -d $(TMP)/usr/share/perl5 ] || rmdir --parents --ignore-fail-on-non-empty --verbose $(TMP)/usr/share/perl5
+
+ touch $@
# Build architecture-dependent files here.
-binary-arch: build install
+binary-arch: install
dh_testdir
dh_testroot
- dh_installdocs README
- dh_installman
+ dh_installdocs
dh_installchangelogs Changes
- dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
- dh_perl
+ dh_perl
dh_shlibdeps
dh_gencontrol
dh_md5sums
- dh_builddeb --destdir=$(DESTDIR)
+ dh_builddeb
# Build architecture-independent files here.
-binary-indep: build install
+binary-indep:
# We have nothing to do by default.
binary: binary-indep binary-arch
More information about the Pkg-perl-cvs-commits
mailing list