Files @ dc53e5004f02
Branch filter:

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

dc53e5004f02 1.6 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 versionator

MY_PV=$(get_version_component_range 1-3)
MY_PN="NagiosQL%20${MY_PV}"
MY_PV=${MY_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/nagiosql/${MY_PN}/${PN}_${MY_PV}.tar.gz"
SRC_URI="${SRC_URI} mirror://sourceforge/nagiosql/nagiosql/${MY_PN}/${PN}_${MY_PV}_service_pack_2_additional_fixes_only.zip"

LICENSE="GPL-2"
SLOT="${PV}"
KEYWORDS="~amd64 ~x86 ~x86-macos"
IUSE="-ftp -ssh"

DEPEND=""
RDEPEND="${DEPEND}
         >=net-analyzer/nagios-core-3.1.0
         >=dev-db/mysql-5.1.0
         >=www-servers/apache-2
        || (
		>dev-lang/php-5[filter,nls,session]
	   )
	|| (
		dev-lang/php[mysqli]
		dev-lang/php[mysql]
	)
	ftp? ( dev-lang/php[ftp] )
	ssh? ( dev-php/pecl-ssh2 )
"

need_httpd_cgi
need_php_httpd

S="${WORKDIR}"/nagiosql32

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
}