Code

Added new binary package "libnet-oping-perl":
authorSebastian Harl <sh@tokkee.org>
Sat, 6 Jun 2009 16:58:35 +0000 (18:58 +0200)
committerSebastian Harl <sh@tokkee.org>
Sat, 6 Jun 2009 16:58:35 +0000 (18:58 +0200)
- 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
debian/control
debian/libnet-oping-perl.install [new file with mode: 0644]
debian/liboping-dev.install
debian/rules

index 2437b86a14489e8e90b8f0385f09a8ddc566ed6c..1338786510603075432bac3bcb7b11026695bfc2 100644 (file)
@@ -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 <tokkee@debian.org>  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 <tokkee@debian.org>  Sat, 06 Jun 2009 18:53:35 +0200
 
 liboping (0.3.5-1) unstable; urgency=low
 
index bf736f80f0cc200bfeea645ff1b623f43af918b6..357dde5e741361a104ecd1e87cc545da65557b9a 100644 (file)
@@ -2,7 +2,7 @@ Source: liboping
 Section: libs
 Priority: optional
 Maintainer: Sebastian Harl <tokkee@debian.org>
-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 (file)
index 0000000..c6bbe27
--- /dev/null
@@ -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
+
index a3fde16db270b35d913b1f690c10c7bd34dc0bf9..f4310d3aa272e06ab27091b3af4b33e953d61143 100644 (file)
@@ -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
 
index 9fe0725e7e99eecd5e332bde1ce7d97445a6d2ec..fcb4d11dc0f1babf2bfb74e41e95589e917f58ae 100755 (executable)
@@ -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