commit:     54dc04708249b193d1fd4031485aedef387e0aa0
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Wed Mar 26 18:12:18 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> org>
CommitDate: Sat Apr 12 20:56:25 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=54dc0470

net-analyzer/arpon: bump CMake minimum version for CMake 4

Closes: https://bugs.gentoo.org/952092
Signed-off-by: NHOrus <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/41310
Signed-off-by: Sam James <sam <AT> gentoo.org>

 net-analyzer/arpon/arpon-3.0-r1.ebuild          | 43 +++++++++++++++++++++++++
 net-analyzer/arpon/files/arpon-3.0-cmake4.patch | 13 ++++++++
 2 files changed, 56 insertions(+)

diff --git a/net-analyzer/arpon/arpon-3.0-r1.ebuild 
b/net-analyzer/arpon/arpon-3.0-r1.ebuild
new file mode 100644
index 000000000000..76cf9ed1a7e9
--- /dev/null
+++ b/net-analyzer/arpon/arpon-3.0-r1.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit cmake
+
+MY_PN="ArpON"
+MY_P="${MY_PN}-${PV}"
+
+DESCRIPTION="ArpON (Arp handler inspectiON) is a portable Arp handler"
+HOMEPAGE="https://arpon.sourceforge.io/";
+SRC_URI="https://downloads.sourceforge.net/${PN}/${MY_P}-ng.tar.gz";
+S="${WORKDIR}/${MY_P}-ng"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="
+       dev-libs/libdnet
+       net-libs/libnet:1.1
+       net-libs/libpcap
+"
+RDEPEND="${DEPEND}"
+
+PATCHES=(
+       "${FILESDIR}"/${PN}-3.0-CFLAGS.patch
+       "${FILESDIR}"/${PN}-3.0-gentoo.patch
+       "${FILESDIR}"/${PN}-3.0-cmake4.patch
+)
+
+DOCS=( AUTHOR CHANGELOG README THANKS )
+
+src_install() {
+       cmake_src_install
+
+       newinitd "${FILESDIR}"/${PN}.initd-3 ${PN}
+       newconfd "${FILESDIR}"/${PN}.confd-3 ${PN}
+
+       rm -r "${ED}"/var/{log,run} || die
+       mv "${ED}"/usr/share/doc/{${PN},${PF}} || die
+}

diff --git a/net-analyzer/arpon/files/arpon-3.0-cmake4.patch 
b/net-analyzer/arpon/files/arpon-3.0-cmake4.patch
new file mode 100644
index 000000000000..59880378fe47
--- /dev/null
+++ b/net-analyzer/arpon/files/arpon-3.0-cmake4.patch
@@ -0,0 +1,13 @@
+Fix build failures with CMake 4
+https://bugs.gentoo.org/952092
+--- a/CMakeLists.txt   2025-03-26 21:03:28.124742115 +0300
++++ b/CMakeLists.txt   2025-03-26 21:03:56.696915295 +0300
+@@ -40,7 +40,7 @@
+ #                        By default ArpON will be installed to / path.
+ #
+ 
+-cmake_minimum_required(VERSION 2.6)
++cmake_minimum_required(VERSION 3.5...4.0)
+ 
+ project(ArpON C)
+ set(AUTHOR "Andrea Di Pasquale <[email protected]>" INTERNAL "Author")

Reply via email to