x86_64: install plugins to %{_libdir} [release 2.1.2-2mamba;Sat Nov 12 2016]

This commit is contained in:
Silvan Calarco 2024-01-06 07:31:08 +01:00
parent f0141b54e2
commit 3246d1e2ea

View File

@ -1,6 +1,6 @@
Name: nagios-plugins
Version: 2.1.2
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=%{_prefix}/lib/nagios/plugins \
--libexecdir=%{_prefix}/lib/nagios/plugins \
--libdir=%{_libdir}/nagios/plugins \
--libexecdir=%{_libdir}/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}/%{_prefix}/lib/nagios/plugins/check_uptime
rm -f %{buildroot}/%{_libdir}/nagios/plugins/check_uptime
chmod 644 %{buildroot}/%{_prefix}/lib/nagios/plugins/utils.pm
chmod 644 %{buildroot}/%{_libdir}/nagios/plugins/utils.pm
%find_lang %{name}
%clean
@ -73,16 +73,19 @@ chmod 644 %{buildroot}/%{_prefix}/lib/nagios/plugins/utils.pm
%files -f %{name}.lang
%defattr(-,root,root)
%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
%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
%doc COPYING LEGAL
#CODING FAQ README REQUIREMENTS SUPPORT ChangeLog command.cfg
%changelog
* Sat Nov 12 2016 Silvan Calarco <silvan.calarco@mambasoft.it> 2.1.2-2mamba
- x86_64: install plugins to %{_libdir}
* Sun Sep 11 2016 Automatic Build System <autodist@mambasoft.it> 2.1.2-1mamba
- automatic update by autodist