# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit webapp DESCRIPTION="Wiki primarily designed as a tool to support easy, collaborative authoring and maintenance of web sites" HOMEPAGE="http://www.pmwiki.org/" SRC_URI="http://www.pmwiki.org/pub/pmwiki/${P}.tgz" LICENSE="LGPL-2.1" IUSE="" KEYWORDS="~x86" RDEPEND="virtual/php" src_install() { local docs="COPYING" webapp_src_preinst # handle documentation files # # NOTE that doc files go into /usr/share/doc as normal; they do NOT # get installed per vhost! einfo "Installing docs" dodoc ${docs} for doc in ${docs} INSTALL; do rm -f ${doc} done einfo "Copying main files" mv sample-config.php local/config.php mkdir wiki.d cp -r . ${D}/${MY_HTDOCSDIR} # create the files upload directory mkdir ${D}/${MY_HTDOCSDIR}/files webapp_serverowned ${MY_HTDOCSDIR}/files #files which must be owned by server webapp_serverowned ${MY_HTDOCSDIR}/wiki.d webapp_configfile ${MY_HTDOCSDIR}/local/config.php keepdir ${D}/${MY_HTDOCSDIR}/wiki.d webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt webapp_src_install }