summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTiago Cunha <tcunha@gentoo.org>2009-12-01 18:31:23 +0000
committerTiago Cunha <tcunha@gentoo.org>2009-12-01 18:31:23 +0000
commitf4269a1046169859f661f501152cefe1238edf64 (patch)
treec0cdf4e6f34099ec39489f2b45d9879135d7e505 /net-analyzer/syweb
parentAutomated update of use.local.desc (diff)
downloadgentoo-2-f4269a1046169859f661f501152cefe1238edf64.tar.gz
gentoo-2-f4269a1046169859f661f501152cefe1238edf64.tar.bz2
gentoo-2-f4269a1046169859f661f501152cefe1238edf64.zip
- Version bump.
- Remove old. (Portage version: 2.1.6.13/cvs/Linux x86_64)
Diffstat (limited to 'net-analyzer/syweb')
-rw-r--r--net-analyzer/syweb/ChangeLog13
-rw-r--r--net-analyzer/syweb/files/postinstall-en.txt7
-rw-r--r--net-analyzer/syweb/files/reconfig20
-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/syweb-0.58-r1.ebuild49
-rw-r--r--net-analyzer/syweb/syweb-0.59.ebuild44
8 files changed, 78 insertions, 124 deletions
diff --git a/net-analyzer/syweb/ChangeLog b/net-analyzer/syweb/ChangeLog
index a64595fc4404..c5a58fbe4d90 100644
--- a/net-analyzer/syweb/ChangeLog
+++ b/net-analyzer/syweb/ChangeLog
@@ -1,6 +1,15 @@
# 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.3 2008/12/13 17:43:49 tcunha Exp $
+# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/syweb/ChangeLog,v 1.4 2009/12/01 18:31:23 tcunha Exp $
+
+*syweb-0.59 (01 Dec 2009)
+
+ 01 Dec 2009; Tiago Cunha <tcunha@gentoo.org> -syweb-0.58-r1.ebuild,
+ +syweb-0.59.ebuild, files/postinstall-en.txt, +files/reconfig,
+ -files/syweb-class_lexer.inc.patch, -files/syweb-setup.inc.patch,
+ -files/syweb-total_firewall.layout.patch:
+ - Version bump.
+ - Remove old.
*syweb-0.58-r1 (13 Dec 2008)
diff --git a/net-analyzer/syweb/files/postinstall-en.txt b/net-analyzer/syweb/files/postinstall-en.txt
index 7b369e900a1e..291d66d4e381 100644
--- a/net-analyzer/syweb/files/postinstall-en.txt
+++ b/net-analyzer/syweb/files/postinstall-en.txt
@@ -1,9 +1,8 @@
Test your syweb installation by pointing your browser to the URL
http://${VHOST_HOSTNAME}/${VHOST_APPDIR}/configtest.php
-Customize syweb by editing the file ${MY_INSTALLDIR}/setup.inc.
-
If you don't want any user interaction, move index_noui.php to index.php.
-NOTE that syweb expects a machine/*.rrd style directory structure under
-/var/lib/symon/rrds.
+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/files/syweb-class_lexer.inc.patch b/net-analyzer/syweb/files/syweb-class_lexer.inc.patch
deleted file mode 100644
index 425e9f4b18f8..000000000000
--- a/net-analyzer/syweb/files/syweb-class_lexer.inc.patch
+++ /dev/null
@@ -1,14 +0,0 @@
-# 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
deleted file mode 100644
index 578939736061..000000000000
--- a/net-analyzer/syweb/files/syweb-setup.inc.patch
+++ /dev/null
@@ -1,25 +0,0 @@
-# Rename directories to reflect the changes from the ebuild and the
-# configuration files.
-
---- syweb/htdocs/syweb/setup.inc.orig 2008-12-13 12:48:28.165799500 +0000
-+++ syweb/htdocs/syweb/setup.inc 2008-12-13 12:50:09.972014770 +0000
-@@ -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/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
deleted file mode 100644
index 75c449fc08ea..000000000000
--- a/net-analyzer/syweb/files/syweb-total_firewall.layout.patch
+++ /dev/null
@@ -1,30 +0,0 @@
-# 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/syweb-0.58-r1.ebuild b/net-analyzer/syweb/syweb-0.58-r1.ebuild
deleted file mode 100644
index bb1b6f9220ec..000000000000
--- a/net-analyzer/syweb/syweb-0.58-r1.ebuild
+++ /dev/null
@@ -1,49 +0,0 @@
-# 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-r1.ebuild,v 1.1 2008/12/13 17:43:49 tcunha 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 \
- "${FILESDIR}"/${PN}-setup.inc.patch \
- "${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_HOSTROOTDIR}"/${PN}/cache
- keepdir "${MY_HTDOCSDIR}"/layouts
- webapp_serverowned "${MY_HOSTROOTDIR}"/${PN}/cache
- insinto "${MY_HTDOCSDIR}"
- doins -r "${WORKDIR}"/syweb/htdocs/syweb/* || die "doins failed"
- webapp_configfile "${MY_HTDOCSDIR}"/setup.inc
- webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
-
- webapp_src_install
-}
diff --git a/net-analyzer/syweb/syweb-0.59.ebuild b/net-analyzer/syweb/syweb-0.59.ebuild
new file mode 100644
index 000000000000..0ee80309b166
--- /dev/null
+++ b/net-analyzer/syweb/syweb-0.59.ebuild
@@ -0,0 +1,44 @@
+# Copyright 1999-2009 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/syweb/syweb-0.59.ebuild,v 1.1 2009/12/01 18:31:23 tcunha Exp $
+
+WEBAPP_MANUAL_SLOT="yes"
+
+inherit depend.php 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"
+IUSE=""
+
+DEPEND=""
+RDEPEND="net-analyzer/rrdtool"
+
+need_httpd_cgi
+need_php_httpd
+
+S=${WORKDIR}/${PN}
+
+src_install() {
+ webapp_src_preinst
+
+ dodoc CHANGELOG README || die "dodoc failed"
+ docinto layouts
+ dodoc symon/*.layout || die "dodoc layouts failed"
+
+ dodir "${MY_HOSTROOTDIR}"/syweb/cache
+ insinto "${MY_HOSTROOTDIR}"/syweb
+ doins symon/hifn_test.layout || die "doins hifn_test.layout failed"
+ webapp_serverowned "${MY_HOSTROOTDIR}"/syweb/cache
+ insinto "${MY_HTDOCSDIR}"
+ doins -r htdocs/syweb/* || die "doins htdocs failed"
+ webapp_configfile "${MY_HTDOCSDIR}"/setup.inc
+ webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
+ webapp_hook_script "${FILESDIR}"/reconfig
+
+ webapp_src_install
+}