diff options
author | Peter Volkov <pva@gentoo.org> | 2008-08-19 07:03:01 +0000 |
---|---|---|
committer | Peter Volkov <pva@gentoo.org> | 2008-08-19 07:03:01 +0000 |
commit | 78eef1b74a92607dade644ab648bf2538ee7dd9c (patch) | |
tree | f6c10e8336cf1fad74331f698be87d08285e4269 /net-analyzer/syweb | |
parent | Initial import from sunrise, bug #176635. Syweb splited into separate package... (diff) | |
download | historical-78eef1b74a92607dade644ab648bf2538ee7dd9c.tar.gz historical-78eef1b74a92607dade644ab648bf2538ee7dd9c.tar.bz2 historical-78eef1b74a92607dade644ab648bf2538ee7dd9c.zip |
Initial import. Separated out from symon.
Package-Manager: portage-2.2_rc8/cvs/Linux 2.6.22-ovz005 i686
Diffstat (limited to 'net-analyzer/syweb')
-rw-r--r-- | net-analyzer/syweb/ChangeLog | 12 | ||||
-rw-r--r-- | net-analyzer/syweb/files/syweb-class_lexer.inc.patch | 14 | ||||
-rw-r--r-- | net-analyzer/syweb/files/syweb-setup.inc.patch | 25 | ||||
-rw-r--r-- | net-analyzer/syweb/files/syweb-total_firewall.layout.patch | 30 | ||||
-rw-r--r-- | net-analyzer/syweb/metadata.xml | 9 | ||||
-rw-r--r-- | net-analyzer/syweb/syweb-0.58.ebuild | 60 |
6 files changed, 150 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/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 +} |