blob: e94f2534d179a52c1d6c1c81b910e866062315c3 (
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/tikiwiki/tikiwiki-1.9.0-r1.ebuild,v 1.2 2005/08/22 22:13:00 rl03 Exp $
inherit webapp eutils
DESCRIPTION="Full featured Web Content Management System using Php and Smarty Templates"
HOMEPAGE="http://tikiwiki.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.bz2"
LICENSE="LGPL-2.1"
IUSE="mysql postgres graphviz"
KEYWORDS="~x86 ~ppc ~sparc ~amd64"
RDEPEND="virtual/php
mysql? ( >=dev-db/mysql-4 )
postgres? ( dev-db/postgresql )
graphviz? ( media-gfx/graphviz )
"
src_unpack() {
unpack ${A}
cd ${S}
epatch ${FILESDIR}/xmlrpc2-${PV}.patch
}
pkg_setup () {
webapp_pkg_setup
einfo "Make sure your PHP is compiled with mysql or postgres support"
einfo "If you need PDF generation, make sure your PHP is emerged with xml2"
}
src_install() {
webapp_src_preinst
local DIR
local DIRENTRY
local DIRS="backups db dump files img/wiki
img/wiki_up modules/cache temp temp/cache
templates_c templates styles maps whelp mods
lib/Galaxia/processes"
# Ensure that directories exist, some don't.
# (part of setup.sh)
#
for DIR in ${DIRS}; do
mkdir -p ${DIR}
done
# Remove the execute permission from the setup.sh script
# and rename it. Its actions have been incorporated here.
#
chmod a-x setup.sh
mv setup.sh setup.sh.done
# Install the minimal doc (points to web page)
#
dodoc doc/readme.txt doc/htaccess doc/htaccess.readme INSTALL README
# The bulk goes into htdocs
# but don't copy INSTALL and README
cp -a [[:lower:]]* ${D}/${MY_HTDOCSDIR}
# Recursively set server ownership to allow server to write
# This is the rough equivalent of the setup.sh script
# provided in the distribution.
# Note: Cannot use xargs or find -exec here because
# these don't work with shell functions.
#
webapp_serverowned ${MY_HTDOCSDIR}
for DIR in ${DIRS}; do
find ${DIR} | while read DIRENTRY; do
webapp_serverowned ${MY_HTDOCSDIR}/${DIRENTRY}
done
done
webapp_serverowned ${MY_HTDOCSDIR}/tiki-install.php
# Setup some post-install notes for webapp-config
#
webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
webapp_src_install
}
pkg_config() {
einfo "Type in your MySQL root password to create an empty tiki database:"
mysqladmin -u root -p create tikiwiki
}
pkg_postinst() {
einfo "To setup a MySQL database, run:"
einfo "\"ebuild /var/db/pkg/www-apps/${PF}/${PF}.ebuild config\""
einfo "If you are using PostgreSQL, consult your documentation"
webapp_pkg_postinst
}
|