annotate www-apps/egroupware/egroupware-1.8.004.20120613.ebuild @ 343:784725f461de

add an ebuild for s9y 1.6.2
author Dirk Olmes <dirk@xanthippe.ping.de>
date Wed, 02 Jan 2013 15:26:08 +0100
parents df76edd71c4c
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
342
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
1 # Copyright 1999-2012 Gentoo Foundation
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
2 # Distributed under the terms of the GNU General Public License v2
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
3 # $Header: /var/cvsroot/gentoo-x86/www-apps/egroupware/egroupware-1.8.004.20120613.ebuild,v 1.6 2012/10/06 16:55:20 armin76 Exp $
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
4
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
5 EAPI=4
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
6
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
7 inherit eutils webapp
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
8
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
9 MY_PN=eGroupware
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
10
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
11 DESCRIPTION="Web-based GroupWare suite"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
12 HOMEPAGE="http://www.egroupware.org/"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
13 SRC_URI="mirror://sourceforge/${PN}/${MY_PN}-${PV}.tar.bz2
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
14 mirror://sourceforge/${PN}/${MY_PN}-egw-pear-${PV}.tar.bz2
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
15 gallery? ( mirror://sourceforge/${PN}/${MY_PN}-gallery-${PV}.tar.bz2 )"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
16
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
17 LICENSE="GPL-2"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
18 KEYWORDS="amd64 hppa ppc ~sparc x86"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
19 IUSE="+jpgraph ldap mysql postgres gallery"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
20
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
21 # php deps taken from rpm spec
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
22 # you can use pdo to access almost anything but sqlite is specifically required
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
23 # for the calendar module
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
24 # jpgraph is only needed for the projectmanager module
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
25 RDEPEND="jpgraph? ( dev-php/jpgraph )
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
26 dev-php/pear
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
27 dev-php/PEAR-Auth_SASL
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
28 virtual/httpd-php
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
29 dev-lang/php[gd,imap,pdo,posix,session,sqlite3,ssl,unicode,xml,zip,zlib,ldap?,mysql?,postgres?]
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
30 virtual/cron"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
31
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
32 REQUIRED_USE="|| ( mysql postgres )"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
33
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
34 need_httpd_cgi
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
35
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
36 S=${WORKDIR}/${PN}
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
37
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
38 src_prepare() {
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
39 esvn_clean
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
40
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
41 if use jpgraph; then
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
42 einfo "Fixing jpgraph location"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
43 MY_JPGRAPH_VERSION="$(best_version dev-php/jpgraph)"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
44 MY_JPGRAPH_VERSION="${MY_JPGRAPH_VERSION/'dev-php/jpgraph-'/}"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
45 sed -i "s|EGW_SERVER_ROOT . '/../jpgraph/src/jpgraph.php'|'/usr/share/php/jpgraph/jpgraph.php'|" \
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
46 projectmanager/inc/class.projectmanager_ganttchart.inc.php || die "sed jpgraph failed"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
47 sed -i "s|EGW_SERVER_ROOT . '/../jpgraph/src/jpgraph_gantt.php'|'/usr/share/php/jpgraph/jpgraph_gantt.php'|" \
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
48 projectmanager/inc/class.projectmanager_ganttchart.inc.php || die "sed jpgraph failed"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
49 sed -i "s|$jpgraph_path .= SEP.'jpgraph';|$jpgraph_path = dirname('/usr/share/php/jpgraph/jpgraph.php');|" \
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
50 setup/check_install.php || die "sed jpgraph failed"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
51 sed -i "s|'unknown';|'${MY_JPGRAPH_VERSION}';\n \$available = version_compare(\$version,\$min_version,'>=');|" \
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
52 setup/check_install.php || die "sed jpgraph failed"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
53 fi
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
54 }
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
55
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
56 src_install() {
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
57 webapp_src_preinst
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
58
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
59 dodoc doc/rpm-build/egroupware.cron
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
60
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
61 insinto "${MY_HTDOCSDIR}"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
62 doins -r .
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
63
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
64 webapp_serverowned "${MY_HTDOCSDIR}/phpgwapi/images"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
65
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
66 webapp_postinst_txt en "${FILESDIR}/postinstall-en-1.2.txt"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
67 webapp_src_install
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
68 }
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
69
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
70 pkg_postinst() {
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
71 if use ldap; then
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
72 elog "If you are using LDAP contacts/addressbook, please read the upgrade instructions at"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
73 elog "http://www.egroupware.org/index.php?page_name=wiki&wikipage=ManualSetupUpdate"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
74 elog "before running the egroupware setup"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
75 fi
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
76
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
77 elog "A cronjob to run eGroupware's async services is available at"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
78 elog "/usr/share/doc/${P}"
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
79
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
80 webapp_pkg_postinst
df76edd71c4c remove obsolete egroupware ebuild, copy the main portage version to change the use flag to sqlite3 for php5.4 compatability
Dirk Olmes <dirk@xanthippe.ping.de>
parents:
diff changeset
81 }