[packages/perl-Net-RawIP] add missing prototypes
atler
atler at pld-linux.org
Sat Aug 2 01:36:46 CEST 2025
commit 1ad266a68bab57dbd7f9857fa5460159a37dd34e
Author: Jan Palus <atler at pld-linux.org>
Date: Sat Aug 2 01:36:22 2025 +0200
add missing prototypes
perl-Net-RawIP.spec | 2 ++
prototypes.patch | 13 +++++++++++++
2 files changed, 15 insertions(+)
---
diff --git a/perl-Net-RawIP.spec b/perl-Net-RawIP.spec
index 8f9d559..ffbc91d 100644
--- a/perl-Net-RawIP.spec
+++ b/perl-Net-RawIP.spec
@@ -14,6 +14,7 @@ License: GPL v1+ or Artistic
Group: Development/Languages/Perl
Source0: http://www.cpan.org/modules/by-module/%{pdir}/%{pdir}-%{pnam}-%{version}.tar.gz
# Source0-md5: a99f461e20e7894154f64729a4652448
+Patch0: prototypes.patch
URL: http://search.cpan.org/dist/Net-RawIP/
BuildRequires: libpcap-devel
BuildRequires: perl-devel >= 1:5.8.0
@@ -29,6 +30,7 @@ Net::RawIP - wsparcie do manipulacji surowymi pakietami IP.
%prep
%setup -q -n %{pdir}-%{pnam}-%{version}
+%patch -P0 -p1
%build
%{__perl} Makefile.PL \
diff --git a/prototypes.patch b/prototypes.patch
new file mode 100644
index 0000000..69de16e
--- /dev/null
+++ b/prototypes.patch
@@ -0,0 +1,13 @@
+--- Net-RawIP-0.25/RawIP.xs.orig 2008-10-21 00:26:19.000000000 +0200
++++ Net-RawIP-0.25/RawIP.xs 2025-08-02 01:33:40.915403504 +0200
+@@ -4,6 +4,10 @@
+ #include "EXTERN.h"
+ #include "perl.h"
+ #include "XSUB.h"
++
++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);
+ #ifdef __cplusplus
+ }
+ #endif
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/perl-Net-RawIP.git/commitdiff/1ad266a68bab57dbd7f9857fa5460159a37dd34e
More information about the pld-cvs-commit
mailing list