From: "Jeroen Roovers" <jer@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/symon/
Date: Tue, 7 Mar 2017 08:01:08 +0000 (UTC) [thread overview]
Message-ID: <1488873648.da1d30da882f458ed182c7355660081b8079ea20.jer@gentoo> (raw)
commit: da1d30da882f458ed182c7355660081b8079ea20
Author: Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Tue Mar 7 08:00:48 2017 +0000
Commit: Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Tue Mar 7 08:00:48 2017 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=da1d30da
net-analyzer/symon: Version bump.
Package-Manager: Portage-2.3.4, Repoman-2.3.1
net-analyzer/symon/Manifest | 1 +
net-analyzer/symon/symon-2.88.ebuild | 105 +++++++++++++++++++++++++++++++++++
2 files changed, 106 insertions(+)
diff --git a/net-analyzer/symon/Manifest b/net-analyzer/symon/Manifest
index 77d2042e7ac..aff20a692c4 100644
--- a/net-analyzer/symon/Manifest
+++ b/net-analyzer/symon/Manifest
@@ -1 +1,2 @@
DIST symon-2.87.tar.gz 107607 SHA256 3c0fa1aa0073f66c45697ffc12bb8da669eb67aeac22041d21235bbc515a8602 SHA512 8fce5cf2312f1d7ba78f693da2df9fea3bbeacae0c1b65f79c5f2444fcf07e07b11a5a7229ba762ac47ce484429a42f37bcbcc9e001fce0e5813a0dffd57a953 WHIRLPOOL ce9277f03198fbfa197aaa3540d6f5226d3f449bf69a2ee083917f4afe2e6439cfcc3289792c1f1ecf727d004d6aec3f470a813700f033fa6d9e13390ed5ce22
+DIST symon-2.88.tar.gz 110149 SHA256 02fd2641b0f671b1a623ff37099c75a3523e3ae98c7fdb1f5ebd04cb9cfa20f1 SHA512 d2079caefcde4cf017460560826c7bf9e97aee9dcce886cd0a85d671bdad877c513889c9b7cd67844dbb4161ce6b6e6f99709475dd2591141f1bc61ee11e8173 WHIRLPOOL b5724c1e787ba2932afecd0902cedea590e6a7a8de41c0b914ac53fed863b47863585fef401d8b5d69d085cd06c5b1eac436a3abb9f230b7f071a09ae2c6eacb
diff --git a/net-analyzer/symon/symon-2.88.ebuild b/net-analyzer/symon/symon-2.88.ebuild
new file mode 100644
index 00000000000..8cb63d01020
--- /dev/null
+++ b/net-analyzer/symon/symon-2.88.ebuild
@@ -0,0 +1,105 @@
+# Copyright 1999-2017 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+inherit eutils perl-module toolchain-funcs
+
+DESCRIPTION="Performance and information monitoring tool"
+HOMEPAGE="http://wpd.home.xs4all.nl/symon"
+SRC_URI="${HOMEPAGE}/philes/${P}.tar.gz"
+
+LICENSE="BSD-2"
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE="perl +symon symux"
+REQUIRED_USE="
+ || ( perl symon symux )
+"
+
+RDEPEND="
+ perl? ( dev-lang/perl )
+ symux? ( net-analyzer/rrdtool )
+"
+DEPEND="
+ ${RDEPEND}
+ virtual/pmake
+"
+
+S=${WORKDIR}/${PN}
+
+# Deletes the directory passed as an argument from the internal pmake
+# variable SUBDIR.
+zap_subdir() {
+ sed -i "/^SUBDIR/s|$1||" Makefile || die
+}
+
+src_prepare() {
+ default
+
+ sed -i \
+ -e '/^[ \t]*${CC}.*\${LIBS}/s:\${CC}:$(CC) $(LDFLAGS):' \
+ sym*/Makefile || die
+}
+
+src_configure() {
+ use symon && USE_SYMON=1
+ # Do some sed magic in accordance with the USE flags.
+ use perl && [[ -z ${USE_SYMON} ]] && ! use symux && zap_subdir lib
+ ! use perl && zap_subdir client
+ ! use symux && zap_subdir symux
+ [[ -z ${USE_SYMON} ]] && zap_subdir symon
+}
+
+src_compile() {
+ pmake CC="$(tc-getCC)" CFLAGS+="${CFLAGS}" STRIP=true || die
+}
+
+src_install() {
+ if [[ -n ${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
+
+ dodir /usr/share/symon
+ insinto /usr/share/symon
+ doins symux/c_smrrds.sh
+ fperms a+x /usr/share/symon/c_smrrds.sh
+
+ dodir /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
+}
next reply other threads:[~2017-03-07 8:01 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-03-07 8:01 Jeroen Roovers [this message]
-- strict thread matches above, loose matches on Subject: below --
2025-03-10 1:34 [gentoo-commits] repo/gentoo:master commit in: net-analyzer/symon/ Sam James
2021-04-03 15:57 Sam James
2020-11-26 23:04 Aaron Bauman
2017-06-24 10:37 Michał Górny
2016-05-23 4:08 Jeroen Roovers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1488873648.da1d30da882f458ed182c7355660081b8079ea20.jer@gentoo \
--to=jer@gentoo.org \
--cc=gentoo-commits@lists.gentoo.org \
--cc=gentoo-dev@lists.gentoo.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox