diff options
author | Martin Holzer <mholzer@gentoo.org> | 2003-10-12 19:26:41 +0000 |
---|---|---|
committer | Martin Holzer <mholzer@gentoo.org> | 2003-10-12 19:26:41 +0000 |
commit | 46674fcf94576c7f11543a0f14b73f0d35601841 (patch) | |
tree | 6ba00c52759247ac4d40923be74344ace03bb034 /app-admin | |
parent | Version bumped. (diff) | |
download | gentoo-2-46674fcf94576c7f11543a0f14b73f0d35601841.tar.gz gentoo-2-46674fcf94576c7f11543a0f14b73f0d35601841.tar.bz2 gentoo-2-46674fcf94576c7f11543a0f14b73f0d35601841.zip |
Version bumped.
Diffstat (limited to 'app-admin')
-rw-r--r-- | app-admin/rackview/ChangeLog | 7 | ||||
-rw-r--r-- | app-admin/rackview/Manifest | 4 | ||||
-rw-r--r-- | app-admin/rackview/files/digest-rackview-0.05 | 1 | ||||
-rw-r--r-- | app-admin/rackview/rackview-0.05.ebuild | 93 |
4 files changed, 102 insertions, 3 deletions
diff --git a/app-admin/rackview/ChangeLog b/app-admin/rackview/ChangeLog index bd682dcd9531..d605bde4d9af 100644 --- a/app-admin/rackview/ChangeLog +++ b/app-admin/rackview/ChangeLog @@ -1,6 +1,11 @@ # 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.3 2003/06/11 20:51:31 msterret Exp $ +# $Header: /var/cvsroot/gentoo-x86/app-admin/rackview/ChangeLog,v 1.4 2003/10/12 19:26:36 mholzer Exp $ + +*rackview-0.05 (13 Oct 2003) + + 13 Oct 2003; Martin Holzer <mholzer@gentoo.org> rackview-0.05.ebuild: + Version bumped. 11 Jun 2003; <msterret@gentoo.org> rackview-0.04-r1.ebuild: fix Header diff --git a/app-admin/rackview/Manifest b/app-admin/rackview/Manifest index 5fd735ab971e..0ddacf3051d3 100644 --- a/app-admin/rackview/Manifest +++ b/app-admin/rackview/Manifest @@ -1,5 +1,5 @@ -MD5 2e091442df91770d6a7cfd6b26db4da7 ChangeLog 758 +MD5 eb0878c5a528698f8b609d04324b7e04 ChangeLog 757 MD5 7ca1eb46981d118b5c6c00d5414d4e9b rackview-0.04-r1.ebuild 3311 -MD5 4afdaebaa6490f44146d27f2ad2e10e2 rackview-0.05.ebuild 3056 +MD5 6ff472b21b100fa01d4aa0792c3e0793 rackview-0.05.ebuild 3052 MD5 76da7226792e224b1c67a6232833c650 files/digest-rackview-0.04-r1 66 MD5 6fdb382498c555fbba922d4a14ee953c files/digest-rackview-0.05 66 diff --git a/app-admin/rackview/files/digest-rackview-0.05 b/app-admin/rackview/files/digest-rackview-0.05 new file mode 100644 index 000000000000..9060b5caf228 --- /dev/null +++ b/app-admin/rackview/files/digest-rackview-0.05 @@ -0,0 +1 @@ +MD5 e5930ea4a4f6d8df47373d6ddcaf2424 rackview-0.05.tar.gz 1034131 diff --git a/app-admin/rackview/rackview-0.05.ebuild b/app-admin/rackview/rackview-0.05.ebuild new file mode 100644 index 000000000000..b5b5ef0882cb --- /dev/null +++ b/app-admin/rackview/rackview-0.05.ebuild @@ -0,0 +1,93 @@ +# 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.1 2003/10/12 19:26:36 mholzer Exp $ + +inherit perl-module + +DESCRIPTION="rackview is a tool for visualizing the layout of rack-mounted equipment." +SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" +HOMEPAGE="http://rackview.sf.net" + +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 + +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" + +src_install() { + + 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.orig \ + && cd ${D}${HTTPD_ROOT}/../cgi-bin \ + && sed -e "s:/var/www/html:${HTTPD_ROOT}:" \ + -e "s:eidetic:${PN}:" ${PN}.cgi.orig > ${PN}.cgi \ + && chmod u+x ${PN}.cgi \ + && rm ${PN}.cgi.orig \ + || ewarn "Please copy (& check) ${PN}.cgi manually." + + #Script needs to change also + cd ${D}usr/bin + cp erackview erackview.orig \ + && sed -e "s:eidetic:${PN}:" erackview.orig > e${PN} \ + && chmod ugo+x e${PN} \ + && rm erackview.orig \ + || 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() { + 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" + einfo "Now go to http://${HOSTNAME}/${PN}/ to test." +} |