Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 16951 Details for
Bug 27774
Patch to make rackview use the webapp-apache eclass.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
rackview.patch
rackview.patch (text/plain), 2.36 KB, created by
Ian Leitch (RETIRED)
on 2003-09-02 08:22:56 UTC
(
hide
)
Description:
rackview.patch
Filename:
MIME Type:
Creator:
Ian Leitch (RETIRED)
Created:
2003-09-02 08:22:56 UTC
Size:
2.36 KB
patch
obsolete
>--- rackview-0.04-r1.ebuild.orig 2003-09-02 17:22:42.772417648 +0100 >+++ rackview-0.04-r1.ebuild 2003-09-02 17:34:29.189026000 +0100 >@@ -3,6 +3,7 @@ > # $Header: /home/cvsroot/gentoo-x86/app-admin/rackview/rackview-0.04-r1.ebuild,v 1.2 2003/06/11 20:51:32 msterret Exp $ > > inherit perl-module >+inherit webapp-apache > > DESCRIPTION="rackview is a tool for visualizing the layout of rack-mounted equipment. The purpose of this tool is to assist in planning and tracking of hardware changes to racks in a data center, and to provide a host-oriented interface into other database tools." > SRC_URI="mirror://sourceforge/rackview/rackview-${PV}.tar.gz" >@@ -18,23 +19,21 @@ > mysql? ( dev-db/mysql )" > DOCS="ChangeLog COPYING README* doc/*" > >-#In case of Apache >+webapp-detect || NO_WEBSERVER=1 > >-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`" >+pkg_setup() { >+ webapp-pkg_setup "${NO_WEBSERVER}" > >-#In case of Apache2 >+ if [ -d ${HTTPD_ROOT}/${PN} ] ; then >+ echo "" >+ eerror "${PN} directory detected in ${HTTPD_ROOT}." >+ eerror "You must unmerge your older version first," >+ eerror "and remove the directory before continuing." >+ die "Will not overwrite previous installation." >+ fi > >-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 >- >-[ -z "${HTTPD_ROOT}" ] && HTTPD_ROOT="/home/httpd/htdocs" >-[ -z "${HTTPD_USER}" ] && HTTPD_USER="apache" >-[ -z "${HTTPD_GROUP}" ] && HTTPD_GROUP="apache" >+ einfo "Installing into ${HTTPD_ROOT}." >+} > > src_install() { > >@@ -62,9 +61,9 @@ > rm -fr ${D}usr/var #Remove trash > > #Install .cgi >- dodir ${HTTPD_ROOT}/../cgi-bin >- cp cgi-bin/rackview.cgi ${D}${HTTPD_ROOT}/../cgi-bin/${PN}.cgi.orig \ >- && cd ${D}${HTTPD_ROOT}/../cgi-bin \ >+ dodir ${HTTPD_CGIBIN} >+ cp cgi-bin/rackview.cgi ${D}${HTTPD_CGIBIN}/${PN}.cgi.orig \ >+ && cd ${D}${HTTPD_CGIBIN} \ > && sed -e "s:/var/www/html:${HTTPD_ROOT}:" \ > -e "s:eidetic:${PN}:" ${PN}.cgi.orig > ${PN}.cgi \ > && chmod u+x ${PN}.cgi \
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 27774
: 16951