diff options
author | jperkin <jperkin@pkgsrc.org> | 2014-07-14 11:59:02 +0000 |
---|---|---|
committer | jperkin <jperkin@pkgsrc.org> | 2014-07-14 11:59:02 +0000 |
commit | 89b9cbbb4579aa8c80a2e95c213eee96c0d90769 (patch) | |
tree | 0d4eb0d41e68de70f5971d353d8a175f79851a7f /net/p5-Net-Pcap/patches | |
parent | ff40eb003d7e70dd5d0b7a24e00e5d589da0517a (diff) | |
download | pkgsrc-89b9cbbb4579aa8c80a2e95c213eee96c0d90769.tar.gz |
Look for -lpcap in the correct dir. Fixes at least SunOS.
Diffstat (limited to 'net/p5-Net-Pcap/patches')
-rw-r--r-- | net/p5-Net-Pcap/patches/patch-Makefile.PL | 11 | ||||
-rw-r--r-- | net/p5-Net-Pcap/patches/patch-aa | 4 |
2 files changed, 13 insertions, 2 deletions
diff --git a/net/p5-Net-Pcap/patches/patch-Makefile.PL b/net/p5-Net-Pcap/patches/patch-Makefile.PL index ab35765ada2..7caf8b2498b 100644 --- a/net/p5-Net-Pcap/patches/patch-Makefile.PL +++ b/net/p5-Net-Pcap/patches/patch-Makefile.PL @@ -1,4 +1,4 @@ -$NetBSD: patch-Makefile.PL,v 1.1 2014/01/10 15:40:28 jperkin Exp $ +$NetBSD: patch-Makefile.PL,v 1.2 2014/07/14 11:59:02 jperkin Exp $ Do not override CCFLAGS and LIBS. @@ -15,3 +15,12 @@ Do not override CCFLAGS and LIBS. } for my $arg (@ARGV) { +@@ -530,7 +530,7 @@ sub have_functions { + my @funcs = (); + print "detecting available functions... "; + +- my @paths = DynaLoader::dl_findfile(qw(-lpcap)); ++ my @paths = DynaLoader::dl_findfile(qw(-L@PCAP_LIBDIR@ -lpcap)); + my $libref = DynaLoader::dl_load_file($paths[0]); + + for my $func (@_) { diff --git a/net/p5-Net-Pcap/patches/patch-aa b/net/p5-Net-Pcap/patches/patch-aa index 19c5942916e..fbbbadb0356 100644 --- a/net/p5-Net-Pcap/patches/patch-aa +++ b/net/p5-Net-Pcap/patches/patch-aa @@ -1,4 +1,6 @@ -$NetBSD: patch-aa,v 1.1 2008/08/24 20:07:42 he Exp $ +$NetBSD: patch-aa,v 1.2 2014/07/14 11:59:02 jperkin Exp $ + +Handle *BSD. --- t/03-openlive.t.orig 2007-12-22 20:46:39.000000000 +0100 +++ t/03-openlive.t |