diff options
Diffstat (limited to 'app-admin/rackview')
-rw-r--r-- | app-admin/rackview/ChangeLog | 6 | ||||
-rw-r--r-- | app-admin/rackview/rackview-0.04-r1.ebuild | 30 | ||||
-rw-r--r-- | app-admin/rackview/rackview-0.05.ebuild | 36 |
3 files changed, 38 insertions, 34 deletions
diff --git a/app-admin/rackview/ChangeLog b/app-admin/rackview/ChangeLog index d605bde4d9af..0aa1899edf06 100644 --- a/app-admin/rackview/ChangeLog +++ b/app-admin/rackview/ChangeLog @@ -1,6 +1,10 @@ # ChangeLog for app-admin/rackview # Copyright 2000-2003 Gentoo Technologies, Inc.; Distributed under the GPL v2 -# $Header: /var/cvsroot/gentoo-x86/app-admin/rackview/ChangeLog,v 1.4 2003/10/12 19:26:36 mholzer Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/rackview/ChangeLog,v 1.5 2004/01/06 11:59:20 robbat2 Exp $ + + 06 Jan 2004; Robin H. Johnson <robbat2@gentoo.org> rackview-0.04-r1.ebuild, + rackview-0.05.ebuild: + grep stuff and those variables should NOT be global *rackview-0.05 (13 Oct 2003) 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 diff --git a/app-admin/rackview/rackview-0.05.ebuild b/app-admin/rackview/rackview-0.05.ebuild index 6d8c3c10a8e7..d34650eb407b 100644 --- a/app-admin/rackview/rackview-0.05.ebuild +++ b/app-admin/rackview/rackview-0.05.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.05.ebuild,v 1.3 2003/11/11 13:05:14 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/rackview/rackview-0.05.ebuild,v 1.4 2004/01/06 11:59:20 robbat2 Exp $ inherit perl-module @@ -20,24 +20,24 @@ DEPEND="dev-lang/perl DOCS="ChangeLog COPYING README* doc/*" -if [ `use apache2` ] ; then - #In case of Apache - 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 - #In case of 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`" -fi +src_install() { + if [ `use apache2` ] ; then + #In case of Apache + 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 + #In case of 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`" + fi -# Else use defaults -[ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="/home/httpd/htdocs" -[ -z "${HTTPD_USER}" ] && HTTPD_USER="apache" -[ -z "${HTTPD_GROUP}" ] && HTTPD_GROUP="apache" + # Else use defaults + [ -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 dodoc ${DOCS} |