git: dc3b2a07277a - main - net/p5-Net-Pcap: Update to 0.21
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 04 Aug 2023 13:14:48 UTC
The branch main has been updated by rodrigo: URL: https://cgit.FreeBSD.org/ports/commit/?id=dc3b2a07277a8060a863ddd6665ab4397af6aec4 commit dc3b2a07277a8060a863ddd6665ab4397af6aec4 Author: Rodrigo Osorio <rodrigo@FreeBSD.org> AuthorDate: 2023-08-04 10:52:21 +0000 Commit: Rodrigo Osorio <rodrigo@FreeBSD.org> CommitDate: 2023-08-04 13:01:20 +0000 net/p5-Net-Pcap: Update to 0.21 Major changes in 0.19 * Restore compilation with libpcap 1.9+ * Too strict test for error message from libpcap Major changes in 0.20 * Spelling fixes Major changes in 0.21 * Configure: Avoid implicit ints during feature probing * use "our" for global variable declaration * Don't inherit from Exporter anymore This might break modules that rely on Net::Pcap isa Exporter, but that was never documented. Create a patch on stubs.inc to enable fake struct pcap_rmtauth declaration with libpcap > 1.9.0 required by the port. For the record, we don't have remote capture support for libpcap on FreeBSD. Also fix existing patches format to make linter happy Full changelog: https://metacpan.org/dist/Net-Pcap/changes --- net/p5-Net-Pcap/Makefile | 2 +- net/p5-Net-Pcap/distinfo | 6 +++--- net/p5-Net-Pcap/files/patch-Makefile.PL | 4 ++-- net/p5-Net-Pcap/files/patch-stubs.inc | 16 ++++++++++++++++ net/p5-Net-Pcap/files/patch-t__Utils.pm | 4 ++-- 5 files changed, 24 insertions(+), 8 deletions(-) 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,5 +1,5 @@ PORTNAME= Net-Pcap -PORTVERSION= 0.18 +PORTVERSION= 0.21 CATEGORIES= net perl5 MASTER_SITES= CPAN PKGNAMEPREFIX= p5- 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,5 +1,5 @@ ---- 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; 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,5 +1,5 @@ ---- 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);