# Copyright 1999-2006 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ inherit webapp DESCRIPTION="VegaDNS is a tinydns administration tool written in PHP to allow easy administration of DNS records through a web browser." HOMEPAGE="http://www.vegadns.org" SRC_URI="http://www.vegadns.org/downloads/${P}.tar.gz" LICENSE="GPL-2" KEYWORDS="~x86 ~amd64" IUSE="mysql ipv6" RDEPEND="virtual/httpd-php net-www/apache net-misc/wget net-dns/djbdns sys-apps/ucspi-tcp sys-process/daemontools mysql? ( dev-db/mysql )" # TODO # if ipv6 is defined we should sed src/config.php # and define $use_ipv6 = 'FALSE'; to # $use_ipv6 = 'TRUE'; src_compile() { einfo "No compilation necessary" } src_install() { webapp_src_preinst local docs="CHANGELOG UPGRADE CREDITS README TODO" einfo "Installing Docs" dodoc ${docs} einfo "Copying main files" cp -r . ${D}/${MY_HTDOCSDIR} cd ${D}/${MY_HTDOCSDIR} for i in [[:upper:]]*; do rm -v ${i} done local dir="templates_c configs cache sessions" dodir ${MY_HOSTROOTDIR}/${PF} cd ${D}/${MY_HOSTROOTDIR}/${PF} for i in ${dir}; do dodir ${MY_HOSTROOTDIR}/${PF}/${i} done for j in $(find ./ -type d -print); do webapp_serverowned ${MY_HOSTROOTDIR}/${PF}/${j} done webapp_hook_script ${FILESDIR}/reconfig webapp_postinst_txt en ${FILESDIR}/postinstall-en.txt webapp_src_install }