From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- net-analyzer/nagios-sap-ccms-plugin/Manifest | 8 +++ .../files/nagios-sap-ccms-plugin-0.8-gentoo.patch | 61 ++++++++++++++++++++ net-analyzer/nagios-sap-ccms-plugin/metadata.xml | 15 +++++ .../nagios-sap-ccms-plugin-0.7.3-r1.ebuild | 51 +++++++++++++++++ .../nagios-sap-ccms-plugin-0.8.ebuild | 66 ++++++++++++++++++++++ 5 files changed, 201 insertions(+) create mode 100644 net-analyzer/nagios-sap-ccms-plugin/Manifest create mode 100644 net-analyzer/nagios-sap-ccms-plugin/files/nagios-sap-ccms-plugin-0.8-gentoo.patch create mode 100644 net-analyzer/nagios-sap-ccms-plugin/metadata.xml create mode 100644 net-analyzer/nagios-sap-ccms-plugin/nagios-sap-ccms-plugin-0.7.3-r1.ebuild create mode 100644 net-analyzer/nagios-sap-ccms-plugin/nagios-sap-ccms-plugin-0.8.ebuild (limited to 'net-analyzer/nagios-sap-ccms-plugin') diff --git a/net-analyzer/nagios-sap-ccms-plugin/Manifest b/net-analyzer/nagios-sap-ccms-plugin/Manifest new file mode 100644 index 000000000000..178e1de0bf43 --- /dev/null +++ b/net-analyzer/nagios-sap-ccms-plugin/Manifest @@ -0,0 +1,8 @@ +AUX nagios-sap-ccms-plugin-0.8-gentoo.patch 1360 SHA256 e1f381bb08e4fc2d1394099622780eb8d28f7c9b771bdf61ec705158d6ae7849 SHA512 133b5ee63448111e512958ee0eb6d45308aebd78c441265c0020bcf9211fe8a746b9f85bb319d4b943e4f52677920c77956807cf907044361507f8f68ebd34fe WHIRLPOOL 57a3d4df31b23362a6f79abc9cee495ef5e98642f3cfa2dc53f11dd0d0d7c29cd67eecc69cfb3384dd64aaf29a6b0a8fca1b6a7917acc2d577319f85d47337ff +DIST sap-ccms-plugin-0.7.3.tar.gz 2948020 SHA256 ce3831bc8156f5fafe8fb4366bd9d4b2df4c85d55c92d4b38c41f10f701206eb SHA512 5de7b1a39c97ba0aac736814df2e7973c7b79d3411bdcd148a3eac2d2a1a84406b3e22f1b4979524154d02d03cb0ba3757bb68a24e8a280ceec98b767dd4b1d9 WHIRLPOOL 351db8f8ae58a461163526a6d7b3520fb21b18176d7a122d1d28d0a722d78d3f8e7bc96313d20af5036ac455f146e3a81dd5a00bd365c0fab5c1551fd17d8c75 +DIST sap-ccms-plugin-0.8.tar.bz2 10143558 SHA256 6af24e4ac2f3dddc435394e49f491a32c1c1c447025479190e710f1132a708ee SHA512 b1937f798f38e8e835610ecf78bb3a5d03d4b6dbdac728f93e0026ce9122524d772289570256849936a1dc2d3be22d4ba8760657a0dc14d6ba8cb8cae6746dc2 WHIRLPOOL 5f135421fd8304c36629a720888727eba9d090b9462218130c3a04690fe488e84ebb17fe742b73583577a3d42a0cf5995673ca81b63c025203257d9e7f5434ba +EBUILD nagios-sap-ccms-plugin-0.7.3-r1.ebuild 1179 SHA256 cf5cfe16f532c370210cc059b3ef6be68aafd49de57eb3353a482980d21db19b SHA512 b4ed9c5b4cf4c0e63218b8feca5f1b8c9928e36965b73c206de7aa15212fe88427788d3081d92ae4ea931b029ebf296fe8ea54fc1c002491830fe94a51d0f93d WHIRLPOOL 8fc222b913bc5636d49a34c6f0e60651f5129a9aa8cd37875dcb19fb1c73ffb333e0dc3ec9f43c1d3560f930874cacae877f8d6eb50e107f357ce3397b13167a +EBUILD nagios-sap-ccms-plugin-0.8.ebuild 1525 SHA256 f73d11762abf690ec084d3e7e7eec527104b9b347a81263f1b509a3e4286b83c SHA512 85d5c6f78520bee84ba5ca2a7c3407bcf72331ad1b24ff67fa95e55e7bea3592a307ff3a5e07cc32d20366b55931f1395beeaec509a91cbd27263ba00d5322ce WHIRLPOOL 25459bb21bb9790286f4b821f77b2b3406f573684e30b6ab0322614deae75cdc64ae8225ac555d12e23a55b374100e87af729ffe26607b1abed87ec9d46c0e95 +MISC ChangeLog 2991 SHA256 4ad32d954c0fea260855ac81d3e473f58b41f389159bd19182af6502a961d867 SHA512 72cf33ab24e0f82bd1f92cc7bf1eb26fee2312c628b5c3507e447992e837a257eddd43b64460bbe737d96685ee69b3c02213b8df33f8529919bd2f64cf28a815 WHIRLPOOL 8c668b8972d45ada7c58e2e332a1c11f1674ba6b41aa0d180a33026cabe32d40972dbdc4497187d57de308d7a873bb8dde880b9b40eca547fb9bf1209fd9c233 +MISC ChangeLog-2015 2496 SHA256 6ecd96dd38869b11c5b53c14bfee7bbe0227a5a90514d3d2fe086b0a639c4dda SHA512 95455228b46c528db2af065b6172414ec2c1a743240f90b494a4eddfe45c07d15c5ad097596bbd2339b16c8517fbc8fbfb52ce1f81c5866dc30582b0e9981db3 WHIRLPOOL 22e1ba45bfc04ec9380e78ced897c842cc6b204c20856106757ed89634cdc5d0e9f68078db0670762e205d3ab61fca7dac68f7d93f72043e124f5ba64d4343ef +MISC metadata.xml 469 SHA256 eb416d82fcb36945fed53d8385cf7ee0ba4a43c8b37c874c4df74569001c7030 SHA512 e29ec78dc41a8362b6811bd347173d9d396676efad424c83d2d979742e1f62584f40a458f51e21ddc0b44dab5f8f1249b8e7ba89931e0941d09bab56f89ff01a WHIRLPOOL 0b120f6f36bb3daaaf234e85a38be95b67d70a1e0a6f844cf4cfbbc98409dd0fa3b8053dfda447da94f3ad32fb6a85fcff7466db6e69f9175810535e0019c220 diff --git a/net-analyzer/nagios-sap-ccms-plugin/files/nagios-sap-ccms-plugin-0.8-gentoo.patch b/net-analyzer/nagios-sap-ccms-plugin/files/nagios-sap-ccms-plugin-0.8-gentoo.patch new file mode 100644 index 000000000000..8ded76b3b7d1 --- /dev/null +++ b/net-analyzer/nagios-sap-ccms-plugin/files/nagios-sap-ccms-plugin-0.8-gentoo.patch @@ -0,0 +1,61 @@ +--- a/src/Makefile ++++ b/src/Makefile +@@ -1,5 +1,5 @@ + +-VERSION=0.7.3 ++VERSION=0.8 + PLATFORM=$(shell uname -m) + + +@@ -33,12 +33,10 @@ + SUBDIRS = sap_moni + #C-Compiler + +-CC=gcc -DSAP_RFC_TIME +-X_CFLAGS = $(CFLAGS) ++X_CFLAGS = $(CFLAGS) $(LDFLAGS) -DSAP_RFC_TIME + SHARED_OBJECTS=libs/$(PLATFORM)/librfccm.so + + ifeq ($(patsubst i%86,x86,$(PLATFORM)), x86) +- CC=gcc -DSAP_RFC_TIME + SHARED_OBJECTS=libs/x86/librfccm.so + endif + +--- a/src/sap_moni/Makefile 2009-03-16 12:34:26.000000000 +0100 ++++ b/src/sap_moni/Makefile 2010-10-20 01:24:14.000000000 +0200 +@@ -1,23 +1,16 @@ +-PLATFORM=$(shell uname -m) +- + #used files +-SRC_INI = iniparser.c dictionary.c strlib.c ++SRC_INI = dictionary.c strlib.c + OBJ_INI = $(SRC_INI:.c=.o) + OBJ=ctype_b.o agnt_rfc.o agnt_mon.o $(OBJ_INI) + + SHARED = sap_moni.so + + #C-Compiler +-CC=gcc -DSAP_RFC_TIME +-X_CFLAGS=$(CFLAGS) -fPIC +- +-ifeq ($(PLATFORM),ppc64) +- CC=gcc -m64 -DSAP_RFC_TIME +-endif ++X_CFLAGS=$(CFLAGS) -fPIC -DSAP_RFC_TIME + + #Rules + shared: $(OBJ) +- $(CC) -shared $ $(X_CFLAGS) -o $(SHARED) $(OBJ) -ldl -lm ++ $(CC) -shared $ $(X_CFLAGS) $(LDFLAGS) -o $(SHARED) $(OBJ) -ldl -lm -liniparser + + + .SUFFIXES: .c .o +@@ -26,7 +19,7 @@ + + #Dependencies + agnt_rfc.o: saprfc.h sapitab.h agnt_def.h +-agnt_mon.o: agnt_def.h iniparser.h sapitab.h ++agnt_mon.o: agnt_def.h sapitab.h + + + #------ diff --git a/net-analyzer/nagios-sap-ccms-plugin/metadata.xml b/net-analyzer/nagios-sap-ccms-plugin/metadata.xml new file mode 100644 index 000000000000..4ccb214d4443 --- /dev/null +++ b/net-analyzer/nagios-sap-ccms-plugin/metadata.xml @@ -0,0 +1,15 @@ + + + + + creffett@gentoo.org + Chris Reffett + + + sysadmin@gentoo.org + Gentoo Sysadmin Project + + + nagios-sap-ccms + + diff --git a/net-analyzer/nagios-sap-ccms-plugin/nagios-sap-ccms-plugin-0.7.3-r1.ebuild b/net-analyzer/nagios-sap-ccms-plugin/nagios-sap-ccms-plugin-0.7.3-r1.ebuild new file mode 100644 index 000000000000..464dbdd90121 --- /dev/null +++ b/net-analyzer/nagios-sap-ccms-plugin/nagios-sap-ccms-plugin-0.7.3-r1.ebuild @@ -0,0 +1,51 @@ +# Copyright 1999-2012 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +inherit multilib + +MY_P="sap-ccms-plugin-${PV}" + +DESCRIPTION="Nagios plugin that provides an interface to SAP CCMS +Infrastructure" +HOMEPAGE="https://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/$(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/" +} diff --git a/net-analyzer/nagios-sap-ccms-plugin/nagios-sap-ccms-plugin-0.8.ebuild b/net-analyzer/nagios-sap-ccms-plugin/nagios-sap-ccms-plugin-0.8.ebuild new file mode 100644 index 000000000000..39bbc8a46c26 --- /dev/null +++ b/net-analyzer/nagios-sap-ccms-plugin/nagios-sap-ccms-plugin-0.8.ebuild @@ -0,0 +1,66 @@ +# Copyright 1999-2014 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=5 + +inherit eutils multilib toolchain-funcs + +MY_P="sap-ccms-plugin-${PV}" + +DESCRIPTION="Nagios plugin that provides an interface to SAP CCMS +Infrastructure" +HOMEPAGE="https://sourceforge.net/projects/nagios-sap-ccms/" +SRC_URI="mirror://sourceforge/nagios-sap-ccms/${MY_P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~x86" +IUSE="" + +QA_PRESTRIPPED="/usr/lib/librfccm.so" +QA_FLAGS_IGNORED="/usr/lib/librfccm.so" + +DEPEND=" + net-analyzer/nagios-core + dev-libs/iniparser:0 +" +RDEPEND=${DEPEND} + +S="${WORKDIR}/${PN/-plugin*}" + +src_prepare() { + epatch "${FILESDIR}"/${P}-gentoo.patch + sed -i src/sap_moni/* \ + -e 's|#include "iniparser.h"|#include |g' \ + || die "sed sap_moni/" +} + +src_compile() { + emake -C src CC=$(tc-getCC) +} + +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 + newlib.so $(readlink librfccm.so) librfccm.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/" +} -- cgit v1.2.3