From 940a7bb111b3052ef750304eeaa4ba3bb6d64408 Mon Sep 17 00:00:00 2001 From: Sebastian Harl Date: Sat, 6 Jun 2009 18:58:35 +0200 Subject: [PATCH] Added new binary package "libnet-oping-perl": - Since Net::Oping uses its own version, $srcver-$perlver-$debrev is used for the package version. - Added libnet-oping-perl.install. - Build-depend on perl-modules - debian/rules now requires the ExtUtils:MM module. --- debian/changelog | 10 ++++++++-- debian/control | 20 +++++++++++++++----- debian/libnet-oping-perl.install | 5 +++++ debian/liboping-dev.install | 3 ++- debian/rules | 27 ++++++++++++++++++++------- 5 files changed, 50 insertions(+), 15 deletions(-) create mode 100644 debian/libnet-oping-perl.install diff --git a/debian/changelog b/debian/changelog index 2437b86..1338786 100644 --- a/debian/changelog +++ b/debian/changelog @@ -17,8 +17,14 @@ liboping (1.1.2-1) unstable; urgency=low function in liboping static. * debian/compat: - Updated to compat version 5. - - -- Sebastian Harl Sat, 06 Jun 2009 16:37:27 +0200 + * Added new binary package "libnet-oping-perl": + - Since Net::Oping uses its own version, $srcver-$perlver-$debrev is used + for the package version. + - Added libnet-oping-perl.install. + - Build-depend on perl-modules - debian/rules now requires the ExtUtils:MM + module. + + -- Sebastian Harl Sat, 06 Jun 2009 18:53:35 +0200 liboping (0.3.5-1) unstable; urgency=low diff --git a/debian/control b/debian/control index bf736f8..357dde5 100644 --- a/debian/control +++ b/debian/control @@ -2,7 +2,7 @@ Source: liboping Section: libs Priority: optional Maintainer: Sebastian Harl -Build-Depends: debhelper (>= 5.0.0), autotools-dev, dpatch +Build-Depends: debhelper (>= 5.0.0), autotools-dev, dpatch, perl-modules Standards-Version: 3.8.1 Homepage: http://verplant.org/liboping/ Vcs-Git: git://git.tokkee.org/pkg-liboping.git @@ -14,7 +14,7 @@ Architecture: any Depends: liboping0 (>= ${binary:Version}) Conflicts: liboping0-dev Replaces: liboping0-dev -Description: C/C++ library to generate ICMP_ECHO requests (development files) +Description: C/C++ library to generate ICMP ECHO_REQUESTs (development files) liboping features pinging multiple hosts in parallel using IPv4 or IPv6 transparently. The interface is object oriented. . @@ -24,7 +24,7 @@ Package: liboping0 Section: libs Architecture: any Depends: ${shlibs:Depends} -Description: C/C++ library to generate ICMP_ECHO requests +Description: C/C++ library to generate ICMP ECHO_REQUESTs liboping features pinging multiple hosts in parallel using IPv4 or IPv6 transparently. The interface is object oriented. . @@ -35,7 +35,17 @@ Section: net Architecture: any Depends: ${shlibs:Depends} Description: sends ICMP_ECHO requests to network hosts - oping uses ICMP packages (better known as "ping packets") to test the - reachability of network hosts. It supports pinging multiple hosts in parallel + oping uses ICMP packages (better known as "ping packets") to test the + reachability of network hosts. It supports pinging multiple hosts in parallel using IPv4 or IPv6 transparently. +Package: libnet-oping-perl +Section: perl +Architecture: any +Depends: ${perl:Depends}, ${shlibs:Depends} +Description: module for ICMP latency measurement + Net::Oping is a Perl module for sending ICMP ECHO_REQUESTs (better known as + "ping packets") and measuring the time that elapses until the reception of an + ICMP ECHO_REPLY packet (also known as "pong"). It supports pinging multiple + hosts in parallel using IPv4 or IPv6 transparently. + diff --git a/debian/libnet-oping-perl.install b/debian/libnet-oping-perl.install new file mode 100644 index 0000000..c6bbe27 --- /dev/null +++ b/debian/libnet-oping-perl.install @@ -0,0 +1,5 @@ +usr/lib/perl5/Net/Oping.pm +usr/lib/perl5/auto/Net/Oping/Oping.bs +usr/lib/perl5/auto/Net/Oping/Oping.so +usr/share/man/man3/Net::Oping.3pm + diff --git a/debian/liboping-dev.install b/debian/liboping-dev.install index a3fde16..f4310d3 100644 --- a/debian/liboping-dev.install +++ b/debian/liboping-dev.install @@ -2,5 +2,6 @@ usr/include/oping.h usr/lib/liboping.a usr/lib/liboping.la usr/lib/liboping.so -usr/share/man/man3/* +usr/share/man/man3/ping* +usr/share/man/man3/liboping.3 diff --git a/debian/rules b/debian/rules index 9fe0725..fcb4d11 100755 --- a/debian/rules +++ b/debian/rules @@ -21,6 +21,12 @@ endif include /usr/share/dpatch/dpatch.make +# $srcver-$perlver-$debrev +LIBPERL_VERSION := $(shell pm_ver=`perl -MExtUtils::MM -e \ + 'print MM->parse_version("bindings/perl/lib/Net/Oping.pm");'`; \ + pkg_ver=`dpkg-parsechangelog | egrep '^Version:' | cut -d' ' -f2`; \ + echo -n "$${pkg_ver%-*}-$$pm_ver-$${pkg_ver\#\#*-}") + config.status: configure $(DPATCH_STAMPFN) dh_testdir @@ -29,16 +35,19 @@ config.status: configure $(DPATCH_STAMPFN) ln -s /usr/share/misc/$$file .; \ done - CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) \ - --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr \ - --mandir=\$${prefix}/share/man + CFLAGS="$(CFLAGS)" ./configure \ + --host=$(DEB_HOST_GNU_TYPE) \ + --build=$(DEB_BUILD_GNU_TYPE) \ + --prefix=/usr \ + --mandir=\$${prefix}/share/man \ + --with-perl-bindings="INSTALLDIRS=vendor" build: build-stamp build-stamp: config.status dh_testdir - $(MAKE) + $(MAKE) LD_RUN_PATH="" touch build-stamp @@ -76,10 +85,13 @@ binary-indep: binary-arch: build install dh_testdir dh_testroot - dh_installchangelogs ChangeLog - dh_installdocs -A README + dh_installchangelogs -Nlibnet-oping-perl ChangeLog + dh_installchangelogs -plibnet-oping-perl bindings/perl/Changes + dh_installdocs -A -Nlibnet-oping-perl README + dh_installdocs -plibnet-oping-perl bindings/perl/README dh_installman dh_install --sourcedir=debian/tmp --list-missing + dh_perl -plibnet-oping-perl dh_link dh_strip dh_compress @@ -87,7 +99,8 @@ binary-arch: build install dh_makeshlibs dh_installdeb dh_shlibdeps -ldebian/liboping0/usr/lib/ - dh_gencontrol + dh_gencontrol -Nlibnet-oping-perl + dh_gencontrol -plibnet-oping-perl -u-v$(LIBPERL_VERSION) dh_md5sums dh_builddeb -- 2.30.2