| 1 |
# Copyright 1999-2012 Gentoo Foundation
|
| 2 |
# Distributed under the terms of the GNU General Public License v2
|
| 3 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-sap-ccms-plugin/nagios-sap-ccms-plugin-0.7.3-r1.ebuild,v 1.2 2009/03/07 14:34:57 maekke Exp $
|
| 4 |
|
| 5 |
inherit multilib
|
| 6 |
|
| 7 |
MY_P="sap-ccms-plugin-${PV}"
|
| 8 |
|
| 9 |
DESCRIPTION="Nagios plugin that provides an interface to SAP CCMS
|
| 10 |
Infrastructure"
|
| 11 |
HOMEPAGE="http://sourceforge.net/projects/nagios-sap-ccms/"
|
| 12 |
SRC_URI="mirror://sourceforge/nagios-sap-ccms/${MY_P}.tar.gz"
|
| 13 |
|
| 14 |
LICENSE="GPL-2"
|
| 15 |
SLOT="0"
|
| 16 |
KEYWORDS="x86"
|
| 17 |
IUSE=""
|
| 18 |
|
| 19 |
DEPEND="net-analyzer/nagios-core"
|
| 20 |
RDEPEND=${DEPEND}
|
| 21 |
|
| 22 |
S=${WORKDIR}/${MY_P}
|
| 23 |
|
| 24 |
src_compile() {
|
| 25 |
cd "${S}/src"
|
| 26 |
emake || die "emake failed"
|
| 27 |
}
|
| 28 |
|
| 29 |
src_install() {
|
| 30 |
cd "${S}/src"
|
| 31 |
exeinto /usr/$(get_libdir)/nagios/plugins
|
| 32 |
|
| 33 |
for file in {check_sap{,_cons,_instance,_instance_cons,_mult_no_thr,_multiple,_system,_system_cons},create_cfg,sap_change_thr}
|
| 34 |
do
|
| 35 |
doexe ${file}
|
| 36 |
done
|
| 37 |
|
| 38 |
chown -R root:nagios "${D}"/usr/$(get_libdir)/nagios/plugins || die "Failed Chown of ${D}usr/$(get_libdir)/nagios/plugins"
|
| 39 |
|
| 40 |
dolib.so sap_moni.so
|
| 41 |
cd "${S}/config"
|
| 42 |
|
| 43 |
dodir /etc/sapmon
|
| 44 |
insinto /etc/sapmon
|
| 45 |
doins "${S}"/config/*
|
| 46 |
}
|
| 47 |
|
| 48 |
pkg_postinst() {
|
| 49 |
elog "Have a look at /etc/sapmon for configuring ${PN}"
|
| 50 |
elog "Further information can be found at"
|
| 51 |
elog "http://nagios-sap-ccms.sourceforge.net/"
|
| 52 |
}
|