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

glen glen at pld-linux.org
Tue Oct 20 21:44:35 CEST 2009


Author: glen                         Date: Tue Oct 20 19:44:35 2009 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_fcsw/nagios-plugin-check_fcsw.spec
diff -u /dev/null packages/nagios-plugin-check_fcsw/nagios-plugin-check_fcsw.spec:1.1
--- /dev/null	Tue Oct 20 21:44:35 2009
+++ packages/nagios-plugin-check_fcsw/nagios-plugin-check_fcsw.spec	Tue Oct 20 21:44:29 2009
@@ -0,0 +1,51 @@
+# $Revision$, $Date$
+%include    /usr/lib/rpm/macros.perl
+%define     plugin  check_fcsw
+Summary:    Nagios plugin to check Fibre Switches
+Name:       nagios-plugin-%{plugin}
+Version:    0.1
+Release:    1
+License:    GPL v2
+Group:      Networking
+BuildRequires:  rpm-perlprov >= 4.1-13
+Source0:    %{plugin}
+Source1:    %{plugin}.cfg
+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 checks ports of Fibre Switches.
+
+Supports:
+- EMC Fibre Channel Switch
+
+%prep
+%setup -qcT
+cp -p %{SOURCE0} %{plugin}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install -p %{plugin} $RPM_BUILD_ROOT%{plugindir}/%{plugin}
+sed -e 's, at plugindir@,%{plugindir},' %{SOURCE1} > $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
+%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/10/20 19:44:29  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list