From 8bfc9b4d40e7df2120eecc0d94a95af6162d8870 Mon Sep 17 00:00:00 2001 From: he Date: Sun, 24 Aug 2008 20:07:42 +0000 Subject: Update from version 0.14 to 0.16; discussed with maintainer in general terms. Pkgsrc changes: o Add a patch to handle all BSD systems the same in test 03 o Added a commented-out build dependency, Test::Distribution does not appear to work for this package (and is optional anyway) Upstream changes: 2008.01.01 - 0.16 - Sebastien Aperghis-Tramoni (SAPER) - [BUGFIX] A typo prevented the new function names from working. - [TESTS] Added new tests: 21-next_ex.t, 22-open.t, 23-srcstr.t, 50-poe-component-pcap.t - [TESTS] Added support for user prefered device. See README. - [TESTS] Improved small bits of the tests here and there. 2007.12.02 - 0.15 - Sebastien Aperghis-Tramoni (SAPER) - [BUGFIX] CPAN-RT#30745: Fix WinPcap support. - [BUGFIX] CPAN-RT#25076: Fix next_ex(). - [API] Now providing "pcap_"-prefixed aliases for all functions. Documentation was changed to use these names instead of the old ones. - [CMD] pcapinfo(1) no longer need IO::Interface. - [TESTS] CPAN-RT#30903: Fix t/03-openlive.t failure on Linux. - [DOC] CPAN-RT#27369: Several documentation fixes. - [DOC] CPAN-RT#31111: Document that pcap_stats() does not work on savefiles. --- net/p5-Net-Pcap/Makefile | 6 ++++-- net/p5-Net-Pcap/distinfo | 9 +++++---- net/p5-Net-Pcap/patches/patch-aa | 13 +++++++++++++ 3 files changed, 22 insertions(+), 6 deletions(-) create mode 100644 net/p5-Net-Pcap/patches/patch-aa (limited to 'net') diff --git a/net/p5-Net-Pcap/Makefile b/net/p5-Net-Pcap/Makefile index 5f5347bf327..31689875c50 100644 --- a/net/p5-Net-Pcap/Makefile +++ b/net/p5-Net-Pcap/Makefile @@ -1,7 +1,7 @@ -# $NetBSD: Makefile,v 1.13 2008/06/12 02:14:40 joerg Exp $ +# $NetBSD: Makefile,v 1.14 2008/08/24 20:07:42 he Exp $ # -DISTNAME= Net-Pcap-0.14 +DISTNAME= Net-Pcap-0.16 PKGNAME= p5-${DISTNAME} CATEGORIES= net perl5 MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Net/} @@ -13,6 +13,8 @@ COMMENT= Perl interface to pcap(3) LBL packet capture library PKG_DESTDIR_SUPPORT= user-destdir DEPENDS+= p5-IO-Interface-[0-9]*:../../net/p5-IO-Interface +# Used during test, doesn't work properly: +# BUILD_DEPENDS+= p5-Test-Distribution-[0-9]*:../../devel/p5-Test-Distribution BUILDLINK_API_DEPENDS.libpcap+= libpcap>=0.9.5 diff --git a/net/p5-Net-Pcap/distinfo b/net/p5-Net-Pcap/distinfo index f4251b5d656..bfc5e22c290 100644 --- a/net/p5-Net-Pcap/distinfo +++ b/net/p5-Net-Pcap/distinfo @@ -1,5 +1,6 @@ -$NetBSD: distinfo,v 1.4 2007/01/03 13:44:03 adrianp Exp $ +$NetBSD: distinfo,v 1.5 2008/08/24 20:07:42 he Exp $ -SHA1 (Net-Pcap-0.14.tar.gz) = baa520bf45c032fa4239643b0bfbea91d7e81da6 -RMD160 (Net-Pcap-0.14.tar.gz) = 3a21f4b97d2f51533e3fa0a74fdc232c87b6a63b -Size (Net-Pcap-0.14.tar.gz) = 77534 bytes +SHA1 (Net-Pcap-0.16.tar.gz) = 19093760cce2830c16c1a081a7dc324cfe043c9b +RMD160 (Net-Pcap-0.16.tar.gz) = 12cb441018c37244f58b6647ab6047c4d7443449 +Size (Net-Pcap-0.16.tar.gz) = 82023 bytes +SHA1 (patch-aa) = bbb5a5129b6f07f3ade687f2e1405d34726bdbb7 diff --git a/net/p5-Net-Pcap/patches/patch-aa b/net/p5-Net-Pcap/patches/patch-aa new file mode 100644 index 00000000000..19c5942916e --- /dev/null +++ b/net/p5-Net-Pcap/patches/patch-aa @@ -0,0 +1,13 @@ +$NetBSD: patch-aa,v 1.1 2008/08/24 20:07:42 he Exp $ + +--- t/03-openlive.t.orig 2007-12-22 20:46:39.000000000 +0100 ++++ t/03-openlive.t +@@ -64,7 +64,7 @@ eval { $pcap = Net::Pcap::open_live($fak + is( $@, '', "open_live()" ); + if($^O eq 'MSWin32' or $^O eq 'cygwin') { + like( $err, '/^Error opening adapter:/', " - \$err must be set: $err" ); +-} elsif($^O eq 'darwin' or $^O eq 'freebsd' or $^O eq 'openbsd') { ++} elsif($^O eq 'darwin' or $^O =~ '.*bsd') { + like( $err, "/^(?:BIOCSETIF: )?$fakedev: Device not configured/", " - \$err must be set: $err" ); + } else { + like( $err, '/^(?:bind|ioctl|SIOCGIFHWADDR): (?:No such device)/', " - \$err must be set: $err" ); -- cgit v1.2.3