annotate www-apps/serendipity/serendipity-1.5.1.ebuild @ 339:60459a8f4bd6

pptp ebuild that includes some stability patches from redhat
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 11 Jul 2012 13:20:47 +0200
parents 8cbe00fe8140
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
179
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # Copyright 1999-2007 Gentoo Foundation
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 # $Header: $
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 inherit webapp depend.php
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 DESCRIPTION="PHP-powered, flexible blogging/CMS application."
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8 HOMEPAGE="http://www.s9y.org/"
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 SRC_URI="mirror://sourceforge/php-blog/${P}.tar.gz"
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 LICENSE="BSD"
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12 KEYWORDS="~amd64 ~x86"
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 IUSE="imagemagick"
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 DEPEND=""
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16 RDEPEND="virtual/httpd-cgi
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 imagemagick? ( media-gfx/imagemagick )"
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 need_php_httpd
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 S="${WORKDIR}/${PN}"
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 pkg_setup() {
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 webapp_pkg_setup
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 if ! PHPCHECKNODIE="yes" require_php_with_any_use mysql mysqli postgres sqlite \
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 || ! PHPCHECKNODIE="yes" require_php_with_any_use gd gd-external \
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 || ! PHPCHECKNODIE="yes" require_php_with_use iconv pcre unicode xml zlib ; then
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 eerror
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 eerror "${PHP_PKG} needs to be reinstalled at least one of mysql, mysqli,"
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31 eerror "postgres or sqlite USE flags enabled for a database backend."
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 eerror "It must also have either gd or gd-external USE flag enabled."
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33 eerror "It must also have all of iconv pcre unicode xml zlib USE flags enabled."
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 die "Reinstall ${PHP_PKG} with the above-stated USE flags."
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35 fi
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 }
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38 src_install() {
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 webapp_src_preinst
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41 rm docs/INSTALL*
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 local docs="docs/*"
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43 dodoc ${docs}
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 rm -rf docs/
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 einfo "Installing application files."
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 cp -r . "${D}"${MY_HTDOCSDIR}
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 touch "${D}"${MY_HTDOCSDIR}/.htaccess
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 touch "${D}"${MY_HTDOCSDIR}/serendipity_config_local.inc.php
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 keepdir ${MY_HTDOCSDIR}/archives/
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 webapp_configfile ${MY_HTDOCSDIR}/serendipity_config_local.inc.php
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53 #webapp_postinst_txt en "${FILESDIR}"/postinstall-en.txt
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55 # archives, templates_c and uploads need to be writable to PHP
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 # .htaccess amd serendipity_config_local.inc.php need to be too
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57 # plugins and templates need to be writable for spartacus support.
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58 local SERVEROWNED="serendipity_config_local.inc.php .htaccess archives plugins templates templates_c uploads"
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
59 for SFILES in ${SERVEROWNED}; do
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
60 webapp_serverowned ${MY_HTDOCSDIR}/${SFILES}
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
61 done
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
63 webapp_src_install
8cbe00fe8140 add ebuild for the latest and greatest s9y version
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
64 }