Mercurial > hg > portage
annotate www-apps/redaxo/redaxo-4.2.1.ebuild @ 348:3f5268b98b82
add ebuild for the shrewsoft VPN client
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Mon, 16 Sep 2013 16:19:24 +0200 |
parents | 0696f0fa8ee4 |
children |
rev | line source |
---|---|
181 | 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 | 4 |
5 DESCRIPTION="PHP-powered CMS application." | |
6 HOMEPAGE="http://www.redaxo.de/" | |
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 | 12 |
13 LICENSE="GPL" | |
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 | 16 RDEPEND="virtual/httpd-cgi" |
17 | |
18 need_php_httpd | |
19 | |
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 | 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 | |
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 | 39 src_install() { |
40 webapp_src_preinst | |
41 | |
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 | 44 cp -r . "${D}"${MY_HTDOCSDIR} |
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 | 53 for SFILES in ${SERVEROWNED}; do |
54 webapp_serverowned ${MY_HTDOCSDIR}/${SFILES} | |
55 done | |
181 | 56 |
57 webapp_src_install | |
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 } |