diff --git a/net/p5-Net-Pcap/Makefile b/net/p5-Net-Pcap/Makefile index 76a3e5b872a6..d64a9a6f2530 100644 --- a/net/p5-Net-Pcap/Makefile +++ b/net/p5-Net-Pcap/Makefile @@ -1,24 +1,24 @@ PORTNAME= Net-Pcap -PORTVERSION= 0.18 +PORTVERSION= 0.21 CATEGORIES= net perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- MAINTAINER= perl@FreeBSD.org COMMENT= Interface to pcap(3) LBL packet capture library WWW= https://metacpan.org/release/Net-Pcap LICENSE= ART10 GPLv1+ LICENSE_COMB= dual BUILD_DEPENDS= ${RUN_DEPENDS} RUN_DEPENDS= p5-IO-Interface>=0:net/p5-IO-Interface TEST_DEPENDS= p5-Test-Exception>=0:devel/p5-Test-Exception USES= perl5 USE_PERL5= configure post-install: ${STRIP_CMD} ${STAGEDIR}${PREFIX}/${SITE_ARCH_REL}/auto/Net/Pcap/Pcap.so .include diff --git a/net/p5-Net-Pcap/distinfo b/net/p5-Net-Pcap/distinfo index ac5142ee35c5..50e83ca9eadc 100644 --- a/net/p5-Net-Pcap/distinfo +++ b/net/p5-Net-Pcap/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1463505863 -SHA256 (Net-Pcap-0.18.tar.gz) = cb9bd44948c23544bb9d4e28261dbd0dbb3e7564709487a7855576e0d9b68307 -SIZE (Net-Pcap-0.18.tar.gz) = 94207 +TIMESTAMP = 1691142538 +SHA256 (Net-Pcap-0.21.tar.gz) = 962ffdc1c5470bf9e43413297724308e938cb9c9c02a9041d7cbd485b1ddfb13 +SIZE (Net-Pcap-0.21.tar.gz) = 97984 diff --git a/net/p5-Net-Pcap/files/patch-Makefile.PL b/net/p5-Net-Pcap/files/patch-Makefile.PL index a1a3b2fc76e3..7c97e9497448 100644 --- a/net/p5-Net-Pcap/files/patch-Makefile.PL +++ b/net/p5-Net-Pcap/files/patch-Makefile.PL @@ -1,10 +1,10 @@ ---- Makefile.PL.orig 2007-12-02 10:23:04.000000000 +0800 -+++ Makefile.PL 2007-12-30 17:01:30.000000000 +0800 +--- Makefile.PL.orig 2007-12-02 10:23:04 UTC ++++ Makefile.PL @@ -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) { diff --git a/net/p5-Net-Pcap/files/patch-stubs.inc b/net/p5-Net-Pcap/files/patch-stubs.inc new file mode 100644 index 000000000000..d94cdb2a6161 --- /dev/null +++ b/net/p5-Net-Pcap/files/patch-stubs.inc @@ -0,0 +1,16 @@ +--- stubs.inc.orig 2023-08-04 08:14:08 UTC ++++ stubs.inc +@@ -355,13 +355,11 @@ + #pragma message( "Warning: the function pcap_open() is not available" ) + #endif + +-#if PERL_PCAP_VERSION < 1009000 + struct pcap_rmtauth { + int type; + char *username; + char *password; + }; +-#endif + + pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err); + pcap_t * pcap_open(const char *source, int snaplen, int flags, int read_timeout, struct pcap_rmtauth *auth, char *err) { diff --git a/net/p5-Net-Pcap/files/patch-t__Utils.pm b/net/p5-Net-Pcap/files/patch-t__Utils.pm index 43a1068a3cdf..e8e7fb265b37 100644 --- a/net/p5-Net-Pcap/files/patch-t__Utils.pm +++ b/net/p5-Net-Pcap/files/patch-t__Utils.pm @@ -1,11 +1,11 @@ ---- t/Utils.pm.orig 2012-04-05 17:39:45.000000000 -0800 -+++ t/Utils.pm 2012-04-05 17:41:15.000000000 -0800 +--- t/Utils.pm.orig 2012-04-05 17:39:45 UTC ++++ t/Utils.pm @@ -73,7 +73,7 @@ my @devs = Net::Pcap::findalldevs(\%devs, \$err); # filter out unusable devices -@devs = grep { $_ ne "lo" and $_ ne "lo0" and $_ !~ /GenericDialupAdapter/ } @devs; +@devs = grep { $_ ne "lo" and $_ ne "lo0" and $_ !~ /GenericDialupAdapter/ and $_ !~ /^usbus/ } @devs; # check if the user has specified a prefered device to use for tests if (open(PREF, "device.txt")) {