[libmail-sendmail-perl] 02/09: Use short-form debian/rules

Florian Schlichting fsfs at moszumanska.debian.org
Sun Nov 27 16:26:21 UTC 2016


This is an automated email from the git hooks/post-receive script.

fsfs pushed a commit to branch master
in repository libmail-sendmail-perl.

commit f93e0f4ad1bbe9e4a296e0bf236f7d3a59befd60
Author: Florian Schlichting <fsfs at debian.org>
Date:   Sun Nov 27 16:41:05 2016 +0100

    Use short-form debian/rules
---
 debian/control                    |  3 +-
 debian/libmail-sendmail-perl.docs |  1 +
 debian/rules                      | 62 ++-------------------------------------
 3 files changed, 5 insertions(+), 61 deletions(-)

diff --git a/debian/control b/debian/control
index 0f718d4..81d18f2 100644
--- a/debian/control
+++ b/debian/control
@@ -5,8 +5,7 @@ Uploaders: Niko Tyni <ntyni at iki.fi>,
 Section: perl
 Testsuite: autopkgtest-pkg-perl
 Priority: optional
-Build-Depends: debhelper (>= 5),
-               quilt
+Build-Depends: debhelper (>= 5)
 Standards-Version: 3.8.0
 Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libmail-sendmail-perl.git
 Vcs-Git: https://anonscm.debian.org/git/pkg-perl/packages/libmail-sendmail-perl.git
diff --git a/debian/libmail-sendmail-perl.docs b/debian/libmail-sendmail-perl.docs
new file mode 100644
index 0000000..0db68d7
--- /dev/null
+++ b/debian/libmail-sendmail-perl.docs
@@ -0,0 +1 @@
+Todo
diff --git a/debian/rules b/debian/rules
index 429ecd2..efcfdc7 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,63 +1,7 @@
 #!/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
+%:
+	dh $@
 
-# 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
-
-PERL   ?= /usr/bin/perl
-PACKAGE = $(shell dh_listpackages)
-TMP     = $(CURDIR)/debian/$(PACKAGE)
-
-build: build-stamp
-build-stamp: $(QUILT_STAMPFN)
-	dh_testdir
-	$(PERL) Makefile.PL INSTALLDIRS=vendor
-	$(MAKE)
+override_dh_auto_test:
 	# tests try to send a mail
-	#$(MAKE) test
-	touch $@
-
-clean: unpatch
-	dh_testdir
-	dh_testroot
-	dh_clean build-stamp install-stamp
-	[ ! -f Makefile ] || $(MAKE) realclean
-
-install: install-stamp
-install-stamp: build-stamp
-	dh_testdir
-	dh_testroot
-	dh_clean -k
-	$(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_installdocs Todo
-	dh_installchangelogs Changes
-	dh_perl
-	dh_compress
-	dh_fixperms
-	dh_installdeb
-	dh_gencontrol
-	dh_md5sums
-	dh_builddeb
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libmail-sendmail-perl.git



More information about the Pkg-perl-cvs-commits mailing list