# Copyright 1999-2005 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit webapp DESCRIPTION="Simple PHP Blog, a blog storing its data in files" HOMEPAGE="http://www.bigevilbrain.com/sphpblog/" SRC_URI="mirror://sourceforge/${PN}/${P}.zip" LICENSE="GPL-2" KEYWORDS="~x86" IUSE="" DEPEND="app-arch/unzip" RDEPEND="virtual/php net-www/apache" pkg_setup () { webapp_pkg_setup } src_install() { webapp_src_preinst cd ${S} # The installation tries to create these, but to make sure permissions are # correct, we make them here. mkdir {config,content,images} cp -r * ${D}/${MY_HTDOCSDIR} || die "cp failed" webapp_serverowned ${MY_HTDOCSDIR}/config webapp_serverowned ${MY_HTDOCSDIR}/content webapp_serverowned ${MY_HTDOCSDIR}/images webapp_src_install }