packages: nagios-plugin-check_raid/nagios-plugin-check_raid.spec (NEW) - new

glen glen at pld-linux.org
Wed Sep 9 15:59:25 CEST 2009


Author: glen                         Date: Wed Sep  9 13:59:25 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/nagios-plugin-check_raid:
   nagios-plugin-check_raid.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_raid/nagios-plugin-check_raid.spec
diff -u /dev/null packages/nagios-plugin-check_raid/nagios-plugin-check_raid.spec:1.1
--- /dev/null	Wed Sep  9 15:59:25 2009
+++ packages/nagios-plugin-check_raid/nagios-plugin-check_raid.spec	Wed Sep  9 15:59:19 2009
@@ -0,0 +1,53 @@
+# $Revision$, $Date$
+%define		plugin	check_raid
+Summary:	Nagios plugin to check current server's RAID status
+Name:		nagios-plugin-%{plugin}
+Version:	0.1
+Release:	0.1
+License:	Unknown
+Group:		Networking
+# Source0Download:	https://secure.opsera.com/wsvn/wsvn/opsview/trunk/opsview-core/nagios-plugins/check_raid?op=dl
+Source0:	%{plugin}
+Requires:	nagios-core
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_sysconfdir	/etc/nagios/plugins
+%define		plugindir	%{_prefix}/lib/nagios/plugins
+
+%description
+This plugin reports the current server's RAID status.
+
+%prep
+%setup -qcT
+cp -p %{SOURCE0} %{plugin}
+
+cat > nagios.cfg <<'EOF'
+# Usage:
+# %{plugin}
+define command {
+	command_name    %{plugin}
+	command_line    %{plugindir}/%{plugin}
+}
+EOF
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%attr(755,root,root) %{plugindir}/%{plugin}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2009/09/09 13:59:19  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list