diff options
author | Mike Frysinger <vapier@gentoo.org> | 2003-11-11 13:07:28 +0000 |
---|---|---|
committer | Mike Frysinger <vapier@gentoo.org> | 2003-11-11 13:07:28 +0000 |
commit | eec38317c31ae3b781cc39ab924ed6f1632ab3d6 (patch) | |
tree | 4b8f0ebca628a9c0968bf145a69a40d53e0f916f /app-admin/rackview | |
parent | touchups (diff) | |
download | historical-eec38317c31ae3b781cc39ab924ed6f1632ab3d6.tar.gz historical-eec38317c31ae3b781cc39ab924ed6f1632ab3d6.tar.bz2 historical-eec38317c31ae3b781cc39ab924ed6f1632ab3d6.zip |
touchups
Diffstat (limited to 'app-admin/rackview')
-rw-r--r-- | app-admin/rackview/rackview-0.05.ebuild | 44 |
1 files changed, 23 insertions, 21 deletions
diff --git a/app-admin/rackview/rackview-0.05.ebuild b/app-admin/rackview/rackview-0.05.ebuild index 7b00911843ea..6d8c3c10a8e7 100644 --- a/app-admin/rackview/rackview-0.05.ebuild +++ b/app-admin/rackview/rackview-0.05.ebuild @@ -1,43 +1,43 @@ # Copyright 1999-2003 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.2 2003/10/24 11:29:39 aliz Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/rackview/rackview-0.05.ebuild,v 1.3 2003/11/11 13:05:14 vapier Exp $ inherit perl-module -DESCRIPTION="rackview is a tool for visualizing the layout of rack-mounted equipment." +DESCRIPTION="tool for visualizing the layout of rack-mounted equipment" +HOMEPAGE="http://rackview.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" -HOMEPAGE="http://rackview.sf.net" +LICENSE="Artistic" SLOT="0" KEYWORDS="~x86" -LICENSE="Artistic" IUSE="apache2 mysql" + DEPEND="dev-lang/perl dev-perl/GD dev-perl/DBI mysql? ( dev-db/mysql )" -DOCS="ChangeLog COPYING README* doc/*" - -#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`" - -#In case of Apache2 +DOCS="ChangeLog COPYING README* doc/*" -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`" +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" src_install() { - perl-module_src_install dodoc ${DOCS} @@ -82,9 +82,11 @@ src_install() { } pkg_postinst() { - use mysql && einfo "To load data from mysql, change 'dat' in 'db'" \ - && einfo "in /etc/${PN}/${PN}.conf" \ - && einfo "SQL files for creating these tables are available" \ - && einfo "in /usr/share/doc/${PF}/sql" + if [ `use mysql` ] ; then + einfo "To load data from mysql, change 'dat' in 'db'" \ + einfo "in /etc/${PN}/${PN}.conf" \ + einfo "SQL files for creating these tables are available" \ + einfo "in /usr/share/doc/${PF}/sql" + fi einfo "Now go to http://${HOSTNAME}/${PN}/ to test." } |