net-analyzer/sshping: fixup cmake minimum version

Signed-off-by: John Helmert III <ajak@gentoo.org>
This commit is contained in:
John Helmert III
2025-03-25 21:40:22 -07:00
parent 69af4f2800
commit 0bc6ad0cd7
2 changed files with 63 additions and 0 deletions

View File

@@ -0,0 +1,30 @@
https://github.com/spook/sshping/pull/50
From: John Helmert III <ajak@gentoo.org>
Date: Tue, 25 Mar 2025 21:20:43 -0700
Subject: [PATCH] cmake: set cmake_minimum_required to 3.10
cmake-4 removes support for the minimum version being lower than 3.5,
and older than 3.10 is deprecated with 3.31.
Closes: #49
Gentoo-Bug: https://bugs.gentoo.org/951814
Signed-off-by: John Helmert III <ajak@gentoo.org>
---
CMakeLists.txt | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/CMakeLists.txt b/CMakeLists.txt
index e8a7d0b..046bc72 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -1,6 +1,6 @@
# See https://github.com/spook/sshping
+cmake_minimum_required(VERSION 3.10)
project(sshping)
-cmake_minimum_required(VERSION 2.8)
#find_package(libssh)
--
2.48.1

View File

@@ -0,0 +1,33 @@
# Copyright 2020-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit cmake
DESCRIPTION="ssh-based ping: measure character echo latency and bandwidth"
HOMEPAGE="https://github.com/spook/sshping"
SRC_URI="https://github.com/spook/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz"
LICENSE="MIT"
SLOT="0"
KEYWORDS="~amd64"
BDEPEND="dev-lang/perl"
DEPEND="net-libs/libssh:="
RDEPEND="${DEPEND}"
PATCHES=(
"${FILESDIR}/${P}-fix-man-dir.patch"
"${FILESDIR}/${P}-respect-cxxflags.patch"
"${FILESDIR}/${P}-cmake-minimum-version.patch"
)
src_configure() {
local mycmakeargs=(
-DCMAKE_INSTALL_PREFIX="${EPREFIX}/usr"
-DCMAKE_CXX_FLAGS="${CXXFLAGS}"
)
cmake_src_configure
}