From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 2E8881582EF for ; Mon, 10 Mar 2025 01:34:46 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 17443343122 for ; Mon, 10 Mar 2025 01:34:46 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 0FE84110370; Mon, 10 Mar 2025 01:34:45 +0000 (UTC) Received: from smtp.gentoo.org (mail.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 05CF5110370 for ; Mon, 10 Mar 2025 01:34:44 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A91F734312D for ; Mon, 10 Mar 2025 01:34:44 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 40B60122C for ; Mon, 10 Mar 2025 01:34:43 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1741570449.7a5771a071db295d0a6af284359879fb569c4f3b.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/symon/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-analyzer/symon/Manifest net-analyzer/symon/symon-2.90.ebuild X-VCS-Directories: net-analyzer/symon/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7a5771a071db295d0a6af284359879fb569c4f3b X-VCS-Branch: master Date: Mon, 10 Mar 2025 01:34:43 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: e950f347-0bc4-40ee-b9d5-a7d27c5a1af7 X-Archives-Hash: 839fe9349521bc2e5e95cc397aea7c43 commit: 7a5771a071db295d0a6af284359879fb569c4f3b Author: NHOrus yahoo com> AuthorDate: Sun Mar 9 13:10:17 2025 +0000 Commit: Sam James gentoo org> CommitDate: Mon Mar 10 01:34:09 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7a5771a0 net-analyzer/symon: add 2.90 Upstream fix for build on musl. Removed tcp clients for symux, now fifo only. Connection between symux and symon is not affected. Signed-off-by: NHOrus yahoo.com> Closes: https://github.com/gentoo/gentoo/pull/40977 Signed-off-by: Sam James gentoo.org> net-analyzer/symon/Manifest | 1 + net-analyzer/symon/symon-2.90.ebuild | 98 ++++++++++++++++++++++++++++++++++++ 2 files changed, 99 insertions(+) diff --git a/net-analyzer/symon/Manifest b/net-analyzer/symon/Manifest index 3dac736337a7..0c893d2c605c 100644 --- a/net-analyzer/symon/Manifest +++ b/net-analyzer/symon/Manifest @@ -1,2 +1,3 @@ DIST symon-2.88.tar.gz 110149 BLAKE2B 918ecf6c87a363e85ce67f9890b2ff6d326f14f896cb85ee6e501b962cb4e476b8fab9d6a96857e63e34aa2ebd2036fbb507c52d74b66b59ff7d77c7bc571474 SHA512 d2079caefcde4cf017460560826c7bf9e97aee9dcce886cd0a85d671bdad877c513889c9b7cd67844dbb4161ce6b6e6f99709475dd2591141f1bc61ee11e8173 DIST symon-2.89.tar.gz 106210 BLAKE2B d87fececf6e1e6dc9c39c0474e2a3e5bb6bb47b9a256e377385302a011532d94b751572040594b62962d4b2c2ac2d5bbd90513a79ab82bd69aeb4f30e93609a1 SHA512 631870aafbd29610a0ddc936f86ab12c16c3b19454b6bd98b3f1a1179767be890f9ea828dddcb8d79278f2c10b67631184386d6deb8ffb5c090d7bdc558e5db7 +DIST symon-2.90.tar.gz 102807 BLAKE2B 9ae6042a3376154ed3548d81ddf2bd2fda611f3009d1f12f0dfec957226951c004fc6351933aa78a021bbaa3ffdf0cf4ce0739d861d9e64bf48906c6e4df3f16 SHA512 b6d3664660f119f9f62a3e9cd7fb7d72df7356adf8544a65cb467b9d18b18a5252e3b3cc57ee21f72e45b8dd4f57063a3c876ed736413c11a57575568857aefc diff --git a/net-analyzer/symon/symon-2.90.ebuild b/net-analyzer/symon/symon-2.90.ebuild new file mode 100644 index 000000000000..371ba28573fb --- /dev/null +++ b/net-analyzer/symon/symon-2.90.ebuild @@ -0,0 +1,98 @@ +# Copyright 1999-2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit edo perl-module toolchain-funcs + +DESCRIPTION="Performance and information monitoring tool" +HOMEPAGE="https://wpd.home.xs4all.nl/symon/" +SRC_URI="https://wpd.home.xs4all.nl/symon/philes/${P}.tar.gz" +S="${WORKDIR}"/${PN} + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~sparc ~x86" +IUSE="perl +symon symux" +REQUIRED_USE="|| ( perl symon symux )" +# there are no tests, trying to run them fails because pmakefile +RESTRICT="test" + +BDEPEND="dev-build/pmake" +RDEPEND=" + perl? ( dev-lang/perl ) + symux? ( net-analyzer/rrdtool ) +" +DEPEND="${RDEPEND}" + +# Deletes the directory passed as an argument from the internal pmake +# variable SUBDIR. +zap_subdir() { + sed -i "/^SUBDIR/s|$1||" Makefile || die +} + +PATCHES=( + "${FILESDIR}/${PN}-2.89-condition-makefiles.patch" +) + +src_configure() { + # Do some sed magic in accordance with the USE flags. + use perl && ! use symon && ! use symux && zap_subdir lib + ! use perl && zap_subdir client + ! use symux && zap_subdir symux + ! use symon && zap_subdir symon +} + +src_compile() { + edo pmake CC="$(tc-getCC)" CFLAGS+="${CFLAGS}" LDFLAGS+="${LDFLAGS}" +} + +src_install() { + if use symon; then + insinto /etc + doins "${FILESDIR}"/symon.conf + + newinitd "${FILESDIR}"/symon-init.d symon + + dodoc CHANGELOG HACKERS TODO + + doman symon/symon.8 + dosbin symon/symon + fi + + if use perl; then + dobin client/getsymonitem.pl + + perl_set_version + insinto ${VENDOR_LIB} + doins client/SymuxClient.pm + fi + + if use symux; then + insinto /etc + doins "${FILESDIR}"/symux.conf + + newinitd "${FILESDIR}"/symux-init.d symux + + doman symux/symux.8 + dosbin symux/symux + + insinto /usr/share/symon + doins symux/c_smrrds.sh + fperms a+x /usr/share/symon/c_smrrds.sh + + dodir /var/lib/symon/rrds/localhost + keepdir /var/lib/symon/rrds/localhost + fi +} + +pkg_postinst() { + if use symux; then + elog "The RRDs files can be obtained by running" + elog "/usr/share/symon/c_smrrds.sh all." + elog "For information about migrating RRDs from a previous" + elog "symux version read the LEGACY FORMATS section of symux(8)." + elog "To view the rrdtool pictures of the stored data, emerge" + elog "net-analyzer/syweb." + fi +}