# Copyright 1999-2003 Gentoo Technologies, Inc. # Distributed under the terms of the GNU General Public License, v2 or later MY_PV="1.3.8-1sr2" S=${WORKDIR}/${PN}-${MY_PV} DESCRIPTION="Geeklog is a weblog powered by PHP and MySQL" SRC_URI="http://www.geeklog.net/filemgmt/upload_dir/${PN}-${MY_PV}.tar.gz" HOMEPAGE="http://www.geeklog.net" LICENSE="GPL-2" KEYWORDS="~x86" SLOT="0" DEPEND="virtual/php" HTTPD_ROOT="/home/httpd/htdocs" HTTPD_USER="apache" HTTPD_GROUP="apache" pkg_setup() { if [ -d ${HTTPD_ROOT}/geeklog ] ; then ewarn "You need to unmerge old Geeklog version first." ewarn "Geeklog will be installed into ${HTTPD_ROOT}/geeklog" ewarn "directly instead of a version-dependant directory." die "need to unmerge old version first" fi } src_compile() { echo "Nothing to compile" } src_install() { cd ${S} dodir ${HTTPD_ROOT}/geeklog cp -a * ${D}/${HTTPD_ROOT}/geeklog dodoc INSTALL readme cd ${D}/${HTTPD_ROOT} chown -R ${HTTPD_USER}.${HTTPD_GROUP} ${D}/${HTTPD_ROOT}/geeklog } pkg_postinst() { einfo "You will need to create a database for geeklog." einfo "For install and configure instructions read the avaible documentation." }