summaryrefslogtreecommitdiff
path: root/dev-perl
diff options
context:
space:
mode:
Diffstat (limited to 'dev-perl')
-rw-r--r--dev-perl/Manifest.gzbin284916 -> 284913 bytes
-rw-r--r--dev-perl/Net-RawIP/Manifest4
-rw-r--r--dev-perl/Net-RawIP/Net-RawIP-0.250.0-r4.ebuild27
-rw-r--r--dev-perl/Net-RawIP/files/Net-RawIP-0.25-Declare-used-function.patch57
-rw-r--r--dev-perl/Net-RawIP/files/Net-RawIP-0.25-Silent-compiler-warnings.patch94
-rw-r--r--dev-perl/Net-RawIP/files/Net-RawIP-0.25-Use-_DEFAULT_SOURCE-instead-of-_BSD_SOURCE.patch31
6 files changed, 213 insertions, 0 deletions
diff --git a/dev-perl/Manifest.gz b/dev-perl/Manifest.gz
index 8bb7af7ff788..61aa5b671d3d 100644
--- a/dev-perl/Manifest.gz
+++ b/dev-perl/Manifest.gz
Binary files differ
diff --git a/dev-perl/Net-RawIP/Manifest b/dev-perl/Net-RawIP/Manifest
index 71caeee70d72..07791efe9404 100644
--- a/dev-perl/Net-RawIP/Manifest
+++ b/dev-perl/Net-RawIP/Manifest
@@ -1,4 +1,8 @@
+AUX Net-RawIP-0.25-Declare-used-function.patch 1501 BLAKE2B 36cf59a30758fa49630ddacd8b6104aa2ce858d41823428f36fc59e3c8b9c2cbb4a128ca2caccfd10c480cf04e1c20f0db7ac1d2b464c35fe60553122a739662 SHA512 e03f4d3426d6da639b61deab6cb165231b26d10a915fa4ba068b6cc9e8bb7fa421c5702bd7b9fcd70a307e77fc0ca2b990482916c3cf03b3cb030561443e63f0
+AUX Net-RawIP-0.25-Silent-compiler-warnings.patch 2582 BLAKE2B 68ee22f34d66f4bdc6eace90411f834ad9d5a872ee4f7474f867d59b95da8492968203664b02e217f8df905ba73f642bbb61682e61faa5ebc2664bfe4145767f SHA512 9b74c53627027a3afdd9d12715a49191c3739d4796208fc66e4f21d72603b59b9698eec8b274bb8cc99e50cf8c608928bad54d8e8ec81ad6a2f540ad1fece1a3
+AUX Net-RawIP-0.25-Use-_DEFAULT_SOURCE-instead-of-_BSD_SOURCE.patch 824 BLAKE2B d017293755796f2036838bfe963d891a028dd057ea2e2020e140371c81b9aae4272b6d18a930313fcc1c37367c04b211f8e645841ef0a07625cca9a5498c70f9 SHA512 fb7ce5b04aa96bc0bf51d1fc4eb96a53188dd5f02779ba9c6c97d6244c9eb38947e1477ee01e9c0de81f94714632901ca63ce67de6204f85184168ec3e9f926d
AUX Net-RawIP-0.25-no-network-tests.patch 727 BLAKE2B 419aaa8355b63e5128698a5fc625c67c364371dd61c1f4d02e2259895591349a0e142c59828bbea3d92ec6bf46d1e1117b5574fc33b025c64ca63e4f880e8952 SHA512 df4d6b376637da7bef5786ae1dd443ef91cd1d8a75f6dac074674408629c8cde02bb8a5adb3494adbfe0d5554292693f4b4cb2dd1104ce5ab09c66f37ecebcf6
DIST Net-RawIP-0.25.tar.gz 43474 BLAKE2B aa6b4f5e7a697bf0d64760ca5fa7cf199c09e178e509dd21bebe1a13d833351ca57396b840f2fe21aacf5f2216edd06688e9278e9744cb41312a7495648076e8 SHA512 c48c77389db9dc8d5c64d67e5c62bac5e3314dbc36bcfa51aa20d07224492edaa65f5c71d47ca0b804ac62b1b02387e172cd3561eadaa3a1a8040968b182b3ca
EBUILD Net-RawIP-0.250.0-r3.ebuild 506 BLAKE2B 55dea5d1c2581d6253fb2782631e6d1b015e5a6e1d97dc220e20aab0ca1777a86374d07bd38f6a3c38d95eb9a23a2e687c8f494a1b698ddcdcead355a1a3c6a8 SHA512 452c605c1d7157d5356c7391bb32e0f28574e4cf9f7275d75eb5483b1f3eebf9f0a53b3351dd37af5a4d5714099eb9742b5bd8a7ec01426d6e897f2be475abe8
+EBUILD Net-RawIP-0.250.0-r4.ebuild 699 BLAKE2B 4b5802de4f17a8fbcdb3fa460ea680bccee8c9a1dc6d9c45876c36575272f63e702b2ebcad6b0e46568bd05f58ea4ffa8d213de60db98c9fbcf089299860fc35 SHA512 415f89400316f4853451d013d8f3e98b2997594bf531e4ee59b3f54984664d08fddb066616c1b759aa8bf60985708ea963ca26d4412c4545612db6a9e1edf29b
MISC metadata.xml 847 BLAKE2B c0b776134821b57c05f3ea1d8bbe49b1ff409a003052517054b4bfaea973557cc93c6646e6a1bdbdef21c815cb4bf30e36ed07ec282e7c02185292b81eb2b69e SHA512 d52e58b95c17402928fb2273e3a988afe866f29f78bbac7fbe4b0840fc79cccabf8a5455c3cce67857aa73d8077de33a370e6abfdac6d6e27559a93655ee3002
diff --git a/dev-perl/Net-RawIP/Net-RawIP-0.250.0-r4.ebuild b/dev-perl/Net-RawIP/Net-RawIP-0.250.0-r4.ebuild
new file mode 100644
index 000000000000..3c9b746fde28
--- /dev/null
+++ b/dev-perl/Net-RawIP/Net-RawIP-0.250.0-r4.ebuild
@@ -0,0 +1,27 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DIST_AUTHOR=SAPER
+DIST_VERSION=0.25
+DIST_EXAMPLES=("examples/*")
+inherit perl-module
+
+DESCRIPTION="Raw IP packets manipulation Module"
+
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~hppa ~ia64 ~ppc ~sparc ~x86"
+
+RDEPEND="net-libs/libpcap"
+DEPEND="${RDEPEND}"
+BDEPEND="${RDEPEND}"
+
+PERL_RM_FILES=( "t/90-pod.t" "t/91-pod-coverage.t" "t/99-critic.t" )
+
+PATCHES=(
+ "${FILESDIR}/${PN}-0.25-no-network-tests.patch"
+ "${FILESDIR}/${PN}-0.25-Declare-used-function.patch"
+ "${FILESDIR}/${PN}-0.25-Silent-compiler-warnings.patch"
+ "${FILESDIR}/${PN}-0.25-Use-_DEFAULT_SOURCE-instead-of-_BSD_SOURCE.patch"
+)
diff --git a/dev-perl/Net-RawIP/files/Net-RawIP-0.25-Declare-used-function.patch b/dev-perl/Net-RawIP/files/Net-RawIP-0.25-Declare-used-function.patch
new file mode 100644
index 000000000000..29ba94b9a884
--- /dev/null
+++ b/dev-perl/Net-RawIP/files/Net-RawIP-0.25-Declare-used-function.patch
@@ -0,0 +1,57 @@
+https://bugs.gentoo.org/871597
+https://rt.cpan.org/Public/Bug/Display.html?id=124134
+
+From ebb883cb2e2f0031fd947bf36c0f089e5a5352ea Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
+Date: Fri, 19 Jan 2018 15:47:40 +0100
+Subject: [PATCH] Decalare used function
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+GCC warns about implicit declarations of functions used in RawIP.xs
+but defined in eth.c. This patch adds their declarations into eth.h.
+
+Signed-off-by: Petr Písař <ppisar@redhat.com>
+---
+ MANIFEST | 1 +
+ RawIP.xs | 1 +
+ eth.h | 3 +++
+ 3 files changed, 5 insertions(+)
+ create mode 100644 eth.h
+
+diff --git a/MANIFEST b/MANIFEST
+index 9bfa0ee..1211b02 100644
+--- a/MANIFEST
++++ b/MANIFEST
+@@ -18,6 +18,7 @@ lib/Net/RawIP/udphdr.pm
+ RawIP.xs
+ RawIP/libpcap.pod
+ eth.c
++eth.h
+ ifaddrlist.c
+ ifaddrlist.h
+ ip.h
+diff --git a/RawIP.xs b/RawIP.xs
+index cddc523..234ea5d 100644
+--- a/RawIP.xs
++++ b/RawIP.xs
+@@ -31,6 +31,7 @@ extern "C" {
+ #include <sys/cdefs.h>
+ #endif
+ #include "ifaddrlist.h"
++#include "eth.h"
+ #include <sys/types.h>
+ #include <sys/socket.h>
+ #include <pcap.h>
+diff --git a/eth.h b/eth.h
+new file mode 100644
+index 0000000..ab28b45
+--- /dev/null
++++ b/eth.h
+@@ -0,0 +1,3 @@
++int tap(char *dev,unsigned int *my_eth_ip,unsigned char *my_eth_mac);
++int mac_disc(unsigned int addr,unsigned char * eth_mac);
++void send_eth_packet(int fd, char* eth_device, u_char *pkt, int len, int flag);
+--
+2.13.6
diff --git a/dev-perl/Net-RawIP/files/Net-RawIP-0.25-Silent-compiler-warnings.patch b/dev-perl/Net-RawIP/files/Net-RawIP-0.25-Silent-compiler-warnings.patch
new file mode 100644
index 000000000000..564914b821c7
--- /dev/null
+++ b/dev-perl/Net-RawIP/files/Net-RawIP-0.25-Silent-compiler-warnings.patch
@@ -0,0 +1,94 @@
+https://bugs.gentoo.org/871597
+https://rt.cpan.org/Public/Bug/Display.html?id=124134
+
+From ee4e010724ea0106f0ebdf572c6b55573122f12b Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
+Date: Fri, 19 Jan 2018 15:56:05 +0100
+Subject: [PATCH] Silent compiler warnings
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+Signed-off-by: Petr Písař <ppisar@redhat.com>
+---
+ RawIP.xs | 12 +++---------
+ eth.c | 5 ++++-
+ ifaddrlist.c | 3 +--
+ 3 files changed, 8 insertions(+), 12 deletions(-)
+
+diff --git a/RawIP.xs b/RawIP.xs
+index 234ea5d..143c65f 100644
+--- a/RawIP.xs
++++ b/RawIP.xs
+@@ -166,14 +166,6 @@ u_long host_to_ip (char *host_name);
+ void pkt_send(int fd, unsigned char *sock, u_char *pkt, int size);
+ int linkoffset(int);
+
+-static int
+-not_here(s)
+- char *s;
+-{
+- croak("%s not implemented on this architecture", s);
+- return -1;
+-}
+-
+ static double
+ constant(name, arg)
+ char *name;
+@@ -592,6 +584,8 @@ CODE:
+ memset(dev,0,16);
+ len = ip_rt_dev(addr,dev);
+ RETVAL = newSVpv(dev,len);
++#else
++ PERL_UNUSED_ARG(addr);
+ #endif
+ #if !defined(_LINUX_) && !defined(_BPF_)
+ croak("rdev() is not implemented on this system");
+@@ -689,7 +683,7 @@ send_eth_packet(fd,eth_device,pkt,flag)
+ SV* pkt
+ int flag
+ CODE:
+- send_eth_packet(fd, eth_device, (char*)SvPV(pkt,PL_na), SvCUR(pkt),flag);
++ send_eth_packet(fd, eth_device, (unsigned char*)SvPV(pkt,PL_na), SvCUR(pkt),flag);
+
+ AV *
+ eth_parse(pkt)
+diff --git a/eth.c b/eth.c
+index 48aeed2..a36a9ab 100644
+--- a/eth.c
++++ b/eth.c
+@@ -235,7 +235,10 @@ int
+ tap(char *dev,unsigned int *my_eth_ip,unsigned char *my_eth_mac)
+ {
+
+- int fd,v,s;
++ int fd;
++#ifdef _BPF_
++ int v,s;
++#endif
+ struct ifreq ifr;
+ (void)strcpy(ifr.ifr_name, dev);
+ #ifndef _BPF_
+diff --git a/ifaddrlist.c b/ifaddrlist.c
+index 0729b2b..b60ef3c 100644
+--- a/ifaddrlist.c
++++ b/ifaddrlist.c
+@@ -41,7 +41,7 @@ ifaddrlist(register struct ifaddrlist **ipaddrp, register char *errbuf)
+ #ifdef HAVE_SOCKADDR_SA_LEN
+ register int n;
+ #endif
+- register struct ifreq *ifrp, *ifend, *ifnext, *mp;
++ register struct ifreq *ifrp, *ifend, *ifnext;
+ register struct sockaddr_in *sin;
+ register struct ifaddrlist *al;
+ struct ifconf ifc;
+@@ -71,7 +71,6 @@ ifaddrlist(register struct ifaddrlist **ipaddrp, register char *errbuf)
+ ifend = (struct ifreq *)((char *)ibuf + ifc.ifc_len);
+
+ al = ifaddrlist;
+- mp = NULL;
+ nipaddr = 0;
+ for (; ifrp < ifend; ifrp = ifnext)
+ {
+--
+2.13.6
diff --git a/dev-perl/Net-RawIP/files/Net-RawIP-0.25-Use-_DEFAULT_SOURCE-instead-of-_BSD_SOURCE.patch b/dev-perl/Net-RawIP/files/Net-RawIP-0.25-Use-_DEFAULT_SOURCE-instead-of-_BSD_SOURCE.patch
new file mode 100644
index 000000000000..362a126f552e
--- /dev/null
+++ b/dev-perl/Net-RawIP/files/Net-RawIP-0.25-Use-_DEFAULT_SOURCE-instead-of-_BSD_SOURCE.patch
@@ -0,0 +1,31 @@
+https://bugs.gentoo.org/871597
+https://rt.cpan.org/Public/Bug/Display.html?id=124134
+
+From 32cfda724ce867d1b4a3e581b4b305b300ddfed2 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
+Date: Fri, 19 Jan 2018 15:39:16 +0100
+Subject: [PATCH] Use _DEFAULT_SOURCE instead of _BSD_SOURCE
+MIME-Version: 1.0
+Content-Type: text/plain; charset=UTF-8
+Content-Transfer-Encoding: 8bit
+
+_BSD_SOURCE is deprecated in glibc since 2.20 version.
+
+Signed-off-by: Petr Písař <ppisar@redhat.com>
+---
+ ifaddrlist.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/ifaddrlist.c b/ifaddrlist.c
+index 41183d3..0729b2b 100644
+--- a/ifaddrlist.c
++++ b/ifaddrlist.c
+@@ -1,5 +1,5 @@
+ #ifdef _LINUX_
+-#define _BSD_SOURCE 1
++#define _DEFAULT_SOURCE 1
+ #define __FAVOR_BSD 1
+ #endif
+
+--
+2.13.6