packages: nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec - up t...
pawelz
pawelz at pld-linux.org
Tue May 11 11:13:45 CEST 2010
Author: pawelz Date: Tue May 11 09:13:45 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- up to 0.2
- some TODOs done (cachedir, unified cmdline args)
---- Files affected:
packages/nagios-plugin-check_poldek:
nagios-plugin-check_poldek.spec (1.4 -> 1.5)
---- Diffs:
================================================================
Index: packages/nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec
diff -u packages/nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec:1.4 packages/nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec:1.5
--- packages/nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec:1.4 Thu Mar 18 12:16:23 2010
+++ packages/nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec Tue May 11 11:13:40 2010
@@ -1,19 +1,16 @@
# $Revision$, $Date$
# 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.6
+Version: 0.2
+Release: 0.1
License: MIT
Group: Networking
-Source0: http://github.com/pawelz/nagios-check_poldek/tarball/v0.1/%{name}.tar.gz
-# Source0-md5: 3d3d829f19d31eeb3dba1037273d860f
+Source0: http://github.com/pawelz/nagios-check_poldek/tarball/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 9cd3838772a47c1941a8ae7f16bdc925
URL: http://github.com/pawelz/nagios-check_poldek
BuildRequires: rpmbuild(macros) >= 1.552
Requires: nagios-common
@@ -30,20 +27,21 @@
Wtyczka Nagiosa sprawdzająca aktualizacje systemu PLD linux.
%prep
-%setup -q -n pawelz-nagios-%{plugin}-%{commit}
+%setup -qc
+mv */* .
cat > nagios.cfg <<'EOF'
# Usage:
# %{plugin}
define command {
command_name %{plugin}
- command_line %{plugindir}/%{plugin} -e $ARG1$ -w $ARG2$
+ command_line %{plugindir}/%{plugin} --cache /var/cache/check_poldek -e $ARG1$ -w $ARG2$
}
EOF
%install
rm -rf $RPM_BUILD_ROOT
-install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir}}
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{plugindir},/var/cache/check_poldek}
install -p %{plugin}.py $RPM_BUILD_ROOT%{plugindir}/%{plugin}
cp -a nagios.cfg $RPM_BUILD_ROOT%{_sysconfdir}/%{plugin}.cfg
@@ -60,6 +58,7 @@
%defattr(644,root,root,755)
%attr(640,root,nagios) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/%{plugin}.cfg
%attr(755,root,root) %{plugindir}/%{plugin}
+%dir %attr(775,root,nagios) /var/cache/check_poldek
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -67,6 +66,10 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.5 2010/05/11 09:13:40 pawelz
+- up to 0.2
+- some TODOs done (cachedir, unified cmdline args)
+
Revision 1.4 2010/03/18 11:16:23 glen
- add nagios nrpe config fill via trigger
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec?r1=1.4&r2=1.5&f=u
More information about the pld-cvs-commit
mailing list