Nagios-plugins-2.0.3 spec file issues

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
RHCEv6
Posts: 1
Joined: Wed Aug 06, 2014 7:57 am
Location: Tinton Falls, NJ
Contact:

Nagios-plugins-2.0.3 spec file issues

Post by RHCEv6 »

I had to make the following changes to the spec file to get it to create an rpm:

Added to Install section:

for i in $(comm -13 %{npdir}/ls-plugins-root-before %{npdir}/ls-plugins-root-after | egrep -v "\.o$|^\.")
do cp %{npdir}/plugins-root/$i $RPM_BUILD_ROOT/usr/lib/nagios/plugins/
done
rm -rf $RPM_BUILD_ROOT/usr/share/locale

Changed files section to look like this:

%files -f %{name}.lang
%doc CODING COPYING FAQ INSTALL LEGAL README REQUIREMENTS SUPPORT THANKS
%doc ChangeLog
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios-plugins-2.0.3 spec file issues

Post by tmcdonald »

Thanks for the report! I'll pass this along.
Former Nagios employee
hamsandwich
Posts: 1
Joined: Thu Oct 23, 2014 5:57 pm

Re: Nagios-plugins-2.0.3 spec file issues

Post by hamsandwich »

This is still broken as of today (10/23/2014). The spec file you're distributing with nagios-plugins 2.0.3 will not build.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios-plugins-2.0.3 spec file issues

Post by sreinhardt »

Thanks for the reminder, although it is extremely high on my personal list to do for 2.1, maybe I'll put it on the list for this weekend....
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Locked