Files @ dc53e5004f02
Branch filter:

Location: portage-overlay.git/net-analyzer/nagiosql/nagiosql-3.0.3.ebuild

dc53e5004f02 1.3 KiB application/vnd.gentoo.ebuild Show Annotation Show as Raw Download as Raw
chain
update net-misc/pyload to 0.4.9
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $

EAPI="2"

inherit eutils webapp depend.php

MY_PN="NagiosQL%20${PV}"
MY_PV=${PV/\./}
MY_PV=${MY_PV/\./}

DESCRIPTION="A web based administration tool for Nagios 2 and 3"
HOMEPAGE="http://www.nagiosql.org/"
SRC_URI="mirror://sourceforge/nagiosql/${PN}${MY_PV}.tar.gz"

LICENSE="GPL-2"
SLOT="3.0.3"
KEYWORDS="~amd64 ~x86 ~x86-macos"
IUSE=""

DEPEND=">=dev-php/PEAR-HTML_Template_IT-1.2.1"
RDEPEND="${DEPEND}
         >=net-analyzer/nagios-core-3.1.0
         >=dev-db/mysql-4.1.0
         >=www-servers/apache-2
        || (
			>dev-lang/php-5[ftp,nls]
		)
		|| (
			dev-lang/php[mysqli]
			dev-lang/php[mysql]
		)
"

need_httpd_cgi
need_php_httpd

S="${WORKDIR}"/nagiosql3

pkg_setup() {
	webapp_pkg_setup
}

src_install() {
	webapp_src_preinst
	
	insinto "${MY_HTDOCSDIR#${EPREFIX}}"
	doins -r .
	
	webapp_serverowned "${MY_HTDOCSDIR#${EPREFIX}}"/config/
	
	webapp_src_install
	
	# Create needed config directories
	diropts -m6755
	dodir /etc/nagiosql/hosts
	dodir /etc/nagiosql/services
	dodir /etc/nagiosql/backup/hosts
	dodir /etc/nagiosql/backup/services
	
	webapp_serverowned /etc/nagiosql \
		/etc/nagiosql/hosts \
		/etc/nagiosql/services \
		/etc/nagiosql/backup \
		/etc/nagiosql/backup/hosts \
		/etc/nagiosql/backup/services
}