Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 38861 Details for
Bug 43824
sandbox Access violation while emerging rackview 0.05
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
rackview-0.05.ebuild (edited ebuild)
rackview-0.05.ebuild (text/plain), 2.86 KB, created by
robertc96
on 2004-09-03 17:32:02 UTC
(
hide
)
Description:
rackview-0.05.ebuild (edited ebuild)
Filename:
MIME Type:
Creator:
robertc96
Created:
2004-09-03 17:32:02 UTC
Size:
2.86 KB
patch
obsolete
># Copyright 1999-2004 Gentoo Foundation ># 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.7 2004/06/24 21:36:26 agriffis Exp $ > >inherit perl-module >style=builder > >DESCRIPTION="tool for visualizing the layout of rack-mounted equipment" >HOMEPAGE="http://rackview.sourceforge.net/" >SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" > >LICENSE="Artistic" >SLOT="0" >KEYWORDS="x86" >IUSE="apache2 mysql" > >DEPEND="dev-lang/perl > dev-perl/GD > dev-perl/DBI > mysql? ( dev-db/mysql )" > >DOCS="ChangeLog README* doc/*" > >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" > > perl-module_src_install > > dodoc ${DOCS} > insinto /usr/share/doc/${PF}/sql > doins sql/* > > #Correct configfile > dodir /etc/${PN} > mv ${D}usr/etc/eidetic/* ${D}etc/${PN} > cd ${D}etc/${PN} > sed -e "s:eidetic:${PN}:" \ > -e "s:/home/www/site_html/images:${HTTPD_ROOT}:" \ > -e "s:images/rack_images:rack_images:" \ > -i ${PN}.conf || ewarn "Please check /etc/${PN}/${PN}.conf" > rm -fr ${D}usr/etc #Remove trash > > einfo "Installing example in ${HTTPD_ROOT}/${PN}" > cd ${S} > dodir ${HTTPD_ROOT}/${PN} > mv example/* ${D}${HTTPD_ROOT}/${PN} > mv ${D}usr/var/www/html/* ${D}${HTTPD_ROOT} > 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 \ > && cd ${D}${HTTPD_ROOT}/../cgi-bin \ > && sed -i -e "s:/var/www/html:${HTTPD_ROOT}:" \ > -e "s:eidetic:${PN}:" ${PN}.cgi \ > && chmod u+x ${PN}.cgi \ > || ewarn "Please copy (& check) ${PN}.cgi manually." > > #Script needs to change also > cd ${D}usr/bin > sed -i -e "s:eidetic:${PN}:" e${PN} \ > && chmod ugo+x e${PN} \ > || ewarn "Please check script 'e${PN}'." > > #Making sure HTTPD_USER owns all files > cd ${D} > chown -R ${HTTPD_USER}:${HTTPD_GROUP} * || ewarn "Check if ${HTTPD_USER} owns all files." >} > >pkg_postinst() { > 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." >}
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 Raw
Actions:
View
Attachments on
bug 43824
: 38861 |
51663