Author: glen                         Date: Wed Nov 23 00:01:27 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- new

---- Files affected:
SPECS:
   nagios-of-plugins.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SPECS/nagios-of-plugins.spec
diff -u /dev/null SPECS/nagios-of-plugins.spec:1.1
--- /dev/null   Wed Nov 23 01:01:27 2005
+++ SPECS/nagios-of-plugins.spec        Wed Nov 23 01:01:20 2005
@@ -0,0 +1,94 @@
+# $Revision$, $Date$
+%include       /usr/lib/rpm/macros.perl
+Summary:       Open Fusion Nagios Plugins
+Name:          nagios-of-plugins
+Version:       0.5.2
+Release:       0.3
+License:       GPL
+Group:         Networking
+Source0:       http://www.openfusion.com.au/labs/dist/%{name}-%{version}.tar.gz
+# Source0-md5: ce52d3a15c909cf2d44737b40d9d7473
+Patch0:                %{name}-jabber.patch
+URL:           http://www.openfusion.com.au/labs/nagios/
+BuildRequires: rpm-perlprov >= 4.1-13
+Requires:      nagios-core
+Requires:      perl-Nagios-Plugin = %{version}-%{release}
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define                _plugindir      %{_libdir}/nagios/plugins
+%define                _sysconfdir     /etc/nagios
+
+%description
+Nagios Plugin Package for monitoring of outstanding updates via 'yum'
+or 'up2date', various constraints on a given file, inode usage across
+all partitions, status of all linux software raid devices, kernel
+version, length of the qmail mail queue.
+
+%package -n perl-Nagios-Plugin
+Summary:       Perl module for creating nagios plugins
+Group:         Development/Languages/Perl
+
+%description -n perl-Nagios-Plugin
+Nagios::Plugin is a perl module for simplifying the creation of nagios
+plugins, mainly by standardising some of the argument parsing and
+handling stuff most plugins require.
+
+%package -n nagios-notify_by_jabber
+Summary:       Utility to send Nagios alerts using Jabber
+Group:         Networking
+Requires:      nagios-core
+Requires:      perl-IO-Socket-SSL
+
+%description -n nagios-notify_by_jabber
+Utility to send Nagios alerts using Jabber.
+
+%prep
+%setup -q
+%patch0 -p1
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_plugindir},%{perl_vendorlib}}
+
+cp -a check* notify* $RPM_BUILD_ROOT%{_plugindir}
+cp -a Nagios $RPM_BUILD_ROOT%{perl_vendorlib}
+cat <<EOF > $RPM_BUILD_ROOT%{_sysconfdir}/jabber.cfg
+;jabber_user=
+;jabber_pass=
+;jabber_server=jabber.org
+;jabber_port=5222
+;jabber_resource=nagios
+EOF
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README TODO
+%attr(755,root,root) %{_plugindir}/check_file
+%attr(755,root,root) %{_plugindir}/check_inodes
+%attr(755,root,root) %{_plugindir}/check_kernel_version
+%attr(755,root,root) %{_plugindir}/check_linux_raid
+%attr(755,root,root) %{_plugindir}/check_qmailq
+%attr(755,root,root) %{_plugindir}/check_yum
+
+%files -n nagios-notify_by_jabber
+%defattr(644,root,root,755)
+%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) 
%{_sysconfdir}/jabber.cfg
+%attr(755,root,root) %{_plugindir}/notify_by_jabber
+
+%files -n perl-Nagios-Plugin
+%defattr(644,root,root,755)
+%dir %{perl_vendorlib}/Nagios
+%{perl_vendorlib}/Nagios/Plugin.pm
+
+%define date   %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <[EMAIL PROTECTED]>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2005/11/23 00:01:20  glen
+- new
+
================================================================
_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to