# 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.3 2005/12/30 12:06:50 mcummings 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 perl-core/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 }