summaryrefslogtreecommitdiff
path: root/eclass
diff options
context:
space:
mode:
authorStuart Herbert <stuart@gentoo.org>2003-08-18 13:00:01 +0000
committerStuart Herbert <stuart@gentoo.org>2003-08-18 13:00:01 +0000
commitfa94a986507ee22c30e16d08ee3957a245fc8d0f (patch)
tree156fd93ab1b4c84181e75726bfa39155bd5f58e7 /eclass
parentnew version (diff)
downloadhistorical-fa94a986507ee22c30e16d08ee3957a245fc8d0f.tar.gz
historical-fa94a986507ee22c30e16d08ee3957a245fc8d0f.tar.bz2
historical-fa94a986507ee22c30e16d08ee3957a245fc8d0f.zip
Enhancement - bug #26133
Diffstat (limited to 'eclass')
-rw-r--r--eclass/webapp-apache.eclass13
1 files changed, 11 insertions, 2 deletions
diff --git a/eclass/webapp-apache.eclass b/eclass/webapp-apache.eclass
index 05ba52f4b592..afc6c419100c 100644
--- a/eclass/webapp-apache.eclass
+++ b/eclass/webapp-apache.eclass
@@ -1,6 +1,6 @@
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
-# $Header: /var/cvsroot/gentoo-x86/eclass/webapp-apache.eclass,v 1.7 2003/08/05 18:54:55 stuart Exp $
+# $Header: /var/cvsroot/gentoo-x86/eclass/webapp-apache.eclass,v 1.8 2003/08/18 13:00:01 stuart Exp $
#
# Author: Stuart Herbert <stuart@gentoo.org>
#
@@ -34,6 +34,8 @@ function webapp-apache-detect ()
fi
APACHECONF="/etc/apache${CONFVER}/conf/apache${CONFVER}.conf"
+ APACHECONF_COMMON="/etc/apache${CONFVER}/conf/commonapache${CONFVER}.conf"
+ APACHECONF_DIR="/etc/apache${CONFVER}/conf/"
WEBAPP_SERVER="Apache v${APACHEVER}"
}
@@ -43,6 +45,7 @@ function webapp-detect () {
webapp-apache-detect || return 1
webapp-determine-installowner
webapp-determine-htdocsdir
+ webapp-determine-cgibindir
}
function webapp-determine-htdocsdir ()
@@ -50,12 +53,18 @@ function webapp-determine-htdocsdir ()
webapp-determine-installowner
HTTPD_ROOT="`grep '^DocumentRoot' ${APACHECONF} | cut -d ' ' -f 2`"
- [ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="/home/httpd/htdocs"
+ [ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="/home/httpd/htdocs/"
keepdir "$HTTPD_ROOT"
fowners "$HTTPD_USER"."$HTTPD_GROUP" "$HTTPD_ROOT"
fperms 755 "$HTTPD_ROOT"
}
+function webapp-determine-cgibindir ()
+{
+ HTTPD_CGIBIN="`grep 'ScriptAlias /cgi-bin/' ${APACHECONF_COMMON} | cut -d ' ' -f 7`"
+ [ -z "${HTTPD_CGIBIN}" ] && HTTPD_CGIBIN="/home/httpd/cgi-bin/"
+}
+
function webapp-determine-installowner ()
{
HTTPD_USER="apache"