[libsnmp-session-perl] 14/24: Update to debhelper 10 and dh based debian/rules.
Roland Rosenfeld
roland at moszumanska.debian.org
Tue Aug 22 22:34:48 UTC 2017
This is an automated email from the git hooks/post-receive script.
roland pushed a commit to branch master
in repository libsnmp-session-perl.
commit 98b5d25b9bdedfc85d99377735afdcbed9f1d310
Author: Roland Rosenfeld <roland at debian.org>
Date: Tue Aug 22 23:22:03 2017 +0200
Update to debhelper 10 and dh based debian/rules.
---
debian/changelog | 3 +-
debian/compat | 2 +-
debian/control | 2 +-
debian/rules | 101 +++++++++----------------------------------------------
4 files changed, 19 insertions(+), 89 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 9ec8b3a..3b1b801 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,8 +7,9 @@ libsnmp-session-perl (1.13-2) UNRELEASED; urgency=medium
moved to Uploaders.
* Switch to dpkg-source 3.0 (quilt) format.
* Update debian/copyright to DEP5 format.
+ * Update to debhelper 10 and dh based debian/rules.
- -- Roland Rosenfeld <roland at debian.org> Tue, 22 Aug 2017 23:13:35 +0200
+ -- Roland Rosenfeld <roland at debian.org> Tue, 22 Aug 2017 23:21:55 +0200
libsnmp-session-perl (1.13-1.1) unstable; urgency=low
diff --git a/debian/compat b/debian/compat
index 7ed6ff8..f599e28 100644
--- a/debian/compat
+++ b/debian/compat
@@ -1 +1 @@
-5
+10
diff --git a/debian/control b/debian/control
index d112668..3dcb79d 100644
--- a/debian/control
+++ b/debian/control
@@ -6,7 +6,7 @@ Uploaders: Roland Rosenfeld <roland at debian.org>
Standards-Version: 3.8.3
Vcs-Git: https://anonscm.debian.org/git/pkg-perl/packages/libsnmp-session-perl.git
Vcs-Browser: https://anonscm.debian.org/cgit/pkg-perl/packages/libsnmp-session-perl.git
-Build-Depends: debhelper (>= 5)
+Build-Depends: debhelper (>= 10)
Homepage: http://www.switch.ch/misc/leinen/snmp/perl/
Package: libsnmp-session-perl
diff --git a/debian/rules b/debian/rules
index 5c96625..84eb94e 100755
--- a/debian/rules
+++ b/debian/rules
@@ -1,95 +1,24 @@
#!/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.
PACKAGE=libsnmp-session-perl
+DEBDIR=`pwd`/debian/$(PACKAGE)
-ifndef PERL
- PERL=/usr/bin/perl
-endif
+%:
+ dh $@
-TMP=`pwd`/debian/$(PACKAGE)
-archlib=`$(PERL) -MConfig -e 'print $$Config{installarchlib}'`
-config=INSTALLDIRS=perl INSTALLMAN1DIR=$(TMP)/usr/share/man/man1 INSTALLMAN3DIR=$(TMP)/usr/share/man/man3 INSTALLPRIVLIB=$(TMP)/usr/share/perl5 INSTALLARCHLIB=$(TMP)$(archlib)
-
-
-build: build-stamp
-build-stamp:
- dh_testdir
-
- $(PERL) Makefile.PL $(config)
- $(MAKE)
-
- touch build-stamp
-
-clean:
- dh_testdir
- dh_testroot
- rm -f build-stamp install-stamp
-
- [ ! -f Makefile ] || $(MAKE) clean
- -rm -f Makefile.old
-
- dh_clean
-
-install: install-stamp
-install-stamp: build-stamp
- dh_testdir
- dh_testroot
- dh_clean -k
- dh_installdirs
-
- $(MAKE) pure_install
- mkdir -p $(TMP)/usr/share/doc/$(PACKAGE)
- cp -a index.html $(TMP)/usr/share/doc/$(PACKAGE)/snmp-session.html
-
- # Clean up
- -find $(TMP) -type f -name .packlist | xargs -r rm -f
- -find $(TMP) -type d -empty | xargs -r rmdir -p
-
- # Now we do the examples
- cp -a test $(TMP)/usr/share/doc/$(PACKAGE)/examples
- # Now we fix up the path to perl in the examples
- -$(PERL) -i -p -e "s%/usr/local/bin/perl%/usr/bin/perl%;" $(TMP)/usr/share/doc/$(PACKAGE)/examples/*
- -chmod 755 $(TMP)/usr/share/doc/$(PACKAGE)/examples/*.pl
- -chmod 755 $(TMP)/usr/share/doc/$(PACKAGE)/examples/sun-find-process
-
- touch install-stamp
-
-# Build architecture-independent files here.
-binary-indep: build install
- dh_testdir
- dh_testroot
+override_dh_installdocs:
dh_installdocs
- dh_installexamples
- dh_installmenu
-# dh_installemacsen
-# dh_installpam
-# dh_installinit
- dh_installcron
-# dh_installman
- dh_installinfo
- dh_installchangelogs
- dh_link
- dh_strip
- dh_compress -Xexamples/
- dh_fixperms
- dh_installdeb
- dh_perl
- dh_shlibdeps
- dh_gencontrol
- dh_md5sums
- dh_builddeb
+ mkdir -p $(DEBDIR)/usr/share/doc/$(PACKAGE)
+ cp -a index.html $(DEBDIR)/usr/share/doc/$(PACKAGE)/snmp-session.html
-# Build architecture-dependent files here.
-binary-arch: build install
-# We do nothing here
+# Now we do the examples
+ cp -a test $(DEBDIR)/usr/share/doc/$(PACKAGE)/examples
+# Now we fix up the path to perl in the examples
+ perl -pi -e 's%/usr/local/bin/perl%/usr/bin/perl%;' \
+ $(DEBDIR)/usr/share/doc/$(PACKAGE)/examples/*
+ chmod 755 $(DEBDIR)/usr/share/doc/$(PACKAGE)/examples/*.pl
+ chmod 755 $(DEBDIR)/usr/share/doc/$(PACKAGE)/examples/sun-find-process
-source diff:
- @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
-
-binary: binary-indep binary-arch
-.PHONY: build clean binary-indep binary-arch binary install
+override_dh_compress:
+ dh_compress -Xexamples/
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/libsnmp-session-perl.git
More information about the Pkg-perl-cvs-commits
mailing list