annotate www-apps/redaxo/redaxo-4.2.1.ebuild @ 349:41783c4398c1

Automated merge with https://xanthippe.dyndns.org/hg/portage
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 16 Sep 2013 16:19:36 +0200
parents 0696f0fa8ee4
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
181
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1
183
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
2 EAPI=2
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
3 inherit webapp depend.php versionator
181
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 DESCRIPTION="PHP-powered CMS application."
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6 HOMEPAGE="http://www.redaxo.de/"
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7
183
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
8 # translate redaxo-0.0.0 to redaxo0_0_0
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
9 MY_PV=$(replace_all_version_separators '_')
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
10 MY_P=${PN}${MY_PV}
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
11 SRC_URI="http://www.redaxo.de/files/${MY_P}.zip"
181
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 LICENSE="GPL"
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 KEYWORDS="~amd64 ~x86"
185
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
15 DEPEND="app-arch/unzip"
181
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 RDEPEND="virtual/httpd-cgi"
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18 need_php_httpd
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20 pkg_setup() {
185
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
21 webapp_pkg_setup
181
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 if ! PHPCHECKNODIE="yes" require_php_with_any_use mysql ; then
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 eerror
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 eerror "${PHP_PKG} needs to be reinstalled with the mysql USE flag enabled."
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 die "Reinstall ${PHP_PKG} with the above-stated USE flags."
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 fi
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 }
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29
183
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
30 src_unpack() {
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
31 unpack ${A}
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
32
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
33 # clean up some cruft that comes as part of the install package
184
54b73709801b the ebuild works up to the install phase now. more testing has to be done on staging server
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 183
diff changeset
34 cd ${WORKDIR}/${MY_P}
183
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
35 find . -name .DS_Store -exec rm {} \;
185
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
36 remove_if_exists _lastchanges.txt
184
54b73709801b the ebuild works up to the install phase now. more testing has to be done on staging server
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 183
diff changeset
37 }
54b73709801b the ebuild works up to the install phase now. more testing has to be done on staging server
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 183
diff changeset
38
181
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 src_install() {
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40 webapp_src_preinst
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 einfo "Installing application files."
184
54b73709801b the ebuild works up to the install phase now. more testing has to be done on staging server
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 183
diff changeset
43 cd ${MY_P}
181
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 cp -r . "${D}"${MY_HTDOCSDIR}
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45
183
3cdcf4f4578c replace the version number using portage functions, fetch the source, unpack and clean up works
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 182
diff changeset
46 # .htaccess, index.php and the redaxo dir are part of the distro
185
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
47 local SERVEROWNED="index.php files files/_readme.txt files/addons \
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
48 redaxo redaxo/include/clang.inc.php redaxo/include/plugins.inc.php \
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
49 redaxo/include/addons.inc.php redaxo/include/master.inc.php \
186
0696f0fa8ee4 more file permission fixes
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 185
diff changeset
50 redaxo/include/generated redaxo/include/generated/* \
0696f0fa8ee4 more file permission fixes
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 185
diff changeset
51 redaxo/include/addons/* redaxo/include/addons/import_export/backup \
185
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
52 redaxo/include/addons/image_resize/config.inc.php"
182
75231bb27b1c work on the ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 181
diff changeset
53 for SFILES in ${SERVEROWNED}; do
75231bb27b1c work on the ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 181
diff changeset
54 webapp_serverowned ${MY_HTDOCSDIR}/${SFILES}
75231bb27b1c work on the ebuild
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 181
diff changeset
55 done
181
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57 webapp_src_install
75e5b218d321 add ebulid for redaxo
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58 }
185
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
59
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
60 webapp_pkg_postinst() {
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
61 einfo "This ebuild does not perform any autoinstall of the package"
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
62 einfo ""
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
63 einfo "This allows you to install redaxo directly into the top of"
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
64 einfo "your document root using:"
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
65 einfo "webapp-config -I -h localhost -u root redaxo ${PV}"
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
66 einfo ""
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
67 }
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
68
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
69 function remove_if_exists() {
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
70 if [ -f $1 ]; then
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
71 rm $1
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
72 fi
bf10d7d9cf43 redaxo ebuild is merge-able and can be installed via webapp-install
Dirk Olmes <dirk@xanthippe.ping.de>
parents: 184
diff changeset
73 }