]> git.pld-linux.org Git - packages/perl-Net-Pcap.git/commitdiff
- updated to 0.18 auto/th/perl-Net-Pcap-0.18-1
authorMarcin Krol <hawk@tld-linux.org>
Tue, 28 Aug 2018 22:08:15 +0000 (22:08 +0000)
committerMarcin Krol <hawk@tld-linux.org>
Tue, 28 Aug 2018 22:08:15 +0000 (22:08 +0000)
libpcap-1.9.patch [new file with mode: 0644]
perl-Net-Pcap.spec

diff --git a/libpcap-1.9.patch b/libpcap-1.9.patch
new file mode 100644 (file)
index 0000000..bcd0077
--- /dev/null
@@ -0,0 +1,57 @@
+--- 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
+-
+ /*
index 12dec8d1aa43f500cf97771b941820d99a415ceb..c543ead3d6b3f915f621e5d43546bd8ee2560bfa 100644 (file)
@@ -8,15 +8,16 @@
 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.17
-Release:       8
+Version:       0.18
+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: fbe911ba5f57d5ba43494434ffb828a0
+# Source0-md5: 18d7298dca72b53271d68646c34b6a39
+Patch0:                libpcap-1.9.patch
 URL:           http://search.cpan.org/dist/Net-Pcap/
-BuildRequires: libpcap-devel
+BuildRequires: libpcap-devel >= 1.9.0
 BuildRequires: perl-devel >= 1:5.8.0
 BuildRequires: rpm-perlprov >= 4.1-13
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -31,6 +32,7 @@ pakietów LBL pcap(3).
 
 %prep
 %setup -q -n %{pdir}-%{pnam}-%{version}
+%patch -p1
 
 %build
 %{__perl} Makefile.PL \
This page took 0.114275 seconds and 4 git commands to generate.