File nagios-plugins-sap-ccms.spec of Package nagios-plugins-sap-ccms
#
# spec file for package nagios-plugins-sap-ccms (Version 0.7.3)
#
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
# norootforbuild
Name: nagios-plugins-sap-ccms
BuildRequires: nagios-plugins
Url: http://www.sap.com/
Summary: Nagios Plug-In for SAP CCMS Monitoring
Version: 0.7.3
Release: 232
License: BSD 3-clause (or similar)
Group: System/Monitoring
AutoReqProv: on
Requires: nagios-plugins
Source0: check_sap.tar.bz2
Source1: sap_moni.tar.bz2
Source2: rfcsdk.tar.bz2
Source3: ccms.pdf
Source4: ccms_plugin.pdf
Patch0: check_sap.dif
Patch1: sap_moni.dif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
ExclusiveArch: %ix86
%description
This plug-in enables monitoring for mySAP.com systems using SAP CCMS.
Authors:
--------
SAP AG
%prep
%setup -n check_sap -b0 -T
%setup -n sap_moni -b1 -T
%setup -n rfcsdk -b2 -T
cd $RPM_BUILD_DIR
cp rfcsdk/lib/librfc.a sap_moni/
cd check_sap
%patch0
cd ../sap_moni
%patch1
%build
cd $RPM_BUILD_DIR
export CFLAGS="$RPM_OPT_FLAGS"
(cd sap_moni; make)
cp sap_moni/sap_moni.so check_sap/
(cd check_sap; make)
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/lib/nagios/plugins/
mkdir -p $RPM_BUILD_ROOT/usr/sbin/
mkdir -p $RPM_BUILD_ROOT/etc/
cd $RPM_BUILD_DIR/check_sap
cp check_sap $RPM_BUILD_ROOT/usr/lib/nagios/plugins/
cp check_sap_cons $RPM_BUILD_ROOT/usr/lib/nagios/plugins/
cp check_sap_instance $RPM_BUILD_ROOT/usr/lib/nagios/plugins/
cp check_sap_instance_cons $RPM_BUILD_ROOT/usr/lib/nagios/plugins/
cp check_sap_mult_no_thr $RPM_BUILD_ROOT/usr/lib/nagios/plugins/
cp check_sap_multiple $RPM_BUILD_ROOT/usr/lib/nagios/plugins/
cp check_sap_system $RPM_BUILD_ROOT/usr/lib/nagios/plugins/
cp check_sap_system_cons $RPM_BUILD_ROOT/usr/lib/nagios/plugins/
cp sap_moni.so $RPM_BUILD_ROOT/usr/lib/
cp sap_change_thr $RPM_BUILD_ROOT/usr/sbin/
cp create_cfg $RPM_BUILD_ROOT/usr/sbin/
cp -r sapmon/ $RPM_BUILD_ROOT/etc/
%clean
rm -rf $RPM_BUILD_ROOT
%files
%defattr(-,root,root)
/usr/lib/nagios/plugins/*
/usr/sbin/*
/usr/lib/sap_moni.so
/etc/sapmon
%doc $RPM_SOURCE_DIR/ccms.pdf $RPM_SOURCE_DIR/ccms_plugin.pdf
%changelog