[packages/perl-Net-Pcap] up to 0.21

atler atler at pld-linux.org
Sat Aug 2 01:25:55 CEST 2025


commit 7af56058ce05ca48e93f85292c3dddf09d7ac738
Author: Jan Palus <atler at pld-linux.org>
Date:   Sat Aug 2 01:25:30 2025 +0200

    up to 0.21

 libpcap-1.9.patch                 | 57 ---------------------------------------
 perl-Net-Pcap-signals-const.patch | 22 ---------------
 perl-Net-Pcap.spec                | 12 +++------
 3 files changed, 4 insertions(+), 87 deletions(-)
---
diff --git a/perl-Net-Pcap.spec b/perl-Net-Pcap.spec
index 368d3fc..af676a5 100644
--- a/perl-Net-Pcap.spec
+++ b/perl-Net-Pcap.spec
@@ -7,16 +7,14 @@
 Summary:	Net::Pcap - Perl binding to the LBL pcap(3) packet capture library
 Summary(pl.UTF-8):	Net::Pcap - dowiązanie Perla do biblioteki przechwytywania pakietów LBL pcap(3)
 Name:		perl-Net-Pcap
-Version:	0.18
-Release:	7
+Version:	0.21
+Release:	1
 # same as perl
 License:	GPL v1+ or Artistic
 Group:		Development/Languages/Perl
 Source0:	http://www.cpan.org/modules/by-module/Net/%{pdir}-%{pnam}-%{version}.tar.gz
-# Source0-md5:	18d7298dca72b53271d68646c34b6a39
-Patch0:		libpcap-1.9.patch
-Patch1:		%{name}-signals-const.patch
-Patch2:		%{name}-perl_settings.patch
+# Source0-md5:	b0eb2495d1f7e720146bb3feac1e605e
+Patch0:		%{name}-perl_settings.patch
 URL:		http://search.cpan.org/dist/Net-Pcap/
 BuildRequires:	libpcap-devel >= 1.9.0
 BuildRequires:	perl-devel >= 1:5.8.0
@@ -34,8 +32,6 @@ pakietów LBL pcap(3).
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
 %patch -P0 -p1
-%patch -P1 -p1
-%patch -P2 -p1
 
 %build
 %{__perl} Makefile.PL \
diff --git a/libpcap-1.9.patch b/libpcap-1.9.patch
deleted file mode 100644
index bcd0077..0000000
--- a/libpcap-1.9.patch
+++ /dev/null
@@ -1,57 +0,0 @@
---- Net-Pcap-0.18/stubs.inc	2006-10-15 22:00:58.000000000 +0000
-+++ Net-Pcap-0.18/stubs.inc	2018-08-28 22:05:22.861450203 +0000
-@@ -347,27 +347,6 @@
- #endif
- 
- 
--#ifndef HAVE_PCAP_OPEN
--#ifdef __GNUC__
--#warning "the function pcap_open() is not available"
--#endif
--#ifdef _MSC_VER
--#pragma message( "Warning: the function pcap_open() is not available" )
--#endif
--struct pcap_rmtauth {
--    int type;
--    char *username;
--    char *password;
--};
--
--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) {
--    FUNCTION_NOT_IMPLEMENTED_ERROR(pcap_open)
--    return NULL;
--}
--#endif
--
--
- #ifndef HAVE_PCAP_SETBUFF
- #ifdef __GNUC__
- #warning "the function pcap_setbuff() is not available"
-@@ -508,26 +487,6 @@
- }
- #endif
- 
--
--#ifndef HAVE_PCAP_SETSAMPLING
--#ifdef __GNUC__
--#warning "the function pcap_setsampling() is not available"
--#endif
--#ifdef _MSC_VER
--#pragma message( "Warning: the function pcap_setsampling() is not available" )
--#endif
--struct pcap_samp {
--    int method;
--    int value;
--};
--
--struct pcap_samp *pcap_setsampling(pcap_t *p);
--struct pcap_samp *pcap_setsampling(pcap_t *p) {
--    FUNCTION_NOT_IMPLEMENTED_ERROR(pcap_setsampling)
--    return NULL;
--}
--#endif
--
- 
- /*
- 
diff --git a/perl-Net-Pcap-signals-const.patch b/perl-Net-Pcap-signals-const.patch
deleted file mode 100644
index 5076bd9..0000000
--- a/perl-Net-Pcap-signals-const.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff -ruNp Net-Pcap-0.18.orig/Makefile.PL Net-Pcap-0.18/Makefile.PL
---- Net-Pcap-0.18.orig/Makefile.PL	2016-05-09 23:23:13.000000000 +0200
-+++ Net-Pcap-0.18/Makefile.PL	2018-10-09 13:02:45.891238660 +0200
-@@ -179,6 +179,7 @@ if (eval { require ExtUtils::Constant; 1
-         OPENFLAG_DATATX_UDP OPENFLAG_NOCAPTURE_RPCAP RMTAUTH_NULL RMTAUTH_PWD
-         PCAP_SAMP_NOSAMP PCAP_SAMP_FIRST_AFTER_N_MS PCAP_SAMP_1_EVERY_N 
-         PCAP_SRC_FILE PCAP_SRC_IFLOCAL PCAP_SRC_IFREMOTE
-+        PERL_SIGNALS_UNSAFE PERL_SIGNALS_SAFE
-     ));
- 
-     ExtUtils::Constant::WriteConstants(
-diff -ruNp Net-Pcap-0.18.orig/Pcap.pm Net-Pcap-0.18/Pcap.pm
---- Net-Pcap-0.18.orig/Pcap.pm	2016-05-15 15:24:03.000000000 +0200
-+++ Net-Pcap-0.18/Pcap.pm	2018-10-09 13:22:59.120395287 +0200
-@@ -83,6 +83,7 @@ my @func_long_names = map { "pcap_$_" }
-         )],
-         openflag => [qw(
-             OPENFLAG_PROMISCUOUS  OPENFLAG_DATATX_UDP  OPENFLAG_NOCAPTURE_RPCAP
-+            PERL_SIGNALS_UNSAFE   PERL_SIGNALS_SAFE
-         )],
-         pcap => [qw(
-             PCAP_ERRBUF_SIZE    PCAP_IF_LOOPBACK
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/perl-Net-Pcap.git/commitdiff/7af56058ce05ca48e93f85292c3dddf09d7ac738



More information about the pld-cvs-commit mailing list