blob: f4c97f6df445f66df3fd816b565c70ccf83db879 (
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
|
# Copyright 1999-2002 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/dev-db/phppgadmin/phppgadmin-2.4.1-r1.ebuild,v 1.8 2002/11/15 00:49:32 vapier Exp $
MY_PN=phpPgAdmin
MY_PV="`echo ${PV} | sed -e 's:\.:-:g'`"
S=${WORKDIR}/${MY_PN}
DESCRIPTION="Web-based administration for Postgres database in php"
SRC_URI="mirror://sourceforge/${PN}/${MY_PN}_${MY_PV}.tar.bz2"
HOMEPAGE="http://phppgadmin.sourceforge.net/"
LICENSE="GPL-2"
KEYWORDS="x86 ppc"
SLOT="0"
DEPEND=">=net-www/apache-1.3.24-r1
>=dev-db/postgresql-7.0.3-r3
>=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}/phppgadmin
doins *.{php,html,js,sh,php-dist}
insinto ${APACHE_ROOT}/phppgadmin/images
doins images/*.gif
dodoc BUGS ChangeLog DEVELOPERS Documentation.html INSTALL \
README TODO
}
pkg_postinst() {
einfo
einfo "Make sure you edit ${APACHE_ROOT}/phppgadmin/config.inc.php"
einfo
}
|