commit:     6c22f612143a234814d915c30d51b1f9d9937439
Author:     Vladislav Mikhailikov <vmikhailikov <AT> gmail <DOT> com>
AuthorDate: Tue Aug  5 10:58:54 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sun Oct  5 05:27:32 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=6c22f612

net-analyzer/arping: add 2.26

Signed-off-by: Vladislav Mikhailikov <vmikhailikov <AT> gmail.com>
Part-of: https://github.com/gentoo/gentoo/pull/43331
Closes: https://github.com/gentoo/gentoo/pull/43331
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-analyzer/arping/Manifest           |  1 +
 net-analyzer/arping/arping-2.26.ebuild | 56 ++++++++++++++++++++++++++++++++++
 2 files changed, 57 insertions(+)

diff --git a/net-analyzer/arping/Manifest b/net-analyzer/arping/Manifest
index 1905cf1b624b..0cafeef11967 100644
--- a/net-analyzer/arping/Manifest
+++ b/net-analyzer/arping/Manifest
@@ -1 +1,2 @@
 DIST arping-2.25.tar.gz 62032 BLAKE2B 
a7b5bdfb693ee31781509584b4a0363e856d8134cebe1119fee974a57c399f1128a306b85e3f3669d4fe8f7031dfb87b9cfcc2f8df76b6f969310a12460363ad
 SHA512 
7cfc1ed73bd7621911f9b1b0ad23680c7dde6f8674a0223e6341dc6e40c7d49bb293bc519e9e9de8abaa9209ad7fedad902901235f87b8d21395f3396739b922
+DIST arping-2.26.tar.gz 62357 BLAKE2B 
7714c5d298125311618fe44097f95431741aab2d7d486e4ea5358c1ce5992f6292841e7b9f00b773aafdc93fc1425dc604845307b29d986ab08cf59ecbe573aa
 SHA512 
0a013c697595df9be966ee63948c26a61ae55cd133706a490810d2d56cd9800bd613a4e92bdaddca7571096987bba282331222b5d54e9737fc4a14471e9cf879

diff --git a/net-analyzer/arping/arping-2.26.ebuild 
b/net-analyzer/arping/arping-2.26.ebuild
new file mode 100644
index 000000000000..d3a4a07979de
--- /dev/null
+++ b/net-analyzer/arping/arping-2.26.ebuild
@@ -0,0 +1,56 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools fcaps
+
+DESCRIPTION="Utility to see if a specific IP is taken and what MAC owns it"
+HOMEPAGE="https://www.habets.pp.se/synscan/programs.php?prog=arping";
+if [[ ${PV} == 9999 ]] ; then
+       EGIT_REPO_URI="https://github.com/ThomasHabets/arping";
+       inherit git-r3
+else
+       SRC_URI="https://github.com/ThomasHabets/${PN}/archive/${P}.tar.gz";
+       KEYWORDS="~alpha ~amd64 ~arm ~hppa ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 
~amd64-linux ~x86-linux"
+
+       S="${WORKDIR}/${PN}-${P}"
+fi
+
+LICENSE="GPL-2+"
+SLOT="2"
+IUSE="+seccomp test"
+RESTRICT="!test? ( test )"
+
+RDEPEND="net-libs/libpcap
+       net-libs/libnet:1.1
+       sys-libs/libcap
+       seccomp? ( sys-libs/libseccomp )
+       !net-misc/iputils[arping(+)]"
+DEPEND="${RDEPEND}
+       test? (
+               dev-libs/check
+               dev-python/python-subunit
+       )"
+
+FILECAPS=( cap_net_raw usr/sbin/arping )
+
+src_prepare() {
+       default
+
+       eautoreconf
+}
+
+src_configure() {
+       local myeconfargs=(
+               # Controls whether seccomp is used by default
+               $(use_enable seccomp)
+       )
+
+       # Needed to actually make it optional and not automagic
+       # (and we want it optional for the non-seccomp arches, like sparc)
+       export ac_cv_lib_seccomp_seccomp_init=$(usex seccomp)
+       export ac_cv_header_seccomp_h=$(usex seccomp)
+
+       econf "${myeconfargs[@]}"
+}

Reply via email to