]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
- @plugindir@ subst sample
authorElan Ruusamäe <glen@pld-linux.org>
Wed, 9 Sep 2009 10:13:13 +0000 (10:13 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios-plugin.spec -> 1.5

nagios-plugin.spec

index 22e3571e8196a26746be78b19db3e06b4a26307f..77ce4cdadea1438bb2965844303f7cbf14742cd8 100644 (file)
@@ -42,6 +42,7 @@ rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
 install %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
 cp -a nagios.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+sed -e 's,@plugindir@,%{plugindir},' %{SOURCE1} > $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.042594 seconds and 4 git commands to generate.