# 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/pmwiki-2.0.beta38.tgz" LICENSE="LGPL-2.1" IUSE="" KEYWORDS="~x86" RDEPEND="virtual/php" S="${WORKDIR}/pmwiki-2.0.beta38" src_install() { # cd ${S} local docs="COPYING README" 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 for x in `find ./wikilib.d/ -type f -print` ; do webapp_serverowned ${MY_HTDOCSDIR}/$x done webapp_serverowned ${MY_HTDOCSDIR}/wikilib.d webapp_serverowned ${MY_HTDOCSDIR}/wiki.d webapp_configfile ${MY_HTDOCSDIR}/local/config.php keepdir ${MY_HTDOCSDIR}/wiki.d webapp_src_install } pkg_postinst() { einfo "now go to your ${HTTPD_ROOT}/${PN}/local," einfo "and edit config.php to suit your environment" }