diff options
Diffstat (limited to 'net-analyzer/symon')
-rw-r--r-- | net-analyzer/symon/Manifest | 11 | ||||
-rw-r--r-- | net-analyzer/symon/files/symon-init.d | 32 | ||||
-rw-r--r-- | net-analyzer/symon/files/symon.conf | 14 | ||||
-rw-r--r-- | net-analyzer/symon/files/symux-init.d | 32 | ||||
-rw-r--r-- | net-analyzer/symon/files/symux.conf | 35 | ||||
-rw-r--r-- | net-analyzer/symon/metadata.xml | 15 | ||||
-rw-r--r-- | net-analyzer/symon/symon-2.87.ebuild | 106 | ||||
-rw-r--r-- | net-analyzer/symon/symon-2.88.ebuild | 105 |
8 files changed, 350 insertions, 0 deletions
diff --git a/net-analyzer/symon/Manifest b/net-analyzer/symon/Manifest new file mode 100644 index 000000000000..934967b97bbb --- /dev/null +++ b/net-analyzer/symon/Manifest @@ -0,0 +1,11 @@ +AUX symon-init.d 554 SHA256 2ce2d2f4fba7611d3f56cee2d82214535e14be98d88352a921bbc0c82fa623d3 SHA512 5d9261c9784e17c39717fa7b446ab7e840e356549a687b423f28cb3bc0af03f4ee27652fea0ce4c7116d02eddd3adf7a417e61430b0cd4b21a9b286d484856a6 WHIRLPOOL 2a7c5bdda55e67315b23b256f77f101e03abc66b6fd3cca431a585ef32105501afa268f0e0622aeed8aa181830fb18af2c22a443ace439b004fe01d0e464228f +AUX symon.conf 313 SHA256 3f4914f65fa4456de5ee70da3c6f40f416d6452fac8a439648cc565c791cec73 SHA512 9d83d316a5024c0fc5a9c487113088548e6ba193360d684b162d39e0373bc478ebdb40b7ce508c0de2287de6684c75cfcf2f312e34e9def1dcaaeb0036ecab56 WHIRLPOOL f782d8fb717c3de1bec7e5dfab0591bb51e1770605fc6060b2b5537eae31b3b3afcde9964a23b410c69388c3d32d94193894f8369a1865be887423f53d283d2f +AUX symux-init.d 548 SHA256 3c0a86a4deb08cce57576dead7306748db6e5de267c405ec81d5762621b9c3a5 SHA512 0f494d3d141cfcc800d33dc0ed364fafaf713811ec8a8ccec7a77b421888aff42546ad742bdaf3928c49bf61d76b97fd3f2fc8992fadf1d1c499c9a1aeada11d WHIRLPOOL 06c0204de3f973da39e22259eb9ab9f1847cf15981bb06fecc50b6f0029a8ce2f369f40e620b1ce8c5276e54680ba0ee072cc0a8929f9346891f561f09dc0e2a +AUX symux.conf 952 SHA256 20f915f55f084c1f9b55410c097c8165e2d621924e3496c9e3add7c1de655126 SHA512 5f7aa2d069ed6cb58dfc6ce7ab192f1486256551c1315b86b0216c56d4ee93d84101168c5ee8c1507729136dcd05c7a09cc9c901f132c5fc8015b2502bc15272 WHIRLPOOL 919d2bf8d56b52dccc10b0899993ff839578d16760243d2c204706d17662c34b33a1cf3dee4aae10728afc4191045d6c641396416fe61ff697209f68e64f7b8c +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 +EBUILD symon-2.87.ebuild 2483 SHA256 53b80db155df7f98a784485b9e66a55a0dcdb56e73d386682ee07a058159995b SHA512 a478a48b3b306463723e1f0a3b8a63a5a93c0d7da749af1e5984aeb14e6392b504ef65defb1f86e3becdfbf0a875565db96d67bccd94f584d09177047d6b078e WHIRLPOOL 2f391c5045f60be02420eab61c030dc48f985798a2324f60d6ace6263ca85f4e02c12d6e33672a425e69b961f7943c3935b4423395bc21e72cf457f5c31873af +EBUILD symon-2.88.ebuild 2223 SHA256 a2e00957868817ba8ca58958f9cf71a9dce24d2a4d066706f8f4f36d309c7575 SHA512 c0315406f7080814403892756f7e0e23b4701f74d7326fe93d824b0f470113be3dbd5c7330025bcde15d36f546bde49f53000dfb150cab17ea49df055c628061 WHIRLPOOL 0afa1031a994ce55ce9b2ae67aaf055c0e93cce73c571ee21e60dd6cb0fc8c94481235e281185681b816e2517fa193c75088df25b952155ab5311880a76f8b78 +MISC ChangeLog 3390 SHA256 ec4df1d3cc8d62b41a08ab973937c015997be48dd15a00acdbe3e33fa81cfb7f SHA512 7c95b11e3467f132c9c76dc285a10c562f9590fc12a7f8aa98a937e4721d4efcf1c78e216920a9e3920b55bf1d2c69f92d03879e56ab91747be315f2aa0c36c8 WHIRLPOOL 8d8cef0b1734c746613e704821d34db9761eaf2148a19a6769a6ff108577fef8ce2cd88b2016fcd307f11ce0da277b9f0ca9e26f5dd5bd95462376605a694cf4 +MISC ChangeLog-2015 3741 SHA256 ee1fbebddf0b256da1b3a7ef1e9a7f56e8d00e006c7bf6fe4c7e527ea9504271 SHA512 964018da309fced62dadd18c5bfbc0065639d4a3bba0d3b47f5d0847a23dc135243b597377dda80853cc5a73f42530aed288744155f5bc7e9c1df85628a5b93f WHIRLPOOL 985ad0a2bd8189d173af7c18438ac490ea2341ef80e60345e47a00c4b4232d141176231ff196ff5a68d6ffaacd5aecdc7667c1b46b80eb0b1d4fdd8096f4b710 +MISC metadata.xml 632 SHA256 ad98172ccc6dc607ed622a3eed3c3b6de6d1b719f44a64956b8c8516b0d8cc77 SHA512 57e46a4106feab37a2f1c4cf5b9260bdcdfe8fa9f06fe850ca03cc3f9f80439e0f2db26c9cf41b2e7a10954241a4fbed68a16b5f8f33a6ed1b2c9ed31ea6edb7 WHIRLPOOL 27d81927ad1efcd6e9e68dbb54b640baef027ab1c6428915db68c87c3e9b63b57c554f1914bb088b8e9d9c9018c9fbe567f49c3510b0788ff23bc58fac628b01 diff --git a/net-analyzer/symon/files/symon-init.d b/net-analyzer/symon/files/symon-init.d new file mode 100644 index 000000000000..3d48b793e597 --- /dev/null +++ b/net-analyzer/symon/files/symon-init.d @@ -0,0 +1,32 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the 2-clause BSD license + +extra_started_commands="reload" + +depend() { + after bootmisc + need localmount net + use logger +} + +reload() { + ebegin "Reloading symon" + start-stop-daemon \ + --pidfile /run/symon.pid \ + --exec /usr/sbin/symon \ + --signal HUP + eend $? +} + +start() { + ebegin "Starting symon" + start-stop-daemon --start --exec /usr/sbin/symon -- -u + eend $? +} + +stop() { + ebegin "Stopping symon" + start-stop-daemon --stop --pidfile /run/symon.pid + eend $? +} diff --git a/net-analyzer/symon/files/symon.conf b/net-analyzer/symon/files/symon.conf new file mode 100644 index 000000000000..920662185e58 --- /dev/null +++ b/net-analyzer/symon/files/symon.conf @@ -0,0 +1,14 @@ +# +# Demo configuration for symon. See symon(8) for BNF. +# + +monitor { cpu(0), mem, + if(lo), +# cpuiow(0), +# sensor(fan0), sensor(in0), sensor(temp0), +# if(eth0), if(eth1), if(eth2), +# df(sda), +# smart(sda), +# io(hda), io(hdb), io(hdc), io(hdd) + io(sda) +} stream to 127.0.0.1 2100 diff --git a/net-analyzer/symon/files/symux-init.d b/net-analyzer/symon/files/symux-init.d new file mode 100644 index 000000000000..452d4581b807 --- /dev/null +++ b/net-analyzer/symon/files/symux-init.d @@ -0,0 +1,32 @@ +#!/sbin/openrc-run +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the 2-clause BSD license + +extra_started_commands="reload" + +depend() { + after bootmisc + need localmount net + use logger +} + +reload() { + ebegin "Reloading symux" + start-stop-daemon \ + --pidfile /run/symux.pid \ + --exec /usr/sbin/symux \ + --signal HUP + eend $? +} + +start() { + ebegin "Starting symux" + start-stop-daemon --start --exec /usr/sbin/symux + eend $? +} + +stop() { + ebegin "Stopping symux" + start-stop-daemon --stop --pidfile /run/symux.pid + eend $? +} diff --git a/net-analyzer/symon/files/symux.conf b/net-analyzer/symon/files/symux.conf new file mode 100644 index 000000000000..fa0ed50631d7 --- /dev/null +++ b/net-analyzer/symon/files/symux.conf @@ -0,0 +1,35 @@ +# +# Demo symux configuration. See symux(8) for BNF. +# + +mux 127.0.0.1 2100 + +source 127.0.0.1 { + accept { cpu(0), mem, + if(lo), +# cpuiow(0), +# sensor(fan0), sensor(in0), sensor(temp0), +# if(eth0), if(eth1), if(eth2), +# df(sda), +# smart(sda), +# io(hda), io(hdb), io(hdc), io(hdd) + io(sda) + } + datadir "/var/lib/symon/rrds/localhost" +} + +# an example showing the write directive +# +# source 10.0.0.2 { +# accept { cpu(0), mem, if(eth0), if(eth1), +# if(lo), if(eth2), io(sda) +# } +# +# write cpu(0) in "/var/lib/symon/rrds/<host>/cpu0.rrd" +# write mem in "/var/lib/symon/rrds/<host>/mem.rrd" +# write if(eth0) in "/var/lib/symon/rrds/<host>/if_eth0.rrd" +# write if(eth1) in "/var/lib/symon/rrds/<host>/if_eth1.rrd" +# write if(lo) in "/var/lib/symon/rrds/<host>/if_lo.rrd" +# write if(eth2) in "/var/lib/symon/rrds/<host>/if_eth2.rrd" +# write io(sda) in "/var/lib/symon/rrds/<host>/io_sda.rrd" +# } diff --git a/net-analyzer/symon/metadata.xml b/net-analyzer/symon/metadata.xml new file mode 100644 index 000000000000..ed375df28cbc --- /dev/null +++ b/net-analyzer/symon/metadata.xml @@ -0,0 +1,15 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="project"> + <email>netmon@gentoo.org</email> + <name>Gentoo network monitoring and analysis project</name> + </maintainer> + <use> + <flag name="perl">Enables a generic perl symux client</flag> + <flag name="symon">Enables the system monitor. Offers no functionality + but monitoring and forwarding of measured data</flag> + <flag name="symux">Enables the multiplexer which stores incoming symon + streams on disk in RRD (<pkg>net-analyzer/rrdtool</pkg>) files</flag> + </use> +</pkgmetadata> diff --git a/net-analyzer/symon/symon-2.87.ebuild b/net-analyzer/symon/symon-2.87.ebuild new file mode 100644 index 000000000000..f78f8d6d8a33 --- /dev/null +++ b/net-analyzer/symon/symon-2.87.ebuild @@ -0,0 +1,106 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 +inherit eutils perl-module toolchain-funcs + +DESCRIPTION="Performance and information monitoring tool" +HOMEPAGE="http://www.xs4all.nl/~wpd/symon/" +SRC_URI="http://www.xs4all.nl/~wpd/symon/philes/${P}.tar.gz" + +LICENSE="BSD-2" +SLOT="0" +KEYWORDS="~amd64 ~sparc ~x86" +IUSE="perl +symon symux" + +RDEPEND="perl? ( dev-lang/perl ) + symux? ( net-analyzer/rrdtool )" +DEPEND="${RDEPEND} + sys-devel/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 +} + +pkg_setup() { + use symon && USE_SYMON=1 && return + + if ! use perl && ! use symon && ! use symux; then + ewarn "You have all available USE flags disabled. Therefore, only the" + ewarn "system monitor will be emerged. Please, enable at least one USE" + ewarn "flag to avoid this message." + USE_SYMON=1 + fi +} + +src_prepare() { + sed -i \ + -e '/^[ \t]*${CC}.*\${LIBS}/s:\${CC}:$(CC) $(LDFLAGS):' \ + sym*/Makefile || die +} + +src_configure() { + # 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 "pmake failed" +} + +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 +} diff --git a/net-analyzer/symon/symon-2.88.ebuild b/net-analyzer/symon/symon-2.88.ebuild new file mode 100644 index 000000000000..2ea5066d30b8 --- /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} + sys-devel/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 +} |