diff options
author | Robin H. Johnson <robbat2@gentoo.org> | 2004-01-06 11:59:20 +0000 |
---|---|---|
committer | Robin H. Johnson <robbat2@gentoo.org> | 2004-01-06 11:59:20 +0000 |
commit | e183c89e4e059143343c42e9777184217338c97d (patch) | |
tree | feb8c224fcc290a8c9f1d11e4e5dc2744171e6f8 /app-admin/rackview/rackview-0.04-r1.ebuild | |
parent | Fixed the portage calls to actually use the path for portage's modules. Added... (diff) | |
download | gentoo-2-e183c89e4e059143343c42e9777184217338c97d.tar.gz gentoo-2-e183c89e4e059143343c42e9777184217338c97d.tar.bz2 gentoo-2-e183c89e4e059143343c42e9777184217338c97d.zip |
grep stuff and those variables should NOT be global
Diffstat (limited to 'app-admin/rackview/rackview-0.04-r1.ebuild')
-rw-r--r-- | app-admin/rackview/rackview-0.04-r1.ebuild | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/app-admin/rackview/rackview-0.04-r1.ebuild b/app-admin/rackview/rackview-0.04-r1.ebuild index df608891e950..bd77bf469300 100644 --- a/app-admin/rackview/rackview-0.04-r1.ebuild +++ b/app-admin/rackview/rackview-0.04-r1.ebuild @@ -1,6 +1,6 @@ -# Copyright 1999-2003 Gentoo Technologies, Inc. +# Copyright 1999-2004 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/rackview/rackview-0.04-r1.ebuild,v 1.4 2003/10/24 11:29:39 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/rackview/rackview-0.04-r1.ebuild,v 1.5 2004/01/06 11:59:20 robbat2 Exp $ inherit perl-module @@ -18,25 +18,25 @@ DEPEND="dev-lang/perl mysql? ( dev-db/mysql )" DOCS="ChangeLog COPYING README* doc/*" -#In case of Apache +src_install() { + #In case of Apache -use apache2 || HTTPD_ROOT="`grep '^DocumentRoot' /etc/apache/conf/apache.conf | cut -d\ -f2`" \ - || HTTPD_USER="`grep '^User' /etc/apache/conf/commonapache.conf | cut -d \ -f2`" \ - || HTTPD_GROUP="`grep '^Group' /etc/apache/conf/commonapache.conf | cut -d \ -f2`" + use apache2 || HTTPD_ROOT="`grep '^DocumentRoot' /etc/apache/conf/apache.conf | cut -d\ -f2`" \ + || HTTPD_USER="`grep '^User' /etc/apache/conf/commonapache.conf | cut -d \ -f2`" \ + || HTTPD_GROUP="`grep '^Group' /etc/apache/conf/commonapache.conf | cut -d \ -f2`" -#In case of Apache2 + #In case of Apache2 -use apache2 && HTTPD_ROOT="`grep '^DocumentRoot' /etc/apache2/conf/apache2.conf | cut -d\ -f2`" \ - && HTTPD_USER="`grep '^User' /etc/apache2/conf/commonapache2.conf | cut -d \ -f2`" \ - && HTTPD_GROUP="`grep '^Group' /etc/apache2/conf/commonapache2.conf | cut -d \ -f2`" + use apache2 && HTTPD_ROOT="`grep '^DocumentRoot' /etc/apache2/conf/apache2.conf | cut -d\ -f2`" \ + && HTTPD_USER="`grep '^User' /etc/apache2/conf/commonapache2.conf | cut -d \ -f2`" \ + && HTTPD_GROUP="`grep '^Group' /etc/apache2/conf/commonapache2.conf | cut -d \ -f2`" -# Else use defaults + # Else use defaults -[ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="/home/httpd/htdocs" -[ -z "${HTTPD_USER}" ] && HTTPD_USER="apache" -[ -z "${HTTPD_GROUP}" ] && HTTPD_GROUP="apache" + [ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="/home/httpd/htdocs" + [ -z "${HTTPD_USER}" ] && HTTPD_USER="apache" + [ -z "${HTTPD_GROUP}" ] && HTTPD_GROUP="apache" -src_install() { perl-module_src_install |