Author: glen Date: Mon Feb 12 20:38:57 2007 GMT Module: SPECS Tag: HEAD ---- Log message: - NFY
---- Files affected: SPECS: nagios-ndoutils.spec (NONE -> 1.1) (NEW) ---- Diffs: ================================================================ Index: SPECS/nagios-ndoutils.spec diff -u /dev/null SPECS/nagios-ndoutils.spec:1.1 --- /dev/null Mon Feb 12 21:38:57 2007 +++ SPECS/nagios-ndoutils.spec Mon Feb 12 21:38:52 2007 @@ -0,0 +1,66 @@ +# $Revision$, $Date$ +%define _beta b2 +Summary: NDOUTILS (Nagios Data Output Utils) addon +Name: nagios-ndoutils +Version: 1.4 +Release: 0.1 +License: GPL v2 +Group: Networking +Source0: http://dl.sourceforge.net/nagios/ndoutils-%{version}%{_beta}.tar.gz +# Source0-md5: 3aab5af0816041c54b029d42985e6189 +URL: http://sourceforge.net/projects/nagios/ +BuildRequires: mysql-devel +Requires: nagios >= 2.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%define _sysconfdir /etc/nagios +%define _libdir %{_prefix}/%{_lib}/nagios + +%description +The NDOUTILS (Nagios Data Output Utils) addon allows you to move +status and event information from Nagios to a database for later +retrieval and processing. + +%prep +%setup -q -n ndoutils-%{version}%{_beta} + +%build +%configure +%{__make} + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_libdir},%{_sysconfdir},%{_sbindir}} + +install src/ndomod-2x.o $RPM_BUILD_ROOT%{_libdir}/ndomod.o +cp -a config/ndomod.cfg $RPM_BUILD_ROOT%{_sysconfdir} +echo 'broker_module=%{_libdir}/ndomod.o config_file=%{_sysconfdir}/ndomod.cfg' \ + > $RPM_BUILD_ROOT%{_sysconfdir}/ndomod-load.cfg + +install src/ndo2db-2x $RPM_BUILD_ROOT%{_sbindir}/ndo2db +cp -a config/ndo2db.cfg $RPM_BUILD_ROOT%{_sysconfdir} + +# daemon startup: +# ndo2db -c %{_sysconfdir}/ndo2db.cfg + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc HISTORY README REQUIREMENTS TODO UPGRADING +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ndo2db.cfg +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ndomod-load.cfg +%config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/ndomod.cfg +%{_libdir}/ndomod.o +%attr(755,root,root) %{_sbindir}/ndo2db + +%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 2007/02/12 20:38:52 glen +- NFY + ================================================================ _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
