blob: 780b20fd92fc2a3c9cda06a9f4d0ca42f9954cdd (
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
53
54
55
56
57
58
59
60
61
62
63
64
|
# Copyright 1999-2017 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
EAPI=6
inherit webapp
DESCRIPTION="File sharing platform similar to dropbox"
HOMEPAGE="https://pydio.com/"
SRC_URI="https://download.pydio.com/pub/core/archives/${PN}-core-${PV}.tar.gz -> ${P}.tar.gz"
RESTRICTION="mirror"
LICENSE="AGPL-3"
KEYWORDS="~amd64 ~x86"
IUSE="+webdav"
DEPEND="webdav? ( dev-php/PEAR-HTTP_WebDAV_Client )"
RDEPEND="${DEPEND}
virtual/httpd-php
"
S="${WORKDIR}/${PN}-core-${PV}"
src_prepare() {
default
# Fix compatibility with Apache 2.4
while read htaccess ; do
LC_ALL=C sed -i \
-e 's/^[Dd]eny from all/Require all denied/' \
-e 's/^[Aa]llow from all/Require all granted/' \
-e '/^Order /d' \
"${htaccess}"
done < <(find "${S}" -name ".htaccess")
}
src_install() {
webapp_src_preinst
insinto "${MY_HTDOCSDIR}"
doins -r "${S}"/*
insinto "${MY_HTDOCSDIR}"/upgrade-scripts
doins "${FILESDIR}"/*.php
webapp_serverowned -R "${MY_HTDOCSDIR}"/data
webapp_configfile "${MY_HTDOCSDIR}/base.conf.php"
webapp_configfile "${MY_HTDOCSDIR}/conf/bootstrap_"{conf,context,repositories}".php"
webapp_configfile "${MY_HTDOCSDIR}/conf/mime.types"
webapp_configfile "${MY_HTDOCSDIR}/conf/extensions.conf.php"
# FIXME: does not fit eclass design
#webapp_sqlscript mysql "${MY_HTDOCSDIR}"/plugins/*/create.mysql
#webapp_sqlscript postgres "${MY_HTDOCSDIR}"/plugins/*/create.pgsql
webapp_sqlscript mysql "${FILESDIR}"/7.0.1.mysql 6.4
webapp_sqlscript mysql "${FILESDIR}"/7.0.2.mysql 7.0.1
webapp_sqlscript postgres "${FILESDIR}"/7.0.1.pgsql 6.4
webapp_postinst_txt en "${FILESDIR}"/postinst.en.txt
webapp_src_install
}
|