]> git.pld-linux.org Git - projects/template-specs.git/commitdiff
- more samples
authorElan Ruusamäe <glen@pld-linux.org>
Mon, 5 Oct 2009 12:27:43 +0000 (12:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios-plugin.spec -> 1.6

nagios-plugin.spec

index 77ce4cdadea1438bb2965844303f7cbf14742cd8..34354a90f4c791947ebe95cf4bb94aef7326d44d 100644 (file)
@@ -8,6 +8,7 @@ License:        - (enter GPL/GPL v2/LGPL/BSD/BSD-like/other license name here)
 Group:         Networking
 #Source0:      -
 # Source0-md5: -
+Source1:       %{plugin}.cfg
 #Patch0:               %{name}-defaultpass.patch
 URL:           -
 Requires:      nagios-core
@@ -25,7 +26,7 @@ Wtyczka Nagiosa sprawdzająca ...
 
 %prep
 %setup -qcT
-install %{SOURCE0} %{plugin}
+cp -p %{SOURCE0} %{plugin}
 #%patch0 -p1
 
 cat > nagios.cfg <<'EOF'
@@ -33,14 +34,14 @@ cat > nagios.cfg <<'EOF'
 # %{plugin}
 define command {
        command_name    %{plugin}
-       command_line    %{plugindir}/%{plugin}
+       command_line    %{plugindir}/%{plugin} $ARG1$
 }
 EOF
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
-install %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
+install -p %{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
 
This page took 0.084004 seconds and 4 git commands to generate.