summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMartin Holzer <mholzer@gentoo.org>2003-11-17 21:04:36 +0000
committerMartin Holzer <mholzer@gentoo.org>2003-11-17 21:04:36 +0000
commitd929f028a7c07d63b8761a1c6c1ad6516e9cb8c3 (patch)
treef10b3965ce711a296e733d246bff0d15bca7bd2e /net-analyzer/cacti
parentUpdated manifest. (diff)
downloadhistorical-d929f028a7c07d63b8761a1c6c1ad6516e9cb8c3.tar.gz
historical-d929f028a7c07d63b8761a1c6c1ad6516e9cb8c3.tar.bz2
historical-d929f028a7c07d63b8761a1c6c1ad6516e9cb8c3.zip
adding webapps-apache.eclass
Diffstat (limited to 'net-analyzer/cacti')
-rw-r--r--net-analyzer/cacti/ChangeLog5
-rw-r--r--net-analyzer/cacti/Manifest10
-rw-r--r--net-analyzer/cacti/cacti-0.8.3a.ebuild23
3 files changed, 25 insertions, 13 deletions
diff --git a/net-analyzer/cacti/ChangeLog b/net-analyzer/cacti/ChangeLog
index d98ffc8ac872..b15c23f381f1 100644
--- a/net-analyzer/cacti/ChangeLog
+++ b/net-analyzer/cacti/ChangeLog
@@ -1,6 +1,9 @@
# ChangeLog for net-analyzer/cacti
# Copyright 2002-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/ChangeLog,v 1.14 2003/09/23 17:01:13 mholzer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/ChangeLog,v 1.15 2003/11/17 21:04:30 mholzer Exp $
+
+ 17 Nov 2003; Martin Holzer <mholzer@gentoo.org> cacti-0.8.3a.ebuild:
+ adding webapps-apache.eclass
23 Sep 2003; Martin Holzer <mholzer@gentoo.org> cacti-0.6.8a.ebuild,
cacti-0.8.3.ebuild, cacti-0.8.3a.ebuild:
diff --git a/net-analyzer/cacti/Manifest b/net-analyzer/cacti/Manifest
index 945c79a316cf..541d52e3711a 100644
--- a/net-analyzer/cacti/Manifest
+++ b/net-analyzer/cacti/Manifest
@@ -1,7 +1,7 @@
-MD5 381882ca083a8b1f4ecc30a381451c75 files/digest-cacti-0.8.3 63
+MD5 bf2115e57ac4e6b87c52b72a244006c5 ChangeLog 1995
+MD5 2a9c9a8598f1bdac6e2a7c5817621012 cacti-0.6.8a.ebuild 1491
+MD5 10970d853f83f5affae40369fea6b134 cacti-0.8.3.ebuild 4057
+MD5 559fcab1f357716b87917761265d8a20 cacti-0.8.3a.ebuild 4195
MD5 36cff775a40a01ca080d9b290109a795 files/digest-cacti-0.6.8a 64
+MD5 381882ca083a8b1f4ecc30a381451c75 files/digest-cacti-0.8.3 63
MD5 68b23916512df61b699d43aa9f7d25a5 files/digest-cacti-0.8.3a 64
-MD5 10970d853f83f5affae40369fea6b134 cacti-0.8.3.ebuild 4057
-MD5 0127c161cd50cb2130de92a8d9ad37e6 cacti-0.8.3a.ebuild 4058
-MD5 2a9c9a8598f1bdac6e2a7c5817621012 cacti-0.6.8a.ebuild 1491
-MD5 ba9ccaa2c6de3a1a555eb249d5233c66 ChangeLog 1892
diff --git a/net-analyzer/cacti/cacti-0.8.3a.ebuild b/net-analyzer/cacti/cacti-0.8.3a.ebuild
index 84846d74c656..060234822c85 100644
--- a/net-analyzer/cacti/cacti-0.8.3a.ebuild
+++ b/net-analyzer/cacti/cacti-0.8.3a.ebuild
@@ -1,8 +1,9 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/cacti-0.8.3a.ebuild,v 1.3 2003/09/23 17:01:13 mholzer Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/cacti-0.8.3a.ebuild,v 1.4 2003/11/17 21:04:31 mholzer Exp $
inherit eutils
+inherit webapp-apache
DESCRIPTION="Cacti is a complete frondend to rrdtool"
HOMEPAGE="http://www.raxnet.net/products/cacti/"
@@ -21,12 +22,21 @@ RDEPEND="net-www/apache
dev-php/php
dev-php/mod_php"
-export HTTPD_ROOT=/home/httpd/htdocs
-export HTTPD_USER=apache
-export HTTPD_GROUP=apache
-export INSTALL_DEST=${HTTPD_ROOT}/cacti
+webapp-detect || NO_WEBSERVER=1
+
+HTTPD_USER=apache
+HTTPD_GROUP=apache
+
+pkg_setup() {
+ webapp-pkg_setup "${NO_WEBSERVER}"
+ einfo "Installing into ${ROOT}${HTTPD_ROOT}."
+}
src_install() {
+ local DocumentRoot=${HTTPD_ROOT}
+ local destdir=${DocumentRoot}/${PN}
+ dodir ${destdir}
+
dohtml docs/{INSTALL,UPGRADE}.htm
dodoc docs/{CHANGELOG,CONTRIB}
dodoc LICENSE
@@ -39,10 +49,9 @@ src_install() {
rm -fr docs
rm -rf cactid
- dodir ${INSTALL_DEST}
edos2unix `find -type f -name '*.php'`
chown -R ${HTTPD_USER}.${HTTPD_GROUP} *
- mv * ${D}/${INSTALL_DEST}/
+ cp -r . ${D}/${HTTPD_ROOT}/${PN}
}
pkg_postinst() {