diff options
Diffstat (limited to 'dev-db/phpmyadmin/phpmyadmin-2.2.6.ebuild')
-rw-r--r-- | dev-db/phpmyadmin/phpmyadmin-2.2.6.ebuild | 24 |
1 files changed, 14 insertions, 10 deletions
diff --git a/dev-db/phpmyadmin/phpmyadmin-2.2.6.ebuild b/dev-db/phpmyadmin/phpmyadmin-2.2.6.ebuild index 65aade531f2a..d3322172faf5 100644 --- a/dev-db/phpmyadmin/phpmyadmin-2.2.6.ebuild +++ b/dev-db/phpmyadmin/phpmyadmin-2.2.6.ebuild @@ -1,6 +1,6 @@ # Copyright 1999-2002 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/dev-db/phpmyadmin/phpmyadmin-2.2.6.ebuild,v 1.6 2002/10/04 05:09:29 vapier Exp $ +# $Header: /var/cvsroot/gentoo-x86/dev-db/phpmyadmin/phpmyadmin-2.2.6.ebuild,v 1.7 2002/11/14 18:54:26 vapier Exp $ MY_PN=phpMyAdmin @@ -8,32 +8,36 @@ S=${WORKDIR}/${MY_PN}-${PV} DESCRIPTION="Web-based administration for MySQL database in php" SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}-php.tar.bz2" HOMEPAGE="http://phpmyadmin.sourceforge.net/" + LICENSE="GPL-2" SLOT="0" -DEPEND=">=net-www/apache-1.3.24-r1 >=dev-db/mysql-3.23.38 >=dev-php/mod_php-4.1.2-r5" - # only known to work on x86... can people test on other platforms? KEYWORDS="x86" +DEPEND=">=net-www/apache-1.3.24-r1 >=dev-db/mysql-3.23.38 >=dev-php/mod_php-4.1.2-r5" + +APACHE_ROOT="`grep '^DocumentRoot' /etc/apache/conf/apache.conf | cut -d\ -f2`" +[ -z "${APACHE_ROOT}" ] && APACHE_ROOT="/home/httpd/htdocs" + src_compile() { :; } src_install () { - insinto /home/httpd/htdocs/phpmyadmin + insinto ${APACHE_ROOT}/phpmyadmin doins *.{php,html} - insinto /home/httpd/htdocs/phpmyadmin/images + insinto ${APACHE_ROOT}/phpmyadmin/images doins images/*.{gif,png} - insinto /home/httpd/htdocs/phpmyadmin/scripts + insinto ${APACHE_ROOT}/phpmyadmin/scripts doins scripts/*.sh - insinto /home/httpd/htdocs/phpmyadmin/lang + insinto ${APACHE_ROOT}/phpmyadmin/lang doins lang/*.{php,sh} - insinto /home/httpd/htdocs/phpmyadmin/libraries + insinto ${APACHE_ROOT}/phpmyadmin/libraries doins libraries/*.{php,js} - insinto /home/httpd/htdocs/phpmyadmin/libraries/auth + insinto ${APACHE_ROOT}/phpmyadmin/libraries/auth doins libraries/auth/*.php dodoc ANNOUNCE.txt CREDITS ChangeLog TODO Documentation.{txt,html} \ @@ -42,6 +46,6 @@ src_install () { pkg_postinst() { einfo - einfo "Make sure you edit /home/httpd/htdocs/phpmyadmin/config.inc.php" + einfo "Make sure you edit ${APACHE_ROOT}/phpmyadmin/config.inc.php" einfo } |