# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit webapp DESCRIPTION="serverstats is a rrdtool harvester and a lightweight replacement for cacti" HOMEPAGE="http://www.webmasterpro.de/~ddanier/serverstats/" SRC_URI="http://www.webmasterpro.de/~ddanier/serverstats/downloads/${P}.tar.bz2" LICENSE="GPL-2" KEYWORDS="~x86" #IUSE="mysql iptables" IUSE="" RDEPEND=">=virtual/httpd-php-5 >=virtual/php-5 >=net-analyzer/rrdtool-1.2.10 #mysql? ( dev-db/mysql ) #iptables? ( net-firewall/iptables )" src_install() { webapp_src_preinst einfo "Installing main files" cp -r . "${D}/${MY_HTDOCSDIR}" einfo "Done" dodoc TODO docinto examples dodoc "${S}"/config.sample/* dodoc "${S}"/sources/traffic/iptables.sample exeinto "${MY_HTDOCSDIR}"/sources/traffic doexe sources/traffic/traffic.sh rm -rf "${D}/${MY_HTDOCSDIR}"/config.sample rm -f "${D}/${MY_HTDOCSDIR}"/sources/traffic/iptables.sample rm -f "${D}/${MY_HTDOCSDIR}"/sources/external/cacti/README rm -f "${D}/${MY_HTDOCSDIR}"/{INSTALL,LICENSE,TODO} webapp_serverowned "${MY_HTDOCSDIR}"/cache webapp_serverowned "${MY_HTDOCSDIR}"/graph # Documentation is currently MIA #webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt webapp_src_install }