Author: glen Date: Fri Jan 30 16:59:09 2009 GMT Module: SPECS Tag: AC-branch ---- Log message: - add nagios-plugin-check_saslauthd package
---- Files affected: SPECS: cyrus-sasl.spec (1.162.2.7 -> 1.162.2.8) ---- Diffs: ================================================================ Index: SPECS/cyrus-sasl.spec diff -u SPECS/cyrus-sasl.spec:1.162.2.7 SPECS/cyrus-sasl.spec:1.162.2.8 --- SPECS/cyrus-sasl.spec:1.162.2.7 Fri Jan 30 17:38:34 2009 +++ SPECS/cyrus-sasl.spec Fri Jan 30 17:59:03 2009 @@ -26,7 +26,7 @@ Summary(uk.UTF-8): Бібліотека Cyrus SASL Name: cyrus-sasl Version: 2.1.22 -Release: 8 +Release: 8.3 License: distributable Group: Libraries Source0: ftp://ftp.andrew.cmu.edu/pub/cyrus/%{name}-%{version}.tar.gz @@ -422,6 +422,14 @@ %description sqlite -l pl.UTF-8 Wtyczka SQLite do Cyrus SASL. +%package -n nagios-plugin-check_saslauthd +Summary: Nagios plugin to check health of saslauthd +Group: Networking +Requires: nagios-core + +%description -n nagios-plugin-check_saslauthd +Nagios plugin to check health of saslauthd + %prep %setup -q %patch0 -p1 @@ -531,6 +539,18 @@ # package for ghost touch $RPM_BUILD_ROOT/var/lib/sasl2/{cache.flock,cache.mmap,mux,mux.accept,saslauthd.pid} +install -d $RPM_BUILD_ROOT/etc/nagios/plugins +cat > $RPM_BUILD_ROOT/etc/nagios/plugins/check_saslauthd.cfg <<'EOF' +# Commandline Usage: +# check_saslauthd -u username -p password [-r realm] [-s servicename] [-f socket path] [-R repeatnum] +# Plugin Usage: +# check_saslauthd!username!password![-r realm] [-s servicename] [-f socket path] [-R repeatnum] +define command { + command_name check_saslauthd + command_line %{_libdir}/nagios/plugins/check_saslauthd -u $ARG1$ -p $ARG2$ $ARG3$ +} +EOF + %clean rm -rf $RPM_BUILD_ROOT @@ -672,12 +692,20 @@ %ghost /var/lib/sasl2/saslauthd.pid %{_mandir}/man8/saslauthd.8* +%files -n nagios-plugin-check_saslauthd +%defattr(644,root,root,755) +%config(noreplace) %verify(not md5 mtime size) /etc/nagios/plugins/check_saslauthd.cfg +%attr(755,root,root) %{_libdir}/nagios/plugins/check_saslauthd + %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.162.2.8 2009/01/30 16:59:03 glen +- add nagios-plugin-check_saslauthd package + Revision 1.162.2.7 2009/01/30 16:38:34 glen - build nagios compatible plugin ================================================================ ---- CVS-web: http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/cyrus-sasl.spec?r1=1.162.2.7&r2=1.162.2.8&f=u _______________________________________________ pld-cvs-commit mailing list [email protected] http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit
