summaryrefslogtreecommitdiff
path: root/dev-perl/Net-Pcap
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2019-09-06 10:28:05 +0100
committerV3n3RiX <venerix@redcorelinux.org>2019-09-06 10:28:05 +0100
commitf1af93971b7490792d8541bc790e0d8c6d787059 (patch)
treea38046712bbc3a3844d77452d16c84e716caa3d4 /dev-perl/Net-Pcap
parentfc637fb28da700da71ec2064d65ca5a7a31b9c6c (diff)
gentoo resync : 06.08.2019
Diffstat (limited to 'dev-perl/Net-Pcap')
-rw-r--r--dev-perl/Net-Pcap/Manifest2
-rw-r--r--dev-perl/Net-Pcap/Net-Pcap-0.180.0-r1.ebuild34
-rw-r--r--dev-perl/Net-Pcap/files/Net-Pcap-0.18-libpcap-1.9.0.patch41
3 files changed, 77 insertions, 0 deletions
diff --git a/dev-perl/Net-Pcap/Manifest b/dev-perl/Net-Pcap/Manifest
index d5177affabf4..eb0770a6ee60 100644
--- a/dev-perl/Net-Pcap/Manifest
+++ b/dev-perl/Net-Pcap/Manifest
@@ -1,6 +1,8 @@
+AUX Net-Pcap-0.18-libpcap-1.9.0.patch 1300 BLAKE2B 65cd73c1f6f3b097dd8fa2b86c409e3ffb914c69945cb7535bb09a62c34c11423d7557e00515fc472a197182842399fb798dffd7b3e8eab0690fb3913f138fea SHA512 aef7911bff9284a45c2d6943f3970892750548e1bcb3f5521123dadb5addd408cd976b7274fa0ade27107cd2d993a7709c918afc32ca3541108722d95e6ec2af
AUX Net-Pcap-0.18-test-error.patch 1302 BLAKE2B 5b61333702676ace4b987fea8b3df9fc0177ba41785b5471a170d3826c29175d39ef8b827ea40842598c4847e4aada61e2a86849bceafb2343e219694155358a SHA512 82fa8950ceb84966905646a1a210bfef23c8c3be8ef66b2db3702b3ccc66329c7148e3d74931f5e9bd1a73a312a16e7c10ce0232f344e4fb97e938b196c3daf9
DIST Net-Pcap-0.17.tar.gz 92853 BLAKE2B 147f0a11be36e7b5022f138611ad4226ea36d61902e966ab3400463aed4aecfd0022852df2589f363a6590270750b427cac9532f22a42e18d0f959a23e990ff1 SHA512 14747661b220b119b4182f13dbc1509cae5665e77588dbc8576f7d959f33ef6ee3785f2d9022093c1f1b808c37d04ee313f5ac39cc6eaa917962c9215c5a4de6
DIST Net-Pcap-0.18.tar.gz 94207 BLAKE2B 257e2b7c5bf6ad05936b64171db3ee530249f40d695ca2aba21d4bfe4796989e3a4aa955472b9c39e33aab5d67d2eebb26b43e173dbd359d01201926fa3a6b6e SHA512 63cc216345eb65b1e76efa657623c9d444d20f4b54ab0c75e787483baaa4f1de7e3a9294967aa7eccbdca04c60b089194dd7e0d19838f899b332c5881a8c7f6d
EBUILD Net-Pcap-0.170.0-r1.ebuild 365 BLAKE2B 1625009c2c60fb1604a9a77b33db157168a09d1ca1eb77349914bd2b61704bffc4eda67a0c800863611149069d4535ac64881b70c3761bba8d58e64a5545f063 SHA512 47b31e2429240d1f6234d4d618a4ea263fd097a4511d755507657db8d3605b2e33bef1bdac00c6fafa8702749f99a402a65007a2b33e46512d4913c2ddb3593a
+EBUILD Net-Pcap-0.180.0-r1.ebuild 819 BLAKE2B f08f5e83912ac676fb0f5211b637e0b1050cf189acd3a5aa68c1f1fd41467f73aa438df1237db4026eb19df2f2b471cb722ecf91f1b8afb0c207877372ad7fae SHA512 31c4fd8f83a07e39096cab8c4f1238145fc6b8c476273a034b0836cf6ba7476a6c5a4b0b490b0b6cfde1660a0ed31325f22531bef2211925e4de6536427953d9
EBUILD Net-Pcap-0.180.0.ebuild 769 BLAKE2B 95e06e37d326032faf0c292a550408eaa479fb588f4720b18aea8e55d9bfa77abb3ac374d26579f80b17c93bb864b99c0509eade8665b6983104586a2d877b6a SHA512 90178bdc959f961060b676f6423952301c11cdb9a4c8fd953fab0eafe683eb4e789914d1c149de2dcfbe4bd75f0ebb5a031d7821e8711de38d35bc100544860f
MISC metadata.xml 388 BLAKE2B 559872c430ea234e8e0a8c495f74fe56526039a9e28dce6a252a05167901c27d6fafe8b90e9107d6d29892256e3a89012c918614032f302ea38fb4e098f54354 SHA512 6ae51c30128320478983e55d7e6e4a69c8c6c17ef926b97e466bc1ba1c7808c3728cf46743789467151ac76074fb852f8648a5c6e6cd02396bcc8c7c10f8f89c
diff --git a/dev-perl/Net-Pcap/Net-Pcap-0.180.0-r1.ebuild b/dev-perl/Net-Pcap/Net-Pcap-0.180.0-r1.ebuild
new file mode 100644
index 000000000000..e3b237b2e2b4
--- /dev/null
+++ b/dev-perl/Net-Pcap/Net-Pcap-0.180.0-r1.ebuild
@@ -0,0 +1,34 @@
+# Copyright 1999-2019 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+DIST_AUTHOR=SAPER
+DIST_VERSION=0.18
+DIST_EXAMPLES=( "eg/*" )
+inherit perl-module
+
+DESCRIPTION="Interface to the pcap(3) LBL packet capture library"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~ppc ~x86"
+IUSE=""
+
+RDEPEND="net-libs/libpcap
+ dev-perl/IO-Interface"
+DEPEND="${RDEPEND}"
+
+PATCHES=(
+ "${FILESDIR}/${PN}-${DIST_VERSION}-libpcap-1.9.0.patch"
+ "${FILESDIR}/${PN}-${DIST_VERSION}-test-error.patch"
+)
+
+src_test() {
+ if [[ $EUID != 0 ]]; then
+ elog "Comprehensive testing of this module requires root permissions."
+ elog "For details, see:"
+ elog "https://wiki.gentoo.org/wiki/Project:Perl/maint-notes/${CATEGORY}/${PN}"
+ fi
+ perl_rm_files t/pod{,cover,spell}.t t/distchk.t t/portfs.t
+ perl-module_src_test
+}
diff --git a/dev-perl/Net-Pcap/files/Net-Pcap-0.18-libpcap-1.9.0.patch b/dev-perl/Net-Pcap/files/Net-Pcap-0.18-libpcap-1.9.0.patch
new file mode 100644
index 000000000000..2495600e5d0a
--- /dev/null
+++ b/dev-perl/Net-Pcap/files/Net-Pcap-0.18-libpcap-1.9.0.patch
@@ -0,0 +1,41 @@
+--- a/Makefile.PL
++++ b/Makefile.PL
+@@ -106,7 +106,7 @@ REASON
+ # We also store the list of available functions in a file for skipping the
+ # corresponding tests.
+ my @funcs = have_functions(find_functions());
+-$options{DEFINE} .= cpp_defines(@funcs);
++$options{DEFINE} .= cpp_defines(@funcs). "-DHAVE_PCAP_SETSAMPLING";
+ open(FUNCS, '>funcs.txt') or warn "warning: can't write 'funcs.txt': $!\n";
+ print FUNCS join("\n", @funcs), "\n";
+ close(FUNCS);
+--- a/stubs.inc
++++ b/stubs.inc
+@@ -354,11 +354,6 @@ int pcap_parsesrcstr(const char *source,
+ #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) {
+@@ -511,6 +511,7 @@ HANDLE pcap_getevent(pcap_t *p) {
+ #ifdef _MSC_VER
+ #pragma message( "Warning: the function pcap_setsampling() is not available" )
+ #endif
++#if 0
+ struct pcap_samp {
+ int method;
+ int value;
+@@ -522,6 +523,7 @@ struct pcap_samp *pcap_setsampling(pcap_
+ return NULL;
+ }
+ #endif
++#endif
+
+
+ /*