]> git.pld-linux.org Git - packages/nagios-plugins.git/commitdiff
- lib64 fix (fix only related configs not first-that-matches); rel 2 auto/ac/nagios-plugins-1_4_14-2
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 3 Nov 2009 04:20:48 +0000 (04:20 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios-plugins.spec -> 1.123

nagios-plugins.spec

index d4f332cdf1025001e17293ed6d654f949e055449..14628e875450b8630e64dd0f1885fe5f8bbcdeb9 100644 (file)
@@ -9,7 +9,7 @@ Summary:        Host/service/network monitoring program plugins for Nagios
 Summary(pl.UTF-8):     Wtyczki do monitorowania hostów/usług/sieci dla Nagiosa
 Name:          nagios-plugins
 Version:       1.4.14
-Release:       1
+Release:       2
 License:       GPL v2
 Group:         Networking
 Source0:       http://dl.sourceforge.net/nagiosplug/%{name}-%{version}.tar.gz
@@ -643,7 +643,7 @@ mv $(find $RPM_BUILD_ROOT%{_pluginarchdir} -type f | xargs file | awk -F: '!/ELF
 plugins=$(grep -Eoh 'command_line.*USER1\$/[^ ]+' $RPM_BUILD_ROOT%{_sysconfdir}/*.cfg | awk -F/ '{print $NF}' | sort -u)
 for plugin in $plugins; do
        [ -x $RPM_BUILD_ROOT%{_pluginarchdir}/$plugin ] && libdir=%{_pluginarchdir} || libdir=%{_pluginlibdir}
-       sed -i -e "s,\\\$USER1\\\$,$libdir," $RPM_BUILD_ROOT%{_sysconfdir}/*.cfg
+       sed -i -e "s,\\\$USER1\\\$/$plugin ,$libdir/$plugin ," $RPM_BUILD_ROOT%{_sysconfdir}/*.cfg
 done
 
 cp -a %{SOURCE2} $RPM_BUILD_ROOT%{_pluginlibdir}/utils.php
This page took 0.192788 seconds and 4 git commands to generate.