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 | d297cf42d73ae6b5e9baa663ef3215185d77f639 (patch) | |
tree | bf91dd74ae0c81e0af77d0b31d2d32acf555591a /net-analyzer/syweb/syweb-0.58.ebuild | |
parent | Initial import from sunrise, bug #176635. Syweb splited into separate package... (diff) | |
download | gentoo-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)
Diffstat (limited to 'net-analyzer/syweb/syweb-0.58.ebuild')
-rw-r--r-- | net-analyzer/syweb/syweb-0.58.ebuild | 60 |
1 files changed, 60 insertions, 0 deletions
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 +} |