diff options
author | Ryan Phillips <rphillips@gentoo.org> | 2002-12-14 23:35:07 +0000 |
---|---|---|
committer | Ryan Phillips <rphillips@gentoo.org> | 2002-12-14 23:35:07 +0000 |
commit | 7872ebc5fb378ad3cc1e4fe884266fc13a8e694a (patch) | |
tree | ed71e20c780077a8c4944babfe08ef44c838fc9e /dev-db/phpmyadmin/phpmyadmin-2.3.3.ebuild | |
parent | keyworded ppc (diff) | |
download | historical-7872ebc5fb378ad3cc1e4fe884266fc13a8e694a.tar.gz historical-7872ebc5fb378ad3cc1e4fe884266fc13a8e694a.tar.bz2 historical-7872ebc5fb378ad3cc1e4fe884266fc13a8e694a.zip |
Ebuild fixes submitted by Quequero. Fixes #11990
Diffstat (limited to 'dev-db/phpmyadmin/phpmyadmin-2.3.3.ebuild')
-rw-r--r-- | dev-db/phpmyadmin/phpmyadmin-2.3.3.ebuild | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/dev-db/phpmyadmin/phpmyadmin-2.3.3.ebuild b/dev-db/phpmyadmin/phpmyadmin-2.3.3.ebuild new file mode 100644 index 000000000000..a4ab6eb4c33b --- /dev/null +++ b/dev-db/phpmyadmin/phpmyadmin-2.3.3.ebuild @@ -0,0 +1,66 @@ +# 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.3.3.ebuild,v 1.1 2002/12/14 23:35:07 rphillips Exp $ + +MY_PN=phpMyAdmin + +S=${WORKDIR}/${MY_PN}-${PV}pl1 +DESCRIPTION="Web-based administration for MySQL database in php" +SRC_URI="http://umn.dl.sourceforge.net/sourceforge/phpmyadmin/${MY_PN}-${PV}pl1-php.tar.bz2" +HOMEPAGE="http://phpmyadmin.sourceforge.net/" + +LICENSE="GPL-2" +SLOT="0" +# 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" + + +# FIX- Plz check if path of config file (/etc/apache2/conf/apache2.conf) +# is correct because i'm not using apache2 now, thanx - Quequero + +APACHE_ROOT="`grep '^DocumentRoot' /etc/apache/conf/apache.conf | cut -d\ -f2`" ; +[ -z "${APACHE_ROOT}" ] && "`grep '^DocumentRoot' /etc/apache2/conf/apache2.conf | cut -d\ -f2`" ; +[ -z "${APACHE_ROOT}" ] && APACHE_ROOT="/home/httpd/htdocs" + +src_compile() { :; } + +src_install () { + cd ${S} + cp config.inc.php config.inc.php.orig + + # We set these two variables so myphpadmin is able to run even if no one configured config.inc.php + # - Quequero + sed -e "s:PmaAbsoluteUri'] = '':PmaAbsoluteUri'] = 'http\://localhost/phpmyadmin/':" \ + -e "s:auth_type'] = 'config':auth_type'] = 'http':" \ + config.inc.php.orig > config.inc.php + + insinto ${APACHE_ROOT}/phpmyadmin + doins *.{php,html} + + insinto ${APACHE_ROOT}/phpmyadmin/images + doins images/*.{gif,png} + + insinto ${APACHE_ROOT}/phpmyadmin/scripts + doins scripts/*.sh + + insinto ${APACHE_ROOT}/phpmyadmin/lang + doins lang/*.{php,sh} + + insinto ${APACHE_ROOT}/phpmyadmin/libraries + doins libraries/*.{php,js} + + insinto ${APACHE_ROOT}/phpmyadmin/libraries/auth + doins libraries/auth/*.php + + dodoc ANNOUNCE.txt CREDITS ChangeLog TODO Documentation.{txt,html} \ + INSTALL LICENSE RELEASE-DATE* +} + +pkg_postinst() { + einfo + einfo "Make sure you edit ${APACHE_ROOT}/phpmyadmin/config.inc.php" + einfo "Then point your browser to http://<www.your-host.com>/<your-install-dir>/index.php" + einfo +} |