# Copyright 1999-2004 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/www-apps/tikiwiki/tikiwiki-1.8.2.ebuild,v 1.2 2004/09/03 17:17:21 pvdabeel 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" LICENSE="LGPL-2.1" SLOT="0" KEYWORDS="~x86 ppc ~sparc" RDEPEND="virtual/php media-gfx/graphviz" 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 "" }