]> git.pld-linux.org Git - packages/nagios-plugin-check_raid.git/commitdiff
- include cvs rev in package version auto/ac/nagios-plugin-check_raid-2_1_1_97-1 auto/th/nagios-plugin-check_raid-2_1_1_97-1
authorElan Ruusamäe <glen@pld-linux.org>
Tue, 13 Sep 2011 05:47:43 +0000 (05:47 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    nagios-plugin-check_raid.spec -> 1.27

nagios-plugin-check_raid.spec

index c26dd308b57a7cce3ab3e0aa802abcfddbb9307e..c117b7b99d4284e1d0fd3590b81d9b0243e2ef90 100644 (file)
@@ -3,8 +3,8 @@
 %define                plugin  check_raid
 Summary:       Nagios plugin to check current server's RAID status
 Name:          nagios-plugin-%{plugin}
-Version:       2.1
-Release:       13
+Version:       2.1.1.97
+Release:       1
 License:       GPL v2
 Group:         Networking
 Source0:       %{plugin}
@@ -44,11 +44,14 @@ Supports:
 %setup -qcT
 cp -p %{SOURCE0} %{plugin}
 
+rev=$(awk '/Id: check_raid/{print $4}' check_raid)
+test %{version} = 2.1.$rev
+
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
 install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
-cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
 
 %clean
 rm -rf $RPM_BUILD_ROOT
This page took 0.103411 seconds and 4 git commands to generate.