From f990d56422c7e7c535d53862ca1d95e1e1b8fbf0 Mon Sep 17 00:00:00 2001 From: clsung Date: Sun, 30 Dec 2007 09:08:23 +0000 Subject: - pat when net/libpcap installed - bug observed in freebsd-perl@ - bump PORTREVISION - take maintainership --- net/p5-Net-Pcap/Makefile | 7 ++----- net/p5-Net-Pcap/files/patch-Makefile.PL | 10 ++++++++++ 2 files changed, 12 insertions(+), 5 deletions(-) create mode 100644 net/p5-Net-Pcap/files/patch-Makefile.PL (limited to 'net') 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 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) { -- cgit