# 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-200512177873.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://twiki.org/p/pub/Codev/Release/TWiki-${PV}.tgz LICENSE="GPL-2" KEYWORDS="~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-2* dev-perl/CGI-Session" src_unpack() { unpack ${A} cd ${S}/lib/TWiki # 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 }