commit:     7a5771a071db295d0a6af284359879fb569c4f3b
Author:     NHOrus <jy6x2b32pie9 <AT> yahoo <DOT> com>
AuthorDate: Sun Mar  9 13:10:17 2025 +0000
Commit:     Sam James <sam <AT> gentoo <DOT> 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 <jy6x2b32pie9 <AT> yahoo.com>
Closes: https://github.com/gentoo/gentoo/pull/40977
Signed-off-by: Sam James <sam <AT> 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
+}

Reply via email to