# Copyright 1999-2010 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: $ EAPI=3 DESCRIPTION="A monitoring system based on Nagios" HOMEPAGE="https://www.icinga.org/" SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz" LICENSE="GPL-2" SLOT="0" KEYWORDS="~x86 ~amd64" IUSE="postgres mysql ssl" RDEPEND="postgres? ( dev-db/libdbi-drivers ) mysql? ( dev-db/libdbi-drivers ) ssl? ( dev-libs/openssl )" DEPEND="${RDEPEND}" pkg_setup() { enewgroup icinga enewuser icinga -1 -1 -1 icinga } src_configure() { econf --with-posix-regex \ $(use_enable ssl) \ $(use postgres || use mysql && echo --enable-idoutils) } src_compile() { emake 'all' || die "emake failed" } src_install() { emake DESTDIR="${D}" install install-init install-init install-config install-commandmode || die "install failed" if use postgres || use mysql; then emake DESTDIR="${D}" install-idoutils || die "install idoutils failed" fi dodoc README THANKS AUTHORS || die "dodoc failed" }