# 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" #if postgres or mysql useflag is used, pull in libdbi-drivers RDEPEND="postgres? ( dev-db/libdbi-drivers ) mysql? ( dev-db/libdbi-drivers ) ssl? ( dev-libs/openssl )" DEPEND="${RDEPEND}" src_compile() { econf --with-posix-regex \ $(use_enable ssl) \ $(use postgres || use mysql && echo --enable-idoutils) emake 'all' || die "emake failed" } src_install() { emake DESTDIR="${D}" install 'all' || die "install failed" dodoc README THANKS AUTHORS || die "dodoc failed" }