[packages/nagios-plugin-check_raid/DEVEL] 3.0 from master branch
glen
glen at pld-linux.org
Thu Dec 20 06:44:42 CET 2012
commit 04e7eccc8b1807e6974f7fa8fe2d3cf945bd0259
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Thu Dec 20 07:44:22 2012 +0200
3.0 from master branch
nagios-plugin-check_raid.spec | 13 +++++++++----
1 file changed, 9 insertions(+), 4 deletions(-)
---
diff --git a/nagios-plugin-check_raid.spec b/nagios-plugin-check_raid.spec
index 3575d21..547be4d 100644
--- a/nagios-plugin-check_raid.spec
+++ b/nagios-plugin-check_raid.spec
@@ -3,12 +3,13 @@
%define plugin check_raid
Summary: Nagios plugin to check current server's RAID status
Name: nagios-plugin-%{plugin}
-Version: 2.2.50
-Release: 1
+Version: 3.0
+Release: 0.1
License: GPL v2
Group: Networking
-Source0: https://github.com/glensc/nagios-plugin-check_raid/tarball/%{version}/%{plugin}-%{version}.tgz
-# Source0-md5: 7512ae0de0e62681f8b62550555c6429
+#Source0: https://github.com/glensc/nagios-plugin-check_raid/tarball/%{version}/%{plugin}-%{version}.tgz
+Source0: https://github.com/glensc/nagios-plugin-check_raid/tarball/master/%{plugin}-%{version}.tgz
+# Source0-md5: df0a73c32c4bec3a7faa1fc35cb26a06
URL: https://github.com/glensc/nagios-plugin-check_raid
Requires: nagios-common
Requires: perl-base >= 1:5.8.0
@@ -60,6 +61,10 @@ Supports:
%setup -qc
mv *-nagios-plugin-check_raid-*/* .
+%build
+ver=$(./%{plugin}.pl -V)
+test "$(echo "$ver" | awk '{print $NF}')" = %{version}
+
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/packages/nagios-plugin-check_raid.git/commitdiff/04e7eccc8b1807e6974f7fa8fe2d3cf945bd0259
More information about the pld-cvs-commit
mailing list