commit e54607a3d791ff7a8ce73e07edc8b5d512baa1b7
Author: Marcin Krol <[email protected]>
Date:   Tue Aug 28 22:08:15 2018 +0000

    - updated to 0.18

 libpcap-1.9.patch  | 57 ++++++++++++++++++++++++++++++++++++++++++++++++++++++
 perl-Net-Pcap.spec | 10 ++++++----
 2 files changed, 63 insertions(+), 4 deletions(-)
---
diff --git a/perl-Net-Pcap.spec b/perl-Net-Pcap.spec
index 12dec8d..c543ead 100644
--- a/perl-Net-Pcap.spec
+++ b/perl-Net-Pcap.spec
@@ -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 \
diff --git a/libpcap-1.9.patch b/libpcap-1.9.patch
new file mode 100644
index 0000000..bcd0077
--- /dev/null
+++ b/libpcap-1.9.patch
@@ -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
+-
+ 
+ /*
+ 
================================================================

---- gitweb:

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

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to