summaryrefslogtreecommitdiff
blob: 45f8265e28d1b634c0ed8cac0d83f38731619740 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
# 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_rc1.ebuild,v 1.2 2002/11/22 22:48:59 mholzer Exp $


MY_PN=phpMyAdmin

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"
# 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 ${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
}