summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Volkov <pva@gentoo.org>2008-08-19 07:03:01 +0000
committerPeter Volkov <pva@gentoo.org>2008-08-19 07:03:01 +0000
commitd297cf42d73ae6b5e9baa663ef3215185d77f639 (patch)
treebf91dd74ae0c81e0af77d0b31d2d32acf555591a
parentInitial import from sunrise, bug #176635. Syweb splited into separate package... (diff)
downloadgentoo-2-d297cf42d73ae6b5e9baa663ef3215185d77f639.tar.gz
gentoo-2-d297cf42d73ae6b5e9baa663ef3215185d77f639.tar.bz2
gentoo-2-d297cf42d73ae6b5e9baa663ef3215185d77f639.zip
Initial import. Separated out from symon.
(Portage version: 2.2_rc8/cvs/Linux 2.6.22-ovz005 i686)
-rw-r--r--net-analyzer/syweb/ChangeLog12
-rw-r--r--net-analyzer/syweb/Manifest7
-rw-r--r--net-analyzer/syweb/files/syweb-class_lexer.inc.patch14
-rw-r--r--net-analyzer/syweb/files/syweb-setup.inc.patch25
-rw-r--r--net-analyzer/syweb/files/syweb-total_firewall.layout.patch30
-rw-r--r--net-analyzer/syweb/metadata.xml9
-rw-r--r--net-analyzer/syweb/syweb-0.58.ebuild60
7 files changed, 157 insertions, 0 deletions
diff --git a/net-analyzer/syweb/ChangeLog b/net-analyzer/syweb/ChangeLog
new file mode 100644
index 000000000000..c40c2dcbbff8
--- /dev/null
+++ b/net-analyzer/syweb/ChangeLog
@@ -0,0 +1,12 @@
+# ChangeLog for net-analyzer/syweb
+# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/syweb/ChangeLog,v 1.1 2008/08/19 07:03:00 pva Exp $
+
+*syweb-0.58 (19 Aug 2008)
+
+ 19 Aug 2008; Peter Volkov <pva@gentoo.org>
+ +files/syweb-class_lexer.inc.patch, +files/syweb-setup.inc.patch,
+ +files/syweb-total_firewall.layout.patch, +metadata.xml,
+ +syweb-0.58.ebuild:
+ Initial import. Separated out from symon.
+
diff --git a/net-analyzer/syweb/Manifest b/net-analyzer/syweb/Manifest
new file mode 100644
index 000000000000..439e571035d4
--- /dev/null
+++ b/net-analyzer/syweb/Manifest
@@ -0,0 +1,7 @@
+AUX syweb-class_lexer.inc.patch 461 RMD160 b52dba8c8c43b4a7ed53d163855846351ed1b845 SHA1 40b749f3d80ff933e96f2de9ed59444f85ddf8fa SHA256 04ec1b000065f36064bcec46e2355da493ec2b051100cb418f8b63929d1fe9fd
+AUX syweb-setup.inc.patch 909 RMD160 13952d6931114b8e7833374ab8f3f5f1797d5eb9 SHA1 faf1446a0e20b37d73a07080df24f90c633239f0 SHA256 1878fb8da815b1c8963c6d883596c4c6b8ba88051a30ff4f16aae0e9630fc5ad
+AUX syweb-total_firewall.layout.patch 1673 RMD160 63e130338b7d48dc2debc4c205b955b60fc94c4d SHA1 ff5e7ee658f7a48df7c54a2a8923bc456a4834f3 SHA256 c2572d99370b76787685f20ad82158c182baa4840a5f9409efb2c0537a79a901
+DIST syweb-0.58.tar.gz 40960 RMD160 5dffc149a078789703c1ee10699e8aab350313d7 SHA1 bf0aa3a96533f8d6ae38f5317ae001282510ced4 SHA256 c01dfbc9f069d73d7c92880a0ed05bd7bca3e970ab282c2deb706861af7d6dcf
+EBUILD syweb-0.58.ebuild 1540 RMD160 032381b9ae546515bd13bb40f5a80c956966883a SHA1 0a481782aae535c716fcce7fdfe6ffaf0ce4f794 SHA256 73008a133ab0aaed8e1419287a15f50f5806593a1ba690a4d8385d5e1ea1740c
+MISC ChangeLog 385 RMD160 fd0628b7b5787903e2c81a45e1cd3a298538ad8c SHA1 96aa76e5a7153fec6213f8abcd15e5183e1b89d0 SHA256 dc82e13d66d7bd34522e9a439df12e9f6039e8293e09e4088cd6d3f949bd4745
+MISC metadata.xml 265 RMD160 aed0f5c8d885cb6a12e4af5497fe50fb0fb40372 SHA1 e26eb75195abb84e8bdd11da2f1f5ec01ba8b2a9 SHA256 30534f7fa13864b521a7f67337c8e2db9ce1956b087cabb81313d93d11b5c6fa
diff --git a/net-analyzer/syweb/files/syweb-class_lexer.inc.patch b/net-analyzer/syweb/files/syweb-class_lexer.inc.patch
new file mode 100644
index 000000000000..425e9f4b18f8
--- /dev/null
+++ b/net-analyzer/syweb/files/syweb-class_lexer.inc.patch
@@ -0,0 +1,14 @@
+# Comment layout test since they aren't installed by default (prevents
+# configtest.php from failing).
+
+--- syweb/htdocs/syweb/class_lexer.inc.orig 2007-04-30 21:04:45.004493630 +0100
++++ syweb/htdocs/syweb/class_lexer.inc 2007-04-30 21:04:59.267317747 +0100
+@@ -245,7 +245,7 @@
+ function _test() {
+ global $symon;
+
+- $this->load('hifn_test.layout');
++ /* $this->load('hifn_test.layout'); */
+ while(!$this->eof) {
+ $token = $this->next_token();
+ }
diff --git a/net-analyzer/syweb/files/syweb-setup.inc.patch b/net-analyzer/syweb/files/syweb-setup.inc.patch
new file mode 100644
index 000000000000..604a5c9991d1
--- /dev/null
+++ b/net-analyzer/syweb/files/syweb-setup.inc.patch
@@ -0,0 +1,25 @@
+# Rename directories to reflect the changes from the ebuild and the
+# configuration files.
+
+--- syweb/htdocs/syweb/setup.inc.orig 2008-08-18 12:22:44.662964324 +0100
++++ syweb/htdocs/syweb/setup.inc 2008-08-18 12:24:08.884219875 +0100
+@@ -32,11 +32,18 @@
+ $symon['layout_dir']='/var/www/symon';
+ */
+
+-/* running FreeBSD, apache not chrooted: */
++/* running FreeBSD, apache not chrooted:
+ $symon['rrdtool_path']='/usr/local/bin/rrdtool';
+ $symon['cache_dir']='/usr/local/www/symon/cache';
+ $symon['host_tree']='/usr/local/www/symon/rrds';
+ $symon['layout_dir']='/usr/local/www/symon';
++*/
++
++/* running Linux, apache not chrooted: */
++$symon['rrdtool_path']='/usr/bin/rrdtool';
++$symon['cache_dir']='/var/www/localhost/htdocs/syweb/cache';
++$symon['host_tree']='/var/lib/symon/rrds';
++$symon['layout_dir']='/var/www/localhost/htdocs/syweb/layouts';
+
+ $symon['cache_duration']=20;
+ $symon['isolate_hosts']=1;
diff --git a/net-analyzer/syweb/files/syweb-total_firewall.layout.patch b/net-analyzer/syweb/files/syweb-total_firewall.layout.patch
new file mode 100644
index 000000000000..75c449fc08ea
--- /dev/null
+++ b/net-analyzer/syweb/files/syweb-total_firewall.layout.patch
@@ -0,0 +1,30 @@
+# Convert BSD devices to Linux.
+# Rename directories to reflect the changes from the ebuild and the
+# configuration files.
+
+--- syweb/symon/total_firewall.layout.orig 2007-04-30 19:13:12.967405846 +0100
++++ syweb/symon/total_firewall.layout 2007-04-30 19:14:55.872706997 +0100
+@@ -8,15 +8,15 @@
+ </div>";
+
+ group name="interfaces", start=1017942400, end=-1;
+-graph rrdfile=/symon/rrds/www/if_de0.rrd, title="external if on dikkeaap";
+-graph rrdfile=/symon/rrds/www/if_xl0.rrd, title="internal if on dikkeaap";
++graph rrdfile=/var/lib/symon/rrds/www/if_eth0.rrd, title="external if on dikkeaap";
++graph rrdfile=/var/lib/symon/rrds/www/if_eth1.rrd, title="internal if on dikkeaap";
+
+ group name="cpu and memory", start=1017942400, end=-1;
+-graph rrdfile=/symon/rrds/www/cpu0.rrd, title="cpu(0) on dikkeaap";
+-graph rrdfile=/symon/rrds/www/mem.rrd, title="mem on dikkeaap";
++graph rrdfile=/var/lib/symon/rrds/www/cpu0.rrd, title="cpu(0) on dikkeaap";
++graph rrdfile=/var/lib/symon/rrds/www/mem.rrd, title="mem on dikkeaap";
+
+ group name="disks", start=1017942400, end=-1;
+-graph rrdfile=/symon/rrds/www/io_wd0.rrd, title="disk 0 on dikkeaap";
+-graph rrdfile=/symon/rrds/www/io_wd1.rrd, title="disk 1 on dikkeaap";
+-graph rrdfile=/symon/rrds/www/io_wd2.rrd, title="disk 2 on dikkeaap";
+-graph rrdfile=/symon/rrds/www/io_wd3.rrd, title="disk 3 on dikkeaap";
++graph rrdfile=/var/lib/symon/rrds/www/io_hda.rrd, title="disk 0 on dikkeaap";
++graph rrdfile=/var/lib/symon/rrds/www/io_hdb.rrd, title="disk 1 on dikkeaap";
++graph rrdfile=/var/lib/symon/rrds/www/io_hdc.rrd, title="disk 2 on dikkeaap";
++graph rrdfile=/var/lib/symon/rrds/www/io_hdd.rrd, title="disk 3 on dikkeaap";
diff --git a/net-analyzer/syweb/metadata.xml b/net-analyzer/syweb/metadata.xml
new file mode 100644
index 000000000000..65062abcd1e6
--- /dev/null
+++ b/net-analyzer/syweb/metadata.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <herd>netmon</herd>
+ <maintainer>
+ <email>me@tiagocunha.org</email>
+ <description>Tiago Cunha</description>
+ </maintainer>
+</pkgmetadata>
diff --git a/net-analyzer/syweb/syweb-0.58.ebuild b/net-analyzer/syweb/syweb-0.58.ebuild
new file mode 100644
index 000000000000..e85f6f75ef8b
--- /dev/null
+++ b/net-analyzer/syweb/syweb-0.58.ebuild
@@ -0,0 +1,60 @@
+# Copyright 1999-2008 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/syweb/syweb-0.58.ebuild,v 1.1 2008/08/19 07:03:00 pva Exp $
+
+inherit depend.php eutils 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"
+WEBAPP_MANUAL_SLOT="yes"
+SLOT="0"
+KEYWORDS="~amd64 ~sparc ~x86"
+IUSE=""
+
+DEPEND=""
+RDEPEND="net-analyzer/rrdtool"
+
+need_httpd_cgi
+need_php_httpd
+
+S=${WORKDIR}/${PN}
+
+src_unpack() {
+ unpack ${A}
+
+ epatch "${FILESDIR}"/${PN}-class_lexer.inc.patch
+ epatch "${FILESDIR}"/${PN}-setup.inc.patch
+ epatch "${FILESDIR}"/${PN}-total_firewall.layout.patch
+}
+
+src_install() {
+ webapp_src_preinst
+
+ dodoc "${WORKDIR}"/syweb/{CHANGELOG,README} || die "dodoc failed"
+ docinto layouts
+ dodoc "${WORKDIR}"/syweb/symon/total* || die "dodoc layouts failed"
+
+ dodir "${MY_HTDOCSDIR}"/cache
+ dodir "${MY_HTDOCSDIR}"/layouts
+ webapp_serverowned "${MY_HTDOCSDIR}"/cache
+ insinto "${MY_HTDOCSDIR}"
+ doins -r "${WORKDIR}"/syweb/htdocs/syweb/* || die "doins failed"
+ webapp_configfile "${MY_HTDOCSDIR}"/setup.inc
+
+ webapp_src_install
+}
+
+pkg_postinst() {
+ elog "Test your syweb configuration by pointing your browser at:"
+ elog "http://${VHOST_HOSTNAME}/${PN}/configtest.php"
+ elog "Customize syweb by editing the file setup.inc."
+ elog "If you don't want any user interaction, move index_noui.php"
+ elog "to index.php."
+ elog "NOTE that syweb expects a machine/*.rrd style directory"
+ elog "structure under /var/lib/symon/rrds."
+
+ webapp_pkg_postinst
+}