summaryrefslogtreecommitdiff
blob: 7106ffc836a10f2271b976ff96f9a9e166f57bd8 (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
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit webapp depend.php

DESCRIPTION="phpMyProxy is a web-based proxy script in PHP"
HOMEPAGE="http://www.phpmyproxy.com/"
# Upstream hosts source files as an attachment in a _password protected forum_
SRC_URI="http://omploader.org/vejZx/${P/-/_}.zip"

LICENSE="GPL-3"
KEYWORDS="~x86"
IUSE=""

DEPEND="app-arch/unzip
	dev-lang/php[curl]"
RDEPEND=""

S=${WORKDIR}/${P/-/_}

need_php_httpd
need_httpd_cgi

src_install() {
	webapp_src_preinst

	dodoc README.txt TODO.txt CHANGELOG.txt || die "Cannot copy documentation"
	rm -f README.txt TODO.txt CHANGELOG.txt UPGRADE.txt \
		|| die "Cannot delete copied documentattion"

	insinto "${MY_HTDOCSDIR}"
	doins -r .  || die "Cannot copy program files"
	keepdir "${MY_HTDOCSDIR}"/cookies || die "Cannot create cookies directory"

	webapp_serverowned "${MY_HTDOCSDIR}"/cookies
	webapp_serverowned "${MY_HTDOCSDIR}"/curl_log.txt

	webapp_configfile "${MY_HTDOCSDIR}"/proxy.config.php

	#webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
	#webapp_postupgrade_txt en "${FILESDIR}"/postupgrade-en.txt

	webapp_src_install
}