summaryrefslogtreecommitdiff
path: root/net-analyzer/fping
diff options
context:
space:
mode:
Diffstat (limited to 'net-analyzer/fping')
-rw-r--r--net-analyzer/fping/Manifest9
-rw-r--r--net-analyzer/fping/files/fping-4.2-fno-common.patch11
-rw-r--r--net-analyzer/fping/files/fping-4.2-fping6-6.patch21
-rw-r--r--net-analyzer/fping/fping-2.4_beta2_p161-r2.ebuild2
-rw-r--r--net-analyzer/fping/fping-3.13.ebuild2
-rw-r--r--net-analyzer/fping/fping-4.2-r1.ebuild36
-rw-r--r--net-analyzer/fping/fping-4.2.ebuild6
7 files changed, 81 insertions, 6 deletions
diff --git a/net-analyzer/fping/Manifest b/net-analyzer/fping/Manifest
index bc58ce496b28..bf0c4dbbcab4 100644
--- a/net-analyzer/fping/Manifest
+++ b/net-analyzer/fping/Manifest
@@ -1,15 +1,18 @@
AUX fping-2.4_beta2_p161-err.h.patch 191 BLAKE2B 265658587236ab7fa67c07f45fa72256bfd25ad4211bdc0c0b95aa312f5729190b2ef2161354e78896a629d85c4f7cce660b5616164c1cf576dd575b8c61b7ea SHA512 f716398d2615e3f5707b3c4bad3ad84088f2acb06b90efcc25af87c54bbc4228326213c2b58b1703a4490a909a3ad59249361a55d9e36a59afc019a25d48d08d
AUX fping-2.4_beta2_p161-min-time.patch 1653 BLAKE2B e25af1458375d03c981e5f2f0301f32a2b9c4751927eba0577aec0731e4efddfd9ae64e557c4fca5fb8276fba33462b5de08ff8a36f3b1c6cab32b341339727d SHA512 46f34c26de425c96193b5d9e2182cfae38899bd5e63538d508b7d6c713f5518dd56bfb84bfda1e1b81b48aaaf3f4a09cfd0c5e2e2c83e01dbd04a5f7213d2793
AUX fping-4.1-ipv6.patch 328 BLAKE2B e65293ba588b2a653d8f0d1779f3094aa24f0937d4d35f7634a208370bf2fb83e8b3ef5c98f5d812cde92fc54ce8f37b9992bb9c30da3fb3abd64e0c1138378a SHA512 dd1a598a4ec6f93435f26066c739ea8ba798691ab5365901584e8cd3f6c8ea6fcf566ca0d8ba30bf3c2b8790d24849045751506e00dbc8ced4f260e811af04b7
+AUX fping-4.2-fno-common.patch 283 BLAKE2B 7758e7da9fb4da39bb9d77a36312bfec434b961765d510b071b49dd222a7136515bda0232440b719b8ad4146754dfbeb5648d3ef919a674ad9d81aecd9af977a SHA512 9328e40190691fd54d7059289a84e06dcddedc7cafd1a2af16c682038925d267b0945f4959b37a9acd7dd1ec909322c769e971c743b3bb8454a8fe9edcb1ff7a
+AUX fping-4.2-fping6-6.patch 688 BLAKE2B b8c9c0e3cc24bd877e5eb44fe1adfb6d8b0e2fbc39204bc3ac4362fdf59f98cdfe41cfd3e0c9a54f5583ba6f90f8b0d7c8a1ec2fb0154b51b07cdbcda236a52a SHA512 019ebf767b41cc5ad81a1cb4f3b58f2adb52d5192673256be5f068bfd83b66af57fe52efc80aba6af032c6551ecac7eed28f90ff6fea29e918730da28cda8c78
DIST fping-3.13.tar.gz 155976 BLAKE2B 6f5b825fd215a4329c35022e326df2e9dc7454b03e9a960074aef451277d2d99af23ccf451379d44a76776fec135983c7948c8bd54bde98c7f79180e59ced616 SHA512 d6c1c5b9edb97ef59cfb6d22f74f6a055e52465d3ba0f93be35b6fc9615ee08490ee927f3cf9efd087e18279519292f353abe6152061985ee166ba5f7e95e29d
DIST fping-4.0.tar.gz 170060 BLAKE2B 1142ed700a28f28ff8710b65300754139734f89123db01fa4a3772f0a804cfa58477b30ab749426be384f7e007437a82138d319ab6a702702314e24c915db44d SHA512 5dca650e9c34dd2e1bdbb981df61cf092230f07a15c4ccef105b9f58aaaa43e0d85dc9665db89631feded503ecc6f6be86446719de18e59349adb7c2f3e9757e
DIST fping-4.1.tar.gz 170851 BLAKE2B 4cad16f05afff5d1755f58be454059d1959cce1c9f50a8af1b20c34f51b3dca9b4238fd934b46ad11cb71c539c3a1f82531b44f585c774a0c28a4786105e3c0c SHA512 cd31ea336985f8d727b0db3c70213b827f0282b0c382694e10c72a89c425f2f7383d07f8f2febdc23aa246ebbf65ac9751b2404be405088963a682945edc80ba
DIST fping-4.2.tar.gz 171409 BLAKE2B 7f61d7bb06e486c327539443bfd441e494d44cdf0f949c73272e51e0867f1b39b2c3ea7df62856b493e05d9964220e03e632df839a84a15ee92168389cc55668 SHA512 2bab34dae539d942eb5e436802e6f74d57c04aa4b782f9adbd6c27830209fdb47707131f20ed966012bcec3d253c9bb3df9033a60b55bfe560af6bb1f572ee8a
DIST fping_2.4b2-to-ipv6-16.1.diff.gz 8488 BLAKE2B fe229b5042445665403f40c5a7740e024c836176a375c77440a827463adb3ed219a9c6da73375482baa81c1134764d3cfafebc44aef7596dd380e0964ff130e0 SHA512 6af25324d159df4ddd7dd909e2e1a0d85e08c2f51c31469960c2dbc7a9eb4967fd114eb87361f8c6b1691de60e7f753d371e6c902bec706f3fed3d205fbe49f0
DIST fping_2.4b2-to-ipv6.orig.tar.gz 63333 BLAKE2B b3495c304d1108732cf5aedbf3665ce2ce50be5ca051b724e92583197f9aa7f84e41655b9c3438e0715eb8210ec79fb17a020904fa0d1cfef43f7178f622ea87 SHA512 3d1a76680d3a7cd361481d6e6de49797fbaf01422a73c784c8b667131afd56de2bfbbeb17014047cd2dea903f87d9f19e38ed7b0a5c2e8f2faf82759bf064ff9
-EBUILD fping-2.4_beta2_p161-r2.ebuild 1191 BLAKE2B ef4b1cdc6f9d323f13aa0336d9f4278d806050c472611170a3b908a751ac76478fe18d6b6ef8756f1e635d27c0789f72db9302f557eae4506593b13a01c77c5c SHA512 b8d2c5dadd676ac4ad58095689f7c98ea9b8f88774fdc44cf47b2cc75e57adf363f39a0ef50645bdc843ecaa429868b2fcde02a9041df6e4f855a232040667db
-EBUILD fping-3.13.ebuild 551 BLAKE2B c876528450868e8f9daff6b630bb0d45d25c2a7721010c8e68a8a7800ad65ba1cca964154b02598f614aaa1153ef7289b132dd58a7e856fde8f9c610bf197303 SHA512 bae1d752b7344690a5f8c4398fd174d8631980276306deeaa279633acf19f1cc05a44780750a7e72fe09996ada85f0e799758ba31ba8c08376ce6ac29268b9a5
+EBUILD fping-2.4_beta2_p161-r2.ebuild 1192 BLAKE2B d3f11b563f6eff24fe533165f63202de9701a61af15ec33f58cdbdef3a26f16451b71018a8e1682eed3830b287fbea58524c28d24e657a72d0f0529f1cc54039 SHA512 09ce80d20aff0b7cffa3be736b82833a6e65ba7864598244983eebc6bf78a10b2a032e940829213cf08f5f693dff6e8d5f06904a1f60b701075f53ffbc9cc05f
+EBUILD fping-3.13.ebuild 552 BLAKE2B 1e58a0cfe5ece5cedc7763fbfb43b1ee1a8b291b3321dcbcfe582e42faa85260de5881b667f32bbc2cc67eefaaee5cc073022845ee8f0d745be9569f44c03289 SHA512 691bc35a5621f3048388f0e666e0476cddb9762a2681dbe27296c421cbd41a10c647df3431e0ea04918e4465a96a9989f061b1abd60858aa73d03725e9284487
EBUILD fping-4.0.ebuild 524 BLAKE2B 37afe8c889ff6a04e9a452686a22bc06378b20f09bb7eca6e4c9087dddcf3eda4c2db965f2125ad9c584cb13624f54a02fc8225fcc9810b0ec6200dcfe0d35ac SHA512 e561eb0d9a1090dfdaae4d9fbc5d3207ff27969a26d659e9c3d5a35b6488755d00be8064f578e97ef54a7d40d2521e6d761c8a0e1e0ff2dd7443591deb3579b2
EBUILD fping-4.1.ebuild 573 BLAKE2B cacfc3f9367c046a70e96ed2980a8ac416a383d63cc915f1cf9a42093f9e40eaa8405a46cc8dbee6111d92fbe440921efe26546cb8eca7552a90e1cbc1fe98a4 SHA512 466941d669576fe07cd4e34b75e8b7e648a8e9997776fad2a2fcb419da54f3810844ac1125d0ddbcdb827d0b1794d7c31363c37d6505b19fdbfe2bc3add3e58f
-EBUILD fping-4.2.ebuild 523 BLAKE2B 2101cba13f09dd408d5985d212f6042b0721872d37eea8f3271b8319c67df22707a10e2ae1c27a70746582d9ce37afcd2c9ac09d5a723e2f988e90d3515471a3 SHA512 9615242021bb6d0e2256f9e6db87b7860cae610dbdafd683431f4c593a74a08579c224363de61e91f65a658511ebca8cd6da978747e3126ac38254e9a7800953
+EBUILD fping-4.2-r1.ebuild 729 BLAKE2B 0e09d1adf6f798e073347356e687d1bf7d31b950d8dc0cd8630665bb6558bbd259d296156597de1a4f2cb7f933144007610ac7a10fc270fa56205cbb6028c325 SHA512 576c28d07fac7010c5febdeea586e5a0e4fbbfb217a7560eecc07f44308e071b15a95277e969d88469bd4e8a438b85fe918357bb12f6628d204f86503c60aa91
+EBUILD fping-4.2.ebuild 578 BLAKE2B 570b1faf781599b7ad1b5cffbd226bef804fbf808ccaab33712f7cc4874e1434fee0c4ae8c19e6930df4144d5fbd9ced8ae3dc4555f7f2a601dd40299eeff161 SHA512 bcd33d815cc898b6a806560047b584af353f00515bbc5f3a9c2203083b2faf7eefeaeaf58b800803d1c8f939fe94b50377654f4d448da36a3ff257a7138e1eef
MISC metadata.xml 432 BLAKE2B 26cf2b8675d43f68216b366862c04fd46072965de423ad87a6ed12feded8e978ebc2378ce582917534699586a69b7690533385c6420c0187cfe0acc089dff5fa SHA512 16121fbc4071e437cac8d026dd418f9e6efd1110424de9e08c32dd27c55d204c566faf3a790f7e301795d19ceb427c565752583ef20e8a1828d3cb3474fb218f
diff --git a/net-analyzer/fping/files/fping-4.2-fno-common.patch b/net-analyzer/fping/files/fping-4.2-fno-common.patch
new file mode 100644
index 000000000000..d18af66b0637
--- /dev/null
+++ b/net-analyzer/fping/files/fping-4.2-fno-common.patch
@@ -0,0 +1,11 @@
+--- a/src/fping.h
++++ b/src/fping.h
+@@ -11,7 +11,7 @@
+ void crash_and_burn( char *message );
+ void errno_crash_and_burn( char *message );
+ int in_cksum( unsigned short *p, int n );
+-int random_data_flag;
++extern int random_data_flag;
+
+ /* socket.c */
+ int open_ping_socket_ipv4();
diff --git a/net-analyzer/fping/files/fping-4.2-fping6-6.patch b/net-analyzer/fping/files/fping-4.2-fping6-6.patch
new file mode 100644
index 000000000000..63138d3e2d2c
--- /dev/null
+++ b/net-analyzer/fping/files/fping-4.2-fping6-6.patch
@@ -0,0 +1,21 @@
+From 6fd4f8bd91abc43f80078bdd0084cb6d2b1de7f1 Mon Sep 17 00:00:00 2001
+From: =?UTF-8?q?Johan=20Str=C3=B6m?= <johan@stromnet.se>
+Date: Tue, 25 Jun 2019 14:03:14 +0200
+Subject: [PATCH] Do not fail if using fping6 with -6 flag
+
+Mostly for backwards compatability
+---
+ src/fping.c | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+--- a/src/fping.c
++++ b/src/fping.c
+@@ -435,7 +435,7 @@
+ break;
+ case '6':
+ #ifdef IPV6
+- if (hints_ai_family != AF_UNSPEC) {
++ if (hints_ai_family != AF_UNSPEC && hints_ai_family != AF_INET6) {
+ fprintf(stderr, "%s: can't specify both -4 and -6\n", prog);
+ exit(1);
+ }
diff --git a/net-analyzer/fping/fping-2.4_beta2_p161-r2.ebuild b/net-analyzer/fping/fping-2.4_beta2_p161-r2.ebuild
index fda799ceef6f..d345c30aa0ed 100644
--- a/net-analyzer/fping/fping-2.4_beta2_p161-r2.ebuild
+++ b/net-analyzer/fping/fping-2.4_beta2_p161-r2.ebuild
@@ -14,7 +14,7 @@ HOMEPAGE="http://fping.sourceforge.net/ https://packages.qa.debian.org/f/fping.h
SLOT="0"
LICENSE="fping"
-KEYWORDS="alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-macos"
+KEYWORDS="~alpha amd64 hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-macos"
IUSE="ipv6"
S="${WORKDIR}/fping-2.4b2_to-ipv6"
diff --git a/net-analyzer/fping/fping-3.13.ebuild b/net-analyzer/fping/fping-3.13.ebuild
index 7a7584960a7b..12cfd9d1d089 100644
--- a/net-analyzer/fping/fping-3.13.ebuild
+++ b/net-analyzer/fping/fping-3.13.ebuild
@@ -9,7 +9,7 @@ SRC_URI="http://fping.org/dist/${P}.tar.gz"
LICENSE="fping"
SLOT="0"
-KEYWORDS="alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-macos"
+KEYWORDS="~alpha amd64 ~arm hppa ia64 ppc ppc64 sparc x86 ~amd64-linux ~x86-linux ~x86-macos"
IUSE="ipv6 suid"
src_configure() {
diff --git a/net-analyzer/fping/fping-4.2-r1.ebuild b/net-analyzer/fping/fping-4.2-r1.ebuild
new file mode 100644
index 000000000000..0e1b61dd97e7
--- /dev/null
+++ b/net-analyzer/fping/fping-4.2-r1.ebuild
@@ -0,0 +1,36 @@
+# Copyright 1999-2020 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+inherit fcaps
+
+DESCRIPTION="A utility to ping multiple hosts at once"
+HOMEPAGE="https://fping.org/"
+SRC_URI="https://fping.org/dist/${P}.tar.gz"
+
+LICENSE="fping"
+SLOT="0"
+KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
+IUSE="ipv6 suid"
+
+FILECAPS=( cap_net_raw+ep usr/sbin/fping )
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.2-fno-common.patch
+ "${FILESDIR}"/${PN}-4.2-fping6-6.patch
+)
+
+src_configure() {
+ econf $(use_enable ipv6)
+}
+
+src_install() {
+ default
+
+ if use suid; then
+ fperms u+s /usr/sbin/fping
+ fi
+
+ if use ipv6; then
+ dosym fping /usr/sbin/fping6
+ fi
+}
diff --git a/net-analyzer/fping/fping-4.2.ebuild b/net-analyzer/fping/fping-4.2.ebuild
index b181b90c670f..fff3fa9ccd77 100644
--- a/net-analyzer/fping/fping-4.2.ebuild
+++ b/net-analyzer/fping/fping-4.2.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2019 Gentoo Authors
+# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
@@ -12,6 +12,10 @@ SLOT="0"
KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86 ~amd64-linux ~x86-linux ~x86-macos"
IUSE="ipv6 suid"
+PATCHES=(
+ "${FILESDIR}"/${PN}-4.2-fno-common.patch
+)
+
src_configure() {
econf $(use_enable ipv6)
}