summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2002-11-15 01:10:17 +0000
committerMike Frysinger <vapier@gentoo.org>2002-11-15 01:10:17 +0000
commit2c7a4855d6690cd1d2bd38850f7638971efc44cc (patch)
tree133e322fcf0ecc80488552d4c8d9e88bc129c01e /net-analyzer
parentremoved trailing line (diff)
downloadhistorical-2c7a4855d6690cd1d2bd38850f7638971efc44cc.tar.gz
historical-2c7a4855d6690cd1d2bd38850f7638971efc44cc.tar.bz2
historical-2c7a4855d6690cd1d2bd38850f7638971efc44cc.zip
replaced hardcoding of apache path
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/cacti/ChangeLog5
-rw-r--r--net-analyzer/cacti/cacti-0.6.8a.ebuild9
2 files changed, 9 insertions, 5 deletions
diff --git a/net-analyzer/cacti/ChangeLog b/net-analyzer/cacti/ChangeLog
index 89ba85005cc3..bf10b061a552 100644
--- a/net-analyzer/cacti/ChangeLog
+++ b/net-analyzer/cacti/ChangeLog
@@ -1,8 +1,11 @@
# ChangeLog for net-analyzer/cacti
# Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/ChangeLog,v 1.1 2002/10/23 14:48:37 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/ChangeLog,v 1.2 2002/11/15 01:10:17 vapier Exp $
*cacti-0.6.8a (23 Oct 2002)
+ 14 Nov 2002; Mike Frysinger <vapier@gentoo.org> :
+ Replaced hardcoding of /home/httpd/htdocs with a grep of /etc/apache/conf/apache.conf
+
23 Oct 2002; Mike Frysinger <vapier@gentoo.org> :
Initial import. Ebuild submitted by me.
diff --git a/net-analyzer/cacti/cacti-0.6.8a.ebuild b/net-analyzer/cacti/cacti-0.6.8a.ebuild
index fb871828cd36..2d47eb0e8085 100644
--- a/net-analyzer/cacti/cacti-0.6.8a.ebuild
+++ b/net-analyzer/cacti/cacti-0.6.8a.ebuild
@@ -1,6 +1,6 @@
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/cacti-0.6.8a.ebuild,v 1.1 2002/10/23 14:48:37 vapier Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cacti/cacti-0.6.8a.ebuild,v 1.2 2002/11/15 01:10:17 vapier Exp $
DESCRIPTION="Cacti is a complete frondend to rrdtool"
HOMEPAGE="http://www.raxnet.net/products/cacti/"
@@ -10,6 +10,7 @@ IUSE="snmp"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~x86 ~ppc ~sparc ~sparc64 ~alpha"
+
DEPEND=""
RDEPEND="net-www/apache
snmp? ( net-analyzer/ucd-snmp )
@@ -17,9 +18,9 @@ RDEPEND="net-www/apache
dev-php/php
dev-php/mod_php"
-S="${WORKDIR}/${P}"
-
-INSTALL_DEST=/home/httpd/htdocs/cacti
+INSTALL_DEST="`grep '^DocumentRoot' /etc/apache/conf/apache.conf | cut -d\ -f2`"
+[ -z "${INSTALL_DEST}" ] && INSTALL_DEST="/home/httpd/htdocs"
+INSTALL_DEST="${INSTALL_DEST}/cacti"
src_install() {
dodoc docs/{CHANGELOG,CONTRIB,README}