blob: f94f02f8e19345321957b22987458aad21292eed (
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
|
# Copyright 1999-2005 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/www-apps/twiki/twiki-20041030-r1.ebuild,v 1.2 2005/11/10 14:05:00 rl03 Exp $
inherit webapp eutils depend.apache
DESCRIPTION="A Web Based Collaboration Platform"
HOMEPAGE="http://twiki.org/"
SRC_URI="http://ftp.ale.org/pub/mirrors/openpkg/sources/DST/${PN}//TWiki${PV}beta.zip
http://static.enyo.de/fw/patches/twiki/twiki-robustness-r3342.diff"
LICENSE="GPL-2"
KEYWORDS="~amd64 ~ppc ~sparc ~x86"
IUSE=""
S=${WORKDIR}
DEPEND="app-arch/unzip"
RDEPEND=">=dev-lang/perl-5.8
perl-core/CGI
dev-perl/libnet
>=app-text/rcs-5.7
sys-apps/diffutils
virtual/cron
=net-www/apache-1*"
# apache2 is not supported, see twiki documentation
src_unpack() {
unpack ${A}
cd ${S}/lib/TWiki
epatch ${FILESDIR}/execwithsearch.patch
# bug #106149
cd ${S}
epatch ${FILESDIR}/exec_command.patch
epatch ${DISTDIR}/twiki-robustness-r3342.diff
# change web user to apache
find . -name '*,v' -exec sed -i 's|nobody:|apache:|g' '{}' ';'
}
src_install() {
webapp_src_preinst
cp -r . ${D}/${MY_HTDOCSDIR}
dodoc readme.txt README.robustness
insinto ${APACHE1_VHOSTDIR}
doins ${FILESDIR}/twiki.conf
chmod 0755 ${D}/${MY_HTDOCSDIR}/bin/*
for file in `find data pub`; do
webapp_serverowned "${MY_HTDOCSDIR}/${file}"
done
webapp_hook_script ${FILESDIR}/reconfig
webapp_configfile ${MY_HTDOCSDIR}/bin/setlib.cfg
webapp_configfile ${MY_HTDOCSDIR}/lib/TWiki.cfg
webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt
webapp_src_install
}
|