ports/net/p5-Net-Pcap/files/patch-t__Utils.pm
Rodrigo Osorio dc3b2a0727 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
2023-08-04 15:01:20 +02:00

11 lines
455 B
Raku

--- 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")) {