+# TODO
+# - use standard -w, --warning; -c, --critical command line args
+# - add support for cachedir arguments
+# - add support for specifying repo names via -n, --sn
%define commit cbc143d
%define plugin check_poldek
Summary: Nagios plugin to check PLD Linux updates
Summary(pl.UTF_8): Wtyczka Nagiosa sprawdzająca aktualizacje systemu PLD linux
Name: nagios-plugin-%{plugin}
Version: 0.1
-Release: 0.1
+Release: 0.6
License: MIT
Group: Networking
Source0: http://github.com/pawelz/nagios-check_poldek/tarball/v0.1/%{name}.tar.gz
# Source0-md5: 3d3d829f19d31eeb3dba1037273d860f
URL: http://github.com/pawelz/nagios-check_poldek
+BuildRequires: rpmbuild(macros) >= 1.552
Requires: nagios-common
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%clean
rm -rf $RPM_BUILD_ROOT
+%triggerin -- nagios-nrpe
+%nagios_nrpe -a %{plugin} -f %{_sysconfdir}/%{plugin}.cfg
+
+%triggerun -- nagios-nrpe
+%nagios_nrpe -d %{plugin} -f %{_sysconfdir}/%{plugin}.cfg
+
%files
%defattr(644,root,root,755)
%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg