181
|
1
|
|
2 inherit webapp depend.php
|
|
3
|
|
4 DESCRIPTION="PHP-powered CMS application."
|
|
5 HOMEPAGE="http://www.redaxo.de/"
|
|
6
|
|
7 DOWNLOAD_NAME=`echo ${P} | tr '.' '_'`
|
|
8 DOWNLOAD_NAME=`echo ${DOWNLOAD_NAME} | sed -e 's/-//'`
|
|
9 SRC_URI="http://www.redaxo.de/files/${DOWNLOAD_NAME}.zip"
|
|
10
|
|
11 LICENSE="GPL"
|
|
12 KEYWORDS="~amd64 ~x86"
|
|
13 DEPEND=""
|
|
14 RDEPEND="virtual/httpd-cgi"
|
|
15
|
|
16 need_php_httpd
|
|
17
|
|
18 S="${WORKDIR}/${PN}"
|
|
19
|
|
20 pkg_setup() {
|
|
21 webapp_pkg_setup
|
|
22
|
|
23 if ! PHPCHECKNODIE="yes" require_php_with_any_use mysql ; then
|
|
24 eerror
|
|
25 eerror "${PHP_PKG} needs to be reinstalled with the mysql USE flag enabled."
|
|
26 die "Reinstall ${PHP_PKG} with the above-stated USE flags."
|
|
27 fi
|
|
28 }
|
|
29
|
|
30 src_install() {
|
|
31 webapp_src_preinst
|
|
32
|
|
33 # rm docs/INSTALL*
|
|
34 # local docs="docs/*"
|
|
35 # dodoc ${docs}
|
|
36 # rm -rf docs/
|
|
37
|
|
38 einfo "Installing application files."
|
|
39 cp -r . "${D}"${MY_HTDOCSDIR}
|
|
40 # touch "${D}"${MY_HTDOCSDIR}/.htaccess
|
|
41 # touch "${D}"${MY_HTDOCSDIR}/serendipity_config_local.inc.php
|
|
42
|
|
43 # keepdir ${MY_HTDOCSDIR}/archives/
|
|
44 # webapp_configfile ${MY_HTDOCSDIR}/serendipity_config_local.inc.php
|
|
45
|
|
46 # archives, templates_c and uploads need to be writable to PHP
|
|
47 # .htaccess and serendipity_config_local.inc.php need to be too
|
|
48 # plugins and templates need to be writable for spartacus support.
|
|
49 # local SERVEROWNED="serendipity_config_local.inc.php .htaccess archives plugins templates templates_c uploads"
|
|
50 # for SFILES in ${SERVEROWNED}; do
|
|
51 # webapp_serverowned ${MY_HTDOCSDIR}/${SFILES}
|
|
52 # done
|
|
53
|
|
54 webapp_src_install
|
|
55 }
|