2012-06-12 15:05:13 +04:00
|
|
|
# Copyright 1999-2012 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
|
2012-06-12 15:05:13 +04:00
|
|
|
inherit multilib
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
MY_P="sap-ccms-plugin-${PV}"
|
|
|
|
|
|
|
|
DESCRIPTION="Nagios plugin that provides an interface to SAP CCMS
|
|
|
|
Infrastructure"
|
2016-07-27 12:26:48 +03:00
|
|
|
HOMEPAGE="https://sourceforge.net/projects/nagios-sap-ccms/"
|
2012-02-06 16:39:49 +04:00
|
|
|
SRC_URI="mirror://sourceforge/nagios-sap-ccms/${MY_P}.tar.gz"
|
|
|
|
|
|
|
|
LICENSE="GPL-2"
|
|
|
|
SLOT="0"
|
|
|
|
KEYWORDS="x86"
|
|
|
|
IUSE=""
|
|
|
|
|
|
|
|
DEPEND="net-analyzer/nagios-core"
|
|
|
|
RDEPEND=${DEPEND}
|
|
|
|
|
|
|
|
S=${WORKDIR}/${MY_P}
|
|
|
|
|
|
|
|
src_compile() {
|
|
|
|
cd "${S}/src"
|
|
|
|
emake || die "emake failed"
|
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
cd "${S}/src"
|
|
|
|
exeinto /usr/$(get_libdir)/nagios/plugins
|
|
|
|
|
|
|
|
for file in {check_sap{,_cons,_instance,_instance_cons,_mult_no_thr,_multiple,_system,_system_cons},create_cfg,sap_change_thr}
|
|
|
|
do
|
|
|
|
doexe ${file}
|
|
|
|
done
|
|
|
|
|
|
|
|
chown -R root:nagios "${D}"/usr/$(get_libdir)/nagios/plugins || die "Failed Chown of ${D}usr/$(get_libdir)/nagios/plugins"
|
|
|
|
|
|
|
|
dolib.so sap_moni.so
|
|
|
|
cd "${S}/config"
|
|
|
|
|
|
|
|
dodir /etc/sapmon
|
|
|
|
insinto /etc/sapmon
|
|
|
|
doins "${S}"/config/*
|
|
|
|
}
|
|
|
|
|
|
|
|
pkg_postinst() {
|
|
|
|
elog "Have a look at /etc/sapmon for configuring ${PN}"
|
|
|
|
elog "Further information can be found at"
|
|
|
|
elog "http://nagios-sap-ccms.sourceforge.net/"
|
|
|
|
}
|