blob: 63eb2b28b7b5492208226ce1bc521cead364d3d6 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
# Copyright 1999-2010 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: $
EAPI=2
inherit eutils
DESCRIPTION="A monitoring system based on Nagios"
HOMEPAGE="http://www.icinga.org/"
SRC_URI="mirror://sourceforge/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~x86"
IUSE="dbi ssl"
RDEPEND="dbi? ( 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_enable dbi idoutils)
}
src_compile() {
emake all || die "emake failed"
}
src_install() {
emake DESTDIR="${D}" install-unstripped install-api install-init install-config install-commandmode || die
if use dbi; then
emake DESTDIR="${D}" install-idoutils || die
fi
dodoc README THANKS AUTHORS || die "dodoc failed"
}
|