summaryrefslogtreecommitdiff
path: root/net-misc/netstat-nat
diff options
context:
space:
mode:
authorV3n3RiX <venerix@koprulu.sector>2023-05-11 05:45:51 +0100
committerV3n3RiX <venerix@koprulu.sector>2023-05-11 05:45:51 +0100
commit980af9d76d4b7d7541b41eeff427e5cbd5cf7ec3 (patch)
tree0b86d672e967b7f78ba20788fd85818efd54dc01 /net-misc/netstat-nat
parentf356af92b88d56b78588e81310493d4f5a2f6d18 (diff)
gentoo auto-resync : 11:05:2023 - 05:45:51
Diffstat (limited to 'net-misc/netstat-nat')
-rw-r--r--net-misc/netstat-nat/Manifest4
-rw-r--r--net-misc/netstat-nat/files/netstat-nat-1.4.10-docdir.patch9
-rw-r--r--net-misc/netstat-nat/files/netstat-nat-1.4.10-modern-c.patch13
-rw-r--r--net-misc/netstat-nat/netstat-nat-1.4.10-r1.ebuild (renamed from net-misc/netstat-nat/netstat-nat-1.4.10.ebuild)6
4 files changed, 29 insertions, 3 deletions
diff --git a/net-misc/netstat-nat/Manifest b/net-misc/netstat-nat/Manifest
index cb79a3568da5..acdfb3aaa702 100644
--- a/net-misc/netstat-nat/Manifest
+++ b/net-misc/netstat-nat/Manifest
@@ -1,4 +1,6 @@
+AUX netstat-nat-1.4.10-docdir.patch 287 BLAKE2B dd1531fa97780bceebb1563a4ed74e186ecf0da1a8cbf078d9c214641ad0c5241c1e1e7d6bd03a44807b637298769c2c68f3f0a5b6b4239b8008ca01d07156b2 SHA512 c4b65b2a8e8a811fb9987d36ce1fcb13044971d51f5cdcdfc4eb29a968049a81f9e69f21dbbad787687de820981f4618dfa8c16e98cad3bf70fc00442c74361a
AUX netstat-nat-1.4.10-install.patch 362 BLAKE2B 2604af1f35b07b59f697198cb046317344a8f93fece72c98383193cd1e997655e6303256aa0d76fb49ac688c461b61c1241f6c4de97f77542de5545f68b93904 SHA512 003405d6967a9f29e1776b0209dee976e8a26010a2243f095d9c9e20665adc1ca799d9987462fd6d03f5885b9ec9fd447d32e4bd569fac868c8c849ae2e599ff
+AUX netstat-nat-1.4.10-modern-c.patch 541 BLAKE2B d2447cf2c38fd8fbf2661dae99804ef9ac3fa3ab08b14ac04d282458fefc3a655e3024ac3c53fa561f26ae09415636e7f5197cb8cf5ee4aa0b807ad3a2c68e46 SHA512 de52db274009b9d2c8ee0effe59f7003dadbe47220f976a1c3076bec61a2e0ea91177919c19897f5b930427b80598ea9e2dae2c77217b7555836b61f67f410fe
DIST netstat-nat-1.4.10.tar.gz 83865 BLAKE2B 4da59e3661fe4110b50f043a00d6ce36eb84360eabc2d73f801b24dbcfaffbc20fa9463157136e6ec5488102ad5f9aa5141bb797e5912ec7cb45b1188a4efe98 SHA512 2089119b26039e656fbe76701e556f7d766159c96b18968195f255e15072af37972c83a8f05edb0b767a12f0521598975673d10d8ba5e6ed6b754a927d4f069d
-EBUILD netstat-nat-1.4.10.ebuild 459 BLAKE2B ecb7571bd6347551c586704cf6567978ed464a9188242265202926bb663a6cf0adb0ada5fb68de67a4effba1483e2a217f40286aea212aade4a4b20c9466bf5c SHA512 6cb93b525f1b3acd18f1b285e04d1e9ffc33bca301bee96f502ca2f256e3d6a0a9e81e9ce41848e202a91f945e2223257085d819d045feae9be5f10ede034ee3
+EBUILD netstat-nat-1.4.10-r1.ebuild 527 BLAKE2B 72c0063376ee71871329c46dcc0361b12bc21c28683275c885cc8eb5b658df8e178dce39b57b12270fa7e951d13a4397817d30e0d6fa263b25ed40a34affae1e SHA512 9c0ab1c84495d3076d1d3be22d5cb6867765bf09b5353074549249c55c41dbce86ab7eec9454577bfda063d9d806a71c1078a25858581303b08128f570cdb43f
MISC metadata.xml 277 BLAKE2B 57fc90092c4674e5c4dfe38b0d79c983990fce4e8208b70c2ebb218aebb6d2135537f927115f3a7b7eb8c1ddb596461c17e60acb3e6a11b289796f20f3c80a33 SHA512 5ac67e6beabab60f83ac521249c6d1f021988d522fc86ab12ec98fbaa9d47a50157c10c7b9a39554e66a02b141cdc6dc6669e5e7c9c02c8b36ad404aa790d619
diff --git a/net-misc/netstat-nat/files/netstat-nat-1.4.10-docdir.patch b/net-misc/netstat-nat/files/netstat-nat-1.4.10-docdir.patch
new file mode 100644
index 000000000000..9edd402621a1
--- /dev/null
+++ b/net-misc/netstat-nat/files/netstat-nat-1.4.10-docdir.patch
@@ -0,0 +1,9 @@
+--- a/Makefile.am
++++ b/Makefile.am
+@@ -1,6 +1,5 @@
+ bin_PROGRAMS = netstat-nat
+ netstat_nat_SOURCES = netstat-nat.c netstat-nat.h
+-docdir = $(prefix)/share/doc/$(PACKAGE)-$(VERSION)
+ doc_DATA = NEWS README ChangeLog AUTHORS
+ dist_man_MANS = netstat-nat.1
+ EXTRA_DIST = netstat-nat.spec
diff --git a/net-misc/netstat-nat/files/netstat-nat-1.4.10-modern-c.patch b/net-misc/netstat-nat/files/netstat-nat-1.4.10-modern-c.patch
new file mode 100644
index 000000000000..c800e73b1474
--- /dev/null
+++ b/net-misc/netstat-nat/files/netstat-nat-1.4.10-modern-c.patch
@@ -0,0 +1,13 @@
+https://bugs.gentoo.org/875149
+--- a/netstat-nat.h
++++ b/netstat-nat.h
+@@ -64,6 +64,9 @@ void ip_addresses_add(struct _ip_addresses **list, const char *dev, const char *
+ int ip_addresses_search(struct _ip_addresses *list, const char *ip);
+ void ip_addresses_free(struct _ip_addresses **list);
+
++int string_search(char *string, char *search);
++int search_first_hit(char *search, char *line, char *ret);
++int search_sec_hit(char *search, char *line, char *ret);
+
+ #define strcopy(dst, dst_size, src) \
+ strncpy(dst, src, (dst_size - 1));
diff --git a/net-misc/netstat-nat/netstat-nat-1.4.10.ebuild b/net-misc/netstat-nat/netstat-nat-1.4.10-r1.ebuild
index 2d94fe2f5dfc..3650b7cef189 100644
--- a/net-misc/netstat-nat/netstat-nat-1.4.10.ebuild
+++ b/net-misc/netstat-nat/netstat-nat-1.4.10-r1.ebuild
@@ -1,7 +1,7 @@
-# Copyright 1999-2021 Gentoo Authors
+# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
-EAPI=7
+EAPI=8
inherit autotools
@@ -15,6 +15,8 @@ KEYWORDS="amd64 ~arm ppc sparc x86"
PATCHES=(
"${FILESDIR}"/${P}-install.patch
+ "${FILESDIR}"/${P}-modern-c.patch
+ "${FILESDIR}"/${P}-docdir.patch
)
src_prepare() {