blob: a2655f92bacd4c4c14fc133590c6236aecd2f7bb (
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
|
# Copyright 1999-2011 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/eyeos/eyeos-2.5.ebuild,v 1.1 2011/05/23 08:36:57 voyageur Exp $
EAPI="4"
inherit depend.php webapp eutils
DESCRIPTION="AJAX web-based desktop environment"
HOMEPAGE="http://www.eyeos.org"
SRC_URI="mirror://sourceforge/eyeos/eyeos2/${P}.tar.gz"
LICENSE="AGPL-3"
KEYWORDS="~amd64 ~x86"
IUSE=""
DEPEND=""
need_httpd_cgi
need_php_httpd
# http://wiki.eyeos.org/EyeOS_Requirements
RDEPEND="dev-lang/php[curl,crypt,gd,json,mysql,mysqli,pdo,sharedmem,sqlite]"
S=${WORKDIR}
src_install() {
webapp_src_preinst
insinto "${MY_HTDOCSDIR}"
doins -r .
# Placeholder for first install
touch "${ED}/${MY_HTDOCSDIR}"/settings.php
webapp_configfile "${MY_HTDOCSDIR}"/settings.php
webapp_serverowned "${MY_HTDOCSDIR}"/settings.php
# Ugly, but eyeos needs write access in too many places
webapp_serverowned -R "${MY_HTDOCSDIR}"/eyeos/system
webapp_serverowned -R "${MY_HTDOCSDIR}"/eyeos/tmp
webapp_serverowned -R "${MY_HTDOCSDIR}"/eyeos/users
webapp_src_install
}
pkg_postinst() {
elog "To finish your install/upgrade, point your browser to the eyeOS installer at:"
elog " http://${VHOST_HOSTNAME}/${PN}/install/"
elog "Specific extensions may require additional packages (available or not in"
elog "portage), check the installer output"
webapp_pkg_postinst
}
|