[Nagios-devel] [PATCH] specfile patches for NSCA / NRPE plugins

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

[Nagios-devel] [PATCH] specfile patches for NSCA / NRPE plugins

Post by Guest »

This is a multi-part message in MIME format.
--------------080307030706080303040707
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit

I pulled down the plugins in $subject that were dates Jan 21, 2006, and
discovered that they wouldn't build due to incorrect specfiles. The
changes required were fairly trivial; I also had to add the LICENSE file
to the NSCA plugin tarball, which isn't reflected in the attached
patches. Using specfiles with these patches, I was able to build both
plugins normally on a Fedora Core 3 system.

--
John

--------------080307030706080303040707
Content-Type: text/x-patch;
name="nrpe-2.2-specfile.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="nrpe-2.2-specfile.patch"

diff -ru nrpe-2.2-download/nrpe.spec nrpe-2.2/nrpe.spec
--- nrpe-2.2-download/nrpe.spec 2006-01-20 20:03:22.000000000 -0500
+++ nrpe-2.2/nrpe.spec 2006-01-22 19:03:22.000000000 -0500
@@ -121,7 +121,7 @@
install -d -m 0755 ${RPM_BUILD_ROOT}/usr/lib/nagios/plugins

# install templated configuration files
-cp nrpe.cfg ${RPM_BUILD_ROOT}/etc/nagios/nrpe.cfg
+cp sample-config/nrpe.cfg ${RPM_BUILD_ROOT}/etc/nagios/nrpe.cfg
cp init-script ${RPM_BUILD_ROOT}/etc/init.d/nrpe
cp src/nrpe ${RPM_BUILD_ROOT}/usr/sbin
cp src/check_nrpe ${RPM_BUILD_ROOT}/usr/lib/nagios/plugins

--------------080307030706080303040707
Content-Type: text/x-patch;
name="nsca-2.5-specfile.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline;
filename="nsca-2.5-specfile.patch"

Only in nsca-2.5: LICENSE
diff -ru nsca-2.5/nsca.spec nsca-2.5-download/nsca.spec
--- nsca-2.5-download/nsca.spec 2004-02-02 20:27:54.000000000 -0500
+++ nsca-2.5/nsca.spec 2006-01-22 18:54:24.000000000 -0500
@@ -1,5 +1,5 @@
%define name nsca
-%define version 2.4
+%define version 2.5
%define release 1
%define nsusr nagios
%define nsgrp nagios
@@ -117,9 +117,9 @@

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
-install -b -D -m 0644 nsca.cfg ${RPM_BUILD_ROOT}/etc/nagios/nsca.cfg
-install -b -D -m 0644 send_nsca.cfg ${RPM_BUILD_ROOT}/etc/nagios/send_nsca.cfg
-install -b -D -m 0644 nsca.xinetd ${RPM_BUILD_ROOT}/etc/xined.d/nsca
+install -b -D -m 0644 sample-config/nsca.cfg ${RPM_BUILD_ROOT}/etc/nagios/nsca.cfg
+install -b -D -m 0644 sample-config/send_nsca.cfg ${RPM_BUILD_ROOT}/etc/nagios/send_nsca.cfg
+install -b -D -m 0644 sample-config/nsca.xinetd ${RPM_BUILD_ROOT}/etc/xined.d/nsca
install -b -D -m 0755 src/nsca ${RPM_BUILD_ROOT}/usr/sbin/nsca
install -b -D -m 0755 src/send_nsca ${RPM_BUILD_ROOT}/usr/bin/send_nsca


--------------080307030706080303040707--





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked