summaryrefslogtreecommitdiff
path: root/net/p5-Net-RawIP
diff options
context:
space:
mode:
authorhe <he@pkgsrc.org>2008-09-13 15:25:25 +0000
committerhe <he@pkgsrc.org>2008-09-13 15:25:25 +0000
commit5417554a4fe62e5d70e3e32bf467ea41ff2bba63 (patch)
treefd6d61a778196dc32e2382f4bf8d7ca1267c65a2 /net/p5-Net-RawIP
parent8bb70de831d2f8c603f69b5858225a74a7b25951 (diff)
downloadpkgsrc-5417554a4fe62e5d70e3e32bf467ea41ff2bba63.tar.gz
Update from version 0.21_03nb1 to 0.23, discussed with maintainer.
Pkgsrc changes: o Canonicalize HOMEPAGE o Fix MASTER_SITES to use MASTER_SITES_PERL_CPAN o Add patch to recognize lo0 on NetBSD. This probably breaks the test on Linux. It's not portable to insist on particular names for interfaces (lo or lo0), but this patch doesn't improve the portability, it just makes it pass on NetBSD. o Add patch to not do the mem_leak test if Proc::ProcessTable is installed but the platform does not provide the virtual size of the process via "size". (We probably should have a kvm-using version of Proc::ProcessTable, but that's for another day.) Upstream changes: 0.23 Tue Jan8 2007 - add version number to submodules 0.22 Tue Jan8 2007 - remove dependency on List::MoreUtils 0.22_01 Mon Jul 16 2007 (Steve Bonds) - fix endianness bug in ICMP packet creation - add lots of comments on what's going on in the ICMP portion of the RawIP.xs and RawIP.pm files - break out sub-packages to their own files so "make test" works even with Critic enabled 0.21 Mon Mar 26 22:53:48 2007 - fix looping bug in set_icmp (Micha Nasriachi) - fix tests to work both as root and as regular user 0.21_04 - Skipped
Diffstat (limited to 'net/p5-Net-RawIP')
-rw-r--r--net/p5-Net-RawIP/Makefile10
-rw-r--r--net/p5-Net-RawIP/distinfo10
-rw-r--r--net/p5-Net-RawIP/patches/patch-aa29
-rw-r--r--net/p5-Net-RawIP/patches/patch-ab17
4 files changed, 57 insertions, 9 deletions
diff --git a/net/p5-Net-RawIP/Makefile b/net/p5-Net-RawIP/Makefile
index 1a5fccf6c59..127fe077e2c 100644
--- a/net/p5-Net-RawIP/Makefile
+++ b/net/p5-Net-RawIP/Makefile
@@ -1,18 +1,18 @@
-# $NetBSD: Makefile,v 1.6 2008/06/12 02:14:40 joerg Exp $
+# $NetBSD: Makefile,v 1.7 2008/09/13 15:25:25 he Exp $
#
-DISTNAME= Net-RawIP-0.21_03
+DISTNAME= Net-RawIP-0.23
PKGNAME= p5-${DISTNAME}
SVR4_PKGNAME= p5nsn
-PKGREVISION= 1
CATEGORIES= net perl5
-MASTER_SITES= http://search.cpan.org/CPAN/authors/id/S/SZ/SZABGAB/
+MASTER_SITES= ${MASTER_SITE_PERL_CPAN:=Net/}
MAINTAINER= bouyer@NetBSD.org
-HOMEPAGE= http://search.cpan.org/~szabgab/Net-RawIP-0.21_03/
+HOMEPAGE= http://search.cpan.org/dist/Net-RawIP/
COMMENT= Perl extension to manipulate raw ip packets with interface to libpcap
PKG_DESTDIR_SUPPORT= user-destdir
+USE_LANGUAGES= c
DEPENDS+= p5-List-MoreUtils-[0-9]*:../../devel/p5-List-MoreUtils
diff --git a/net/p5-Net-RawIP/distinfo b/net/p5-Net-RawIP/distinfo
index 65d17d1bdc1..63aa9331023 100644
--- a/net/p5-Net-RawIP/distinfo
+++ b/net/p5-Net-RawIP/distinfo
@@ -1,5 +1,7 @@
-$NetBSD: distinfo,v 1.2 2007/03/07 16:46:39 gson Exp $
+$NetBSD: distinfo,v 1.3 2008/09/13 15:25:25 he Exp $
-SHA1 (Net-RawIP-0.21_03.tar.gz) = ee21c712193f5854df53a5ffda7e9cf7da12aecc
-RMD160 (Net-RawIP-0.21_03.tar.gz) = fa23811d7d9b5e75da51769d585b37599f4e5111
-Size (Net-RawIP-0.21_03.tar.gz) = 36878 bytes
+SHA1 (Net-RawIP-0.23.tar.gz) = 51ea4fb73bf4e4e78a53f108c0de3d8f43fd4af2
+RMD160 (Net-RawIP-0.23.tar.gz) = b90e082e53e8c4d96fe710824e1d34e266bd7152
+Size (Net-RawIP-0.23.tar.gz) = 41851 bytes
+SHA1 (patch-aa) = 418814696960cfa43c794d1fb0edc8c277373c8c
+SHA1 (patch-ab) = 2e50640ab1941c6199babb3ce8118b97fca87acf
diff --git a/net/p5-Net-RawIP/patches/patch-aa b/net/p5-Net-RawIP/patches/patch-aa
new file mode 100644
index 00000000000..85fe3c6a98a
--- /dev/null
+++ b/net/p5-Net-RawIP/patches/patch-aa
@@ -0,0 +1,29 @@
+$NetBSD: patch-aa,v 1.1 2008/09/13 15:25:25 he Exp $
+
+--- t/iflist.t.orig 2007-04-03 12:59:40.000000000 +0200
++++ t/iflist.t
+@@ -27,10 +27,10 @@ $SIG{__WARN__} = 'DEFAULT';
+
+ {
+ my $list = ifaddrlist;
+- is( ref($list), 'HASH', 'ifaddrlist retursn HASH ref');
++ is( ref($list), 'HASH', 'ifaddrlist returns HASH ref');
+
+- ok(exists $list->{lo}, 'lo interface exists');
+- is($list->{lo}, '127.0.0.1', 'lo interface is 127.0.0.1');
++ ok(exists $list->{lo0}, 'lo0 interface exists');
++ is($list->{lo0}, '127.0.0.1', 'lo0 interface is 127.0.0.1');
+
+ # on my Linux machine this is
+ # lo -> 127.0.0.1
+@@ -42,8 +42,8 @@ $SIG{__WARN__} = 'DEFAULT';
+ }
+
+ {
+- is(rdev('127.0.0.1'), 'lo', 'rdev 127.0.0.1');
+- is(rdev('localhost'), 'lo', 'rdev localhost');
++ is(rdev('127.0.0.1'), 'lo0', 'rdev 127.0.0.1');
++ is(rdev('localhost'), 'lo0', 'rdev localhost');
+ eval {
+ rdev('ab cd');
+ };
diff --git a/net/p5-Net-RawIP/patches/patch-ab b/net/p5-Net-RawIP/patches/patch-ab
new file mode 100644
index 00000000000..df76fc0f83d
--- /dev/null
+++ b/net/p5-Net-RawIP/patches/patch-ab
@@ -0,0 +1,17 @@
+$NetBSD: patch-ab,v 1.1 2008/09/13 15:25:25 he Exp $
+
+--- t/memory_leak.t.orig 2007-04-03 12:59:40.000000000 +0200
++++ t/memory_leak.t
+@@ -13,6 +13,12 @@ eval {
+ if ($@) {
+ plan skip_all => "Proc::ProcessTable is needed for this test";
+ }
++eval {
++ my $s = get_process_size($$);
++};
++if ($@) {
++ plan skip_all => "Proc::ProcessTable does not return process size";
++}
+ else {
+ plan tests => $tests;
+ }