diff options
Diffstat (limited to 'net-analyzer/syweb')
-rw-r--r-- | net-analyzer/syweb/Manifest | 7 | ||||
-rw-r--r-- | net-analyzer/syweb/files/postinstall-en.txt | 8 | ||||
-rw-r--r-- | net-analyzer/syweb/files/reconfig | 20 | ||||
-rw-r--r-- | net-analyzer/syweb/metadata.xml | 8 | ||||
-rw-r--r-- | net-analyzer/syweb/syweb-0.65.ebuild | 42 |
5 files changed, 85 insertions, 0 deletions
diff --git a/net-analyzer/syweb/Manifest b/net-analyzer/syweb/Manifest new file mode 100644 index 000000000000..a3e24273eb57 --- /dev/null +++ b/net-analyzer/syweb/Manifest @@ -0,0 +1,7 @@ +AUX postinstall-en.txt 353 SHA256 ac0e8510c15719c525f054439174c55ddd90b1e1abc88c3a74b84f7b2d9c3244 SHA512 fb14e7b4acb86a0acc261e1690a03fc963be1e20df808c5a1f324692b0a2b0494fe79fe2e9b97d0be088cccd7c4c03ad3a4feafb126d17d0896e5c931670b0a1 WHIRLPOOL 80b90c0e940d91423003a3b0176b6924d6df7c5b2f98af548196250a7138bb7bcef54855f3999d07999055ab38905f8ec85201aa0fb6bd7148e7acb1fb096fae +AUX reconfig 374 SHA256 7c207c999b5b31bc46a3b4f64afe21505e9217bc94d3ce5765298fbb8c329276 SHA512 4305a6931b07c8e06a4841a3b5094419f8201407a060c8a766424b31049d30e432921d53d6204cbc7a2c0d52f03119932ec99df915985050b7798f3f2653aaf6 WHIRLPOOL a3244b2784da8d94666ea73786fcdc50159a4a1d192a61d54843fe4fc36d1debc47888f20d564a5b6c5063233965f5fe12ea398f56db16602915573f1f2003ee +DIST syweb-0.65.tar.gz 37052 SHA256 b37492b7180f27731b7ed3241f9e39d57633d10d0af3f9a19b52ed3df33595a2 SHA512 ca4a4ad6f48dc4ff32c11979d6f34ae6f87462fd295780cdef6609ca425d21698ff43e2c5ffbf43a1f1ecccef4718891992160d1fbc1325726c474d113f824b2 WHIRLPOOL 5b5edb41e65da5e53a33d32a5320dafcc540b7b5770c0f42213684cdaef5d1dce4a2310d11e8b62c1371ad62083c2be9ffff3d5c405e3ca331d30e777b3f338e +EBUILD syweb-0.65.ebuild 921 SHA256 18b929af64c0f10fcfda845901e81aaee0a3d404c0423fcfaccfc6d1ff53f18c SHA512 86d24e2d6350c99c909e61c51d27f976afd8de1e65c12e6208618cb7fab449c90ef8ae32557cb9c0ab2ed6f22df797c3d1893a9cede812683347f72f98e249fb WHIRLPOOL bcc1da195a3751086f88dc191c3e2bd9167ad647488fccccb346796ec79eede5a3f2cc2361a137a4d935480502c604cf2fe6476a77d35ce8d70477358aeb8ad5 +MISC ChangeLog 2469 SHA256 af3d715ff9ada19dbc4f73db95536f29119652c99c60930c219b1472ea7fe3bb SHA512 d4c45943b0fd4c27a0775a383be876ce62e7c0c84ac30dee773c3a6ee82f4f63ef4f3adb82b0b9577288a52d7388041aa1ff79e5cd3fc3c54f739947fd7c4158 WHIRLPOOL 6c7ff3b4f24ed78881aeb76d4e89c79cfaf297b9f4d51514f0a17aff80fc36168394bf20763420ead011089767a5c9ea3f41bade7b436821db99f510dd6b1102 +MISC ChangeLog-2015 1946 SHA256 831ad526b415d67048e2c9ffee0eeb9b993aa32155d6e950abf0dc8a7a7473de SHA512 0fbb096052624b5f74d7889596966262e432072dc285cb1b65404480201721d8d2888e883939fec33e089b53cf9d00ca5b06eea98cda714d2f6ce23cd05d88a0 WHIRLPOOL 3d420e2738ac6ccc3a935cf8375c327d622cf5167093854b0d2ef3efdd183512c31710d9edad3ccdfc82f2d53235faa0a65ccf36ce549787c0c4a0d0cb247659 +MISC metadata.xml 280 SHA256 b04c5b9d91f6c4d6e36583488fd032751034d1e035085609c9bdf7677cf1e83f SHA512 8b56802e5524808b11ab857779ce04fb2d07cae87376f67490178601a9aecf7ad9f95743709b46048a425598d4cf8dcf01ef78cc97009d78e26a7728453150ef WHIRLPOOL 6f3756b9ac748acccb6ac5a4de133cf93988e8c904f606376fecbb6a21ce038e86437fecca43b2521538da2570d33ff1a6a1e0cab290a3d71a9b4f2734f16328 diff --git a/net-analyzer/syweb/files/postinstall-en.txt b/net-analyzer/syweb/files/postinstall-en.txt new file mode 100644 index 000000000000..291d66d4e381 --- /dev/null +++ b/net-analyzer/syweb/files/postinstall-en.txt @@ -0,0 +1,8 @@ +Test your syweb installation by pointing your browser to the URL +http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/configtest.php + +If you don't want any user interaction, move index_noui.php to index.php. + +syweb expects a <host>/*.rrd style directory structure under +/var/lib/symon/rrds. Customize ${MY_INSTALLDIR}/setup.inc +if this is incorrect for your setup. diff --git a/net-analyzer/syweb/files/reconfig b/net-analyzer/syweb/files/reconfig new file mode 100644 index 000000000000..79324cc1c7d0 --- /dev/null +++ b/net-analyzer/syweb/files/reconfig @@ -0,0 +1,20 @@ +#!/bin/bash + +die() { + echo "#####" + echo $1 + echo "#####" + exit 1 +} + +sed_var() { + sed -i "/\\$symon['$1']/s|=.*|='$2';|" "${MY_INSTALLDIR}"/setup.inc \ + || die "sed $1 failed" +} + +[[ $1 == "clean" ]] && exit 0 + +sed_var rrdtool_path /usr/bin/rrdtool +sed_var cache_dir "${VHOST_ROOT}"/syweb/cache +sed_var host_tree /var/lib/symon/rrds +sed_var layout_dir "${VHOST_ROOT}"/syweb diff --git a/net-analyzer/syweb/metadata.xml b/net-analyzer/syweb/metadata.xml new file mode 100644 index 000000000000..2c2a7923cfc8 --- /dev/null +++ b/net-analyzer/syweb/metadata.xml @@ -0,0 +1,8 @@ +<?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> +</pkgmetadata> diff --git a/net-analyzer/syweb/syweb-0.65.ebuild b/net-analyzer/syweb/syweb-0.65.ebuild new file mode 100644 index 000000000000..da3bdcae2f6d --- /dev/null +++ b/net-analyzer/syweb/syweb-0.65.ebuild @@ -0,0 +1,42 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +WEBAPP_MANUAL_SLOT="yes" +inherit webapp + +DESCRIPTION="Web frontend to symon" +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" + +RDEPEND="virtual/httpd-php + net-analyzer/rrdtool" + +need_httpd_cgi + +S=${WORKDIR}/${PN} + +src_install() { + webapp_src_preinst + + dodoc CHANGELOG README + docinto layouts + dodoc symon/*.layout + + dodir "${MY_HOSTROOTDIR}"/syweb/cache + insinto "${MY_HOSTROOTDIR}"/syweb + doins symon/hifn_test.layout + webapp_serverowned "${MY_HOSTROOTDIR}"/syweb/cache + insinto "${MY_HTDOCSDIR}" + doins -r htdocs/syweb/* + webapp_configfile "${MY_HTDOCSDIR}"/setup.inc + webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt + webapp_hook_script "${FILESDIR}"/reconfig + + webapp_src_install +} |