alpha-quadrant/net-analyzer/nagios-sap-ccms-plugin/nagios-sap-ccms-plugin-0.7.3.ebuild

50 lines
1.1 KiB
Bash
Raw Normal View History

2007-07-27 08:17:27 +02:00
# Copyright 1999-2006 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/nagios-sap-ccms-plugin/nagios-sap-ccms-plugin-0.7.3.ebuild,v 1.1 2006/10/08 21:15:11 jokey Exp $
MY_P="sap-ccms-plugin-${PV}"
DESCRIPTION="Nagios plugin that provides an interface to SAP CCMS
Infrastructure"
HOMEPAGE="http://sourceforge.net/projects/nagios-sap-ccms/"
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/nagios/libexec/
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
dolib.so sap_moni.so
cd ${S}/config
dodir /etc/sapmon
insinto /etc/sapmon
doins ${S}/config/*
}
pkg_postinst() {
einfo "Have a look at /etc/sapmon for configuring ${PN}"
einfo "Further information can be found at"
einfo "http://nagios-sap-ccms.sourceforge.net/"
}