blob: b52d20a9db86d864b903d3cb91c71eab7b27d8b2 (
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
|
# Copyright 2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
DESCRIPTION="nagiosgraph extracts info from the Nagios output and inserts it into RRD files"
HOMEPAGE="https://sourceforge.net/p/nagiosgraph"
SRC_URI="https://netix.dl.sourceforge.net/project/${PN}/${PN}/${PV}/${P}.tar.gz"
LICENSE="Artistic"
SLOT="0"
KEYWORDS="~amd64"
DEPEND=""
RDEPEND="
dev-lang/perl
net-analyzer/rrdtool[perl,graph]
dev-perl/GD
"
BDEPEND=""
src_prepare() {
eapply ${FILESDIR}/multi_param.patch
eapply_user
}
src_configure() {
sed -i "s|/opt/nagiosgraph/etc|/etc/${PN}|g" ${S}/cgi/*.cgi ${S}/lib/*.pl
}
src_install() {
insinto /etc/${PN}
doins ${S}/etc/*
exeinto /usr/$(get_libdir)/${PN}/bin
doexe ${S}/lib/*.pl
exeinto /usr/$(get_libdir)/${PN}/cgi-bin
doexe ${S}/cgi/*.cgi
insinto /usr/$(get_libdir)/${PN}/share
doins ${S}/share/*
}
|