summaryrefslogtreecommitdiff
path: root/net/p5-Net-Pcap/patches
diff options
context:
space:
mode:
authorjperkin <jperkin@pkgsrc.org>2014-07-14 11:59:02 +0000
committerjperkin <jperkin@pkgsrc.org>2014-07-14 11:59:02 +0000
commit89b9cbbb4579aa8c80a2e95c213eee96c0d90769 (patch)
tree0d4eb0d41e68de70f5971d353d8a175f79851a7f /net/p5-Net-Pcap/patches
parentff40eb003d7e70dd5d0b7a24e00e5d589da0517a (diff)
downloadpkgsrc-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.PL11
-rw-r--r--net/p5-Net-Pcap/patches/patch-aa4
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