[PATCH] Start over with standard rules file generated by dh-make-perl
Hilko Bengen
bengen at debian.org
Fri May 30 10:45:01 UTC 2008
---
debian/compat | 2 +-
debian/debpool.dirs | 1 +
debian/debpool.install | 4 +-
debian/rules | 90 ++++++++++++++++++++++++++++++------------------
4 files changed, 60 insertions(+), 37 deletions(-)
diff --git a/debian/compat b/debian/compat
index b8626c4..7ed6ff8 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-4
+5
diff --git a/debian/debpool.dirs b/debian/debpool.dirs
index bd178e9..d4e8370 100644
--- a/debian/debpool.dirs
+++ b/debian/debpool.dirs
@@ -1 +1,2 @@
var/cache/debpool
+etc/debpool
diff --git a/debian/debpool.install b/debian/debpool.install
index 1a6486d..2b05afa 100644
--- a/debian/debpool.install
+++ b/debian/debpool.install
@@ -1,3 +1,3 @@
examples/Config.pm etc/debpool
-bin/debpool usr/bin
-share/DebPool usr/share/debpool/perl5
+
+
diff --git a/debian/rules b/debian/rules
index 554e4fe..0647fb7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,44 +1,66 @@
-#! /usr/bin/make -f
+#!/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.
-build:
+# 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
+
+PERL ?= /usr/bin/perl
+PACKAGE = $(shell dh_listpackages)
+TMP = $(CURDIR)/debian/$(PACKAGE)
+
+build: build-stamp
+build-stamp:
dh_testdir
- [ -e build-stamp ] || \
- mkdir debian/tmp && \
- pod2man --name="DebPool::Config" \
- --center="DebPool Configuration" \
- --release="debpool v0.2.4" \
- --section=5 \
- share/DebPool/Config.pm \
- debian/tmp/DebPool::Config.5 && \
- touch build-stamp
-
-binary-indep: build
+ # Add commands to compile the package here
+ $(PERL) Makefile.PL INSTALLDIRS=vendor
+ $(MAKE)
+ # $(MAKE) test
+ touch $@
+
+clean:
dh_testdir
dh_testroot
- dh_installdirs -i
- dh_install -i
- dh_installdocs -i
- dh_installexamples -i
- dh_installchangelogs -i
- dh_installman -i
- dh_installinit -i
- dh_installlogrotate -i
- dh_perl -i
- dh_compress -i
- dh_fixperms -i
- dh_md5sums -i
- dh_gencontrol -i
- dh_installdeb -i
- dh_builddeb -i
+ dh_clean build-stamp install-stamp
+ # Add commands to clean up after the build process here
+ [ ! -f Makefile ] || $(MAKE) realclean
-binary-arch:
+install: install-stamp
+install-stamp: build-stamp
+ dh_testdir
+ dh_testroot
+ dh_clean -k
+ dh_installdirs
+ # Add commands to install the package into $(TMP) here
+ $(MAKE) install DESTDIR=$(TMP) PREFIX=/usr
+ [ ! -d $(TMP)/usr/lib/perl5 ] || \
+ rmdir --ignore-fail-on-non-empty --parents --verbose \
+ $(TMP)/usr/lib/perl5
+ dh_install
+ touch $@
-binary: binary-indep binary-arch
+binary-arch:
+# We have nothing to do here for an architecture-independent package
-clean:
+binary-indep: build install
dh_testdir
dh_testroot
- [ ! -f build-stamp ] || rm build-stamp
- dh_clean
+ dh_installexamples examples/*
+ dh_installdocs
+ dh_installchangelogs
+ dh_perl
+ dh_compress
+ dh_fixperms
+ dh_installdeb
+ dh_gencontrol
+ dh_md5sums
+ dh_builddeb
-.PHONY: binary binary-arch binary-indep build clean
+binary: binary-indep binary-arch
+.PHONY: build clean binary-indep binary-arch binary install
--
1.5.5.3
More information about the Debpool-devel
mailing list