install plugins under %{_prefix}/lib instead of %{_libdir} [release 2.1.1-2mamba;Sun Dec 27 2015]

This commit is contained in:
Silvan Calarco 2024-01-06 07:31:08 +01:00
parent 4bf74596ab
commit 336524c2a6

View File

@ -1,6 +1,6 @@
Name: nagios-plugins
Version: 2.1.1
Release: 1mamba
Release: 2mamba
Summary: Host/service/network monitoring program plugins for Nagios
Group: Network/Monitoring
Vendor: openmamba
@ -43,8 +43,8 @@ This package contains the basic plugins necessary for use with the Nagios packag
export PATH="/usr/sbin:$PATH"
%configure \
PATH_TO_FPING=%{_sbindir}/fping \
--libdir=%{_libdir}/nagios/plugins \
--libexecdir=%{_libdir}/nagios/plugins \
--libdir=%{_prefix}/lib/nagios/plugins \
--libexecdir=%{_prefix}/lib/nagios/plugins \
--with-trusted-path="/bin:/sbin:/usr/bin:/usr/sbin" \
--with-cgiurl=/nagios/cgi-bin \
--disable-rpath \
@ -63,9 +63,9 @@ export PATH="/usr/sbin:$PATH"
%makeinstall
# remove unpackaged plugins
rm -f %{buildroot}/%{_libdir}/nagios/plugins/check_uptime
rm -f %{buildroot}/%{_prefix}/lib/nagios/plugins/check_uptime
chmod 644 %{buildroot}/%{_libdir}/nagios/plugins/utils.pm
chmod 644 %{buildroot}/%{_prefix}/lib/nagios/plugins/utils.pm
%find_lang %{name}
%clean
@ -73,16 +73,19 @@ chmod 644 %{buildroot}/%{_libdir}/nagios/plugins/utils.pm
%files -f %{name}.lang
%defattr(-,root,root)
%dir %{_libdir}/nagios/plugins
%attr(755,root,root) %{_libdir}/nagios/plugins/check_*
%{_libdir}/nagios/plugins/negate
%{_libdir}/nagios/plugins/urlize
%{_libdir}/nagios/plugins/utils.pm
%{_libdir}/nagios/plugins/utils.sh
%dir %{_prefix}/lib/nagios/plugins
%attr(755,root,root) %{_prefix}/lib/nagios/plugins/check_*
%{_prefix}/lib/nagios/plugins/negate
%{_prefix}/lib/nagios/plugins/urlize
%{_prefix}/lib/nagios/plugins/utils.pm
%{_prefix}/lib/nagios/plugins/utils.sh
%doc COPYING LEGAL
#CODING FAQ README REQUIREMENTS SUPPORT ChangeLog command.cfg
%changelog
* Sun Dec 27 2015 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.1-2mamba
- install plugins under %{_prefix}/lib instead of %{_libdir}
* Fri Aug 14 2015 Automatic Build System <autodist@mambasoft.it> 2.1.1-1mamba
- automatic update by autodist