1 # Copyright 1999-2018 Gentoo Foundation
2 # Distributed under the terms of the GNU General Public License v2
8 MY_P="sap-ccms-plugin-${PV}"
10 DESCRIPTION="Nagios plugin that provides an interface to SAP CCMS
12 HOMEPAGE="https://sourceforge.net/projects/nagios-sap-ccms/"
13 SRC_URI="mirror://sourceforge/nagios-sap-ccms/${MY_P}.tar.gz"
20 DEPEND="net-analyzer/nagios-core"
27 emake || die "emake failed"
32 exeinto /usr/$(get_libdir)/nagios/plugins
34 for file in {check_sap{,_cons,_instance,_instance_cons,_mult_no_thr,_multiple,_system,_system_cons},create_cfg,sap_change_thr}
39 chown -R root:nagios "${D}"/usr/$(get_libdir)/nagios/plugins || die "Failed Chown of ${D}usr/$(get_libdir)/nagios/plugins"
50 elog "Have a look at /etc/sapmon for configuring ${PN}"
51 elog "Further information can be found at"
52 elog "http://nagios-sap-ccms.sourceforge.net/"