blob: aa2da19796ef9391761da4928765b477ef52dd57 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
|
# Copyright 1999-2004 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-www/tikiwiki/tikiwiki-1.7.4.ebuild,v 1.3 2004/03/02 16:59:31 mholzer Exp $
inherit webapp-apache
DESCRIPTION="Full featured Web Content Management System using Php and Smarty Templates"
HOMEPAGE="http://tikiwiki.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
RESTRICT="nomirror"
LICENSE="LGPL-2.1"
SLOT="0"
KEYWORDS="~x86 ~ppc"
RDEPEND="virtual/php
media-gfx/graphviz
dev-db/mysql"
pkg_setup() {
webapp-detect || NO_WEBSERVER=1
webapp-pkg_setup "${NO_WEBSERVER}"
einfo "Installing for ${WEBAPP_SERVER}"
}
src_unpack() {
unpack ${A}
cd ${S}
}
src_install() {
webapp-detect || NO_WEBSERVER=1
webapp-mkdirs
local DocumentRoot=${HTTPD_ROOT}
local destdir=${DocumentRoot}/${PN}
dodir ${destdir}
cp -r . ${D}${destdir}
cd ${D}/${HTTPD_ROOT}
dodoc ${S}/doc/readme.txt
chown -R ${HTTPD_USER}:${HTTPD_GROUP} ${PN}
}
pkg_postinst() {
einfo "Tiki requires PHP to have :"
einfo " ==> 'memory_limit = 16M'"
einfo " ==> 'max_execution_time = 60'"
einfo "Tiki likes PHP to have :"
einfo " ==> 'default_charset = utf-8'"
einfo " ==> 'file_uploads enabled = On'"
einfo "Please edit /etc/php4/php.ini."
einfo ""
einfo ""
einfo "Please read ${HTTPD_ROOT}/${PN}/doc/readme.txt !"
einfo ""
einfo "You may find further information on the Tiki website"
einfo " ==> http://tikiwiki.org/InstallGettingStarted"
einfo ""
einfo ""
einfo "Now, point your browser to the location of tiki-install.php"
einfo " ==> e.g. http://localhost/tikiwiki/tiki-install.php"
einfo ""
}
|