aboutsummaryrefslogtreecommitdiff
path: root/net/p5-Net-Pcap
diff options
context:
space:
mode:
authorCheng-Lung Sung <clsung@FreeBSD.org>2007-12-30 09:08:23 +0000
committerCheng-Lung Sung <clsung@FreeBSD.org>2007-12-30 09:08:23 +0000
commit381bc10eb553f75395d9be2b43753daa888d68c6 (patch)
tree936dcadbb72e9729de95349130570514e7c51753 /net/p5-Net-Pcap
parent310aa56a7611ed36f560dae5d58df2eecedc09ee (diff)
downloadports-381bc10eb553f75395d9be2b43753daa888d68c6.tar.gz
ports-381bc10eb553f75395d9be2b43753daa888d68c6.zip
- pat when net/libpcap installed
- bug observed in freebsd-perl@ - bump PORTREVISION - take maintainership
Notes
Notes: svn path=/head/; revision=204692
Diffstat (limited to 'net/p5-Net-Pcap')
-rw-r--r--net/p5-Net-Pcap/Makefile7
-rw-r--r--net/p5-Net-Pcap/files/patch-Makefile.PL10
2 files changed, 12 insertions, 5 deletions
diff --git a/net/p5-Net-Pcap/Makefile b/net/p5-Net-Pcap/Makefile
index a4be23b72785..f4c0baf2fc02 100644
--- a/net/p5-Net-Pcap/Makefile
+++ b/net/p5-Net-Pcap/Makefile
@@ -7,11 +7,12 @@
PORTNAME= Net-Pcap
PORTVERSION= 0.15
+PORTREVISION= 1
CATEGORIES= net perl5
MASTER_SITES= CPAN
PKGNAMEPREFIX= p5-
-MAINTAINER= perl@FreeBSD.org
+MAINTAINER= clsung@FreeBSD.org
COMMENT= Interface to pcap(3) LBL packet capture library
RUN_DEPENDS= ${SITE_PERL}/${PERL_ARCH}/IO/Interface.pm:${PORTSDIR}/net/p5-IO-Interface
@@ -24,8 +25,4 @@ MAN3= Net::Pcap.3
pre-patch:
${FIND} ${WRKSRC} -name "._Pcap.pm" -delete
-do-patch:
- @${REINPLACE_CMD} -e "s#cc_r =>#cc => '-o', cc_r =>#" \
- ${WRKSRC}/Makefile.PL
-
.include <bsd.port.mk>
diff --git a/net/p5-Net-Pcap/files/patch-Makefile.PL b/net/p5-Net-Pcap/files/patch-Makefile.PL
new file mode 100644
index 000000000000..a1a3b2fc76e3
--- /dev/null
+++ b/net/p5-Net-Pcap/files/patch-Makefile.PL
@@ -0,0 +1,10 @@
+--- Makefile.PL.orig 2007-12-02 10:23:04.000000000 +0800
++++ Makefile.PL 2007-12-30 17:01:30.000000000 +0800
+@@ -23,6 +23,7 @@
+ } else {
+ $options{CCFLAGS} = '-Wall' if $Config{cc} eq 'gcc' and $] >= 5.006;
+ $options{LIBS} = '-lpcap';
++ $options{DEFINE} = '-DHAVE_PCAP_LIST_DATALINKS';
+ }
+
+ for my $arg (@ARGV) {