# Copyright 1999-2009 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=2 inherit eutils webapp depend.php DESCRIPTION="Webinterface for Bacula" HOMEPAGE="http://webacula.sourceforge.net/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-3" KEYWORDS="x86" IUSE="mysql postgresql sqlite3" DEPEND="mysql? ( >=dev-db/mysql-5.1 ) postgresql? ( dev-db/postgresql-server ) sqlite3? ( >=dev-db/sqlite-3.0 ) >=app-backup/bacula-3.0 www-servers/apache[apache2_modules_rewrite] >=dev-lang/php-5.2.4[pdo,gd] dev-php/ZendFramework" RDEPEND="${DEPEND}" need_php_httpd pkg_setup() { webapp_pkg_setup use mysql && require_php_with_use mysql use postgresql && require_php_with_use postgresql use sqlite3 && require_php_with_use sqlite3 } src_install() { webapp_src_preinst ln -s /usr/share/php5/Zend library/ cp -R * "${D}/${MY_HTDOCSDIR}" webapp_postinst_txt en ${FILESDIR}/postinstall-en2.txt webapp_configfile "${MY_HTDOCSDIR}"/application/config.ini webapp_src_install insinto /etc/apache2/vhosts.d newins "${FILESDIR}/10_webacula.conf" 10_webacula.conf }