packages: nagios-plugin-check_poldek/defaults.patch, nagios-plugin-check_po...

glen glen at pld-linux.org
Tue Jun 19 14:21:10 CEST 2012


Author: glen                         Date: Tue Jun 19 12:21:10 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- v0.8: better: check permissions in plugin itself

---- Files affected:
packages/nagios-plugin-check_poldek:
   defaults.patch (1.2 -> 1.3) , nagios-plugin-check_poldek.spec (1.22 -> 1.23) 

---- Diffs:

================================================================
Index: packages/nagios-plugin-check_poldek/defaults.patch
diff -u packages/nagios-plugin-check_poldek/defaults.patch:1.2 packages/nagios-plugin-check_poldek/defaults.patch:1.3
--- packages/nagios-plugin-check_poldek/defaults.patch:1.2	Wed Jan 11 21:54:34 2012
+++ packages/nagios-plugin-check_poldek/defaults.patch	Tue Jun 19 14:21:05 2012
@@ -1,12 +1,13 @@
---- nagios-plugin-check_poldek-0.6/check_poldek.py~	2012-01-11 22:45:49.000000000 +0200
-+++ nagios-plugin-check_poldek-0.6/check_poldek.py	2012-01-11 22:53:57.124944772 +0200
-@@ -34,8 +34,8 @@
-     "errorLevel": 10,
+--- nagios-plugin-check_poldek-0.8/check_poldek.py~	2012-06-19 15:03:21.000000000 +0300
++++ nagios-plugin-check_poldek-0.8/check_poldek.py	2012-06-19 15:20:15.032807858 +0300
+@@ -34,9 +34,9 @@
      "warningLevel": 5,
+     "errorLevel": 10,
      "verbose": False,
 -    "sources": [],
--    "cache": "/tmp/check_poldek",
 +    "sources": @repos@,
+     "rpmdir": "/var/lib/rpm",
+-    "cache": "/tmp/check_poldek",
 +    "cache": "/var/cache/check_poldek",
      "extraArgs": [],
  }

================================================================
Index: packages/nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec
diff -u packages/nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec:1.22 packages/nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec:1.23
--- packages/nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec:1.22	Tue Jun 19 13:34:55 2012
+++ packages/nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec	Tue Jun 19 14:21:05 2012
@@ -3,12 +3,12 @@
 Summary:	Nagios plugin to check updates of poldek based systems
 Summary(pl.UTF-8):	Wtyczka Nagiosa sprawdzająca aktualizacje systemów używających poldka
 Name:		nagios-plugin-%{plugin}
-Version:	0.7.1
-Release:	2
+Version:	0.8
+Release:	1
 License:	MIT
 Group:		Networking
 Source0:	http://github.com/pawelz/nagios-check_poldek/tarball/v%{version}/%{plugin}-%{version}.tgz
-# Source0-md5:	453df2b416ad91e4a1ee1cfa4fb7f841
+# Source0-md5:	0ee3a35c35c2f2ec16c001ff16cac0e2
 Source1:	%{plugin}.cfg
 Patch0:		defaults.patch
 URL:		http://github.com/pawelz/nagios-check_poldek
@@ -49,12 +49,6 @@
 %clean
 rm -rf $RPM_BUILD_ROOT
 
-%post
-perms=$(ls -l /var/lib/rpm/Packages | awk '{print $1}' | sed -e 's/[^r]//g')
-if [ $perms != rrr ]; then
-	echo >&2 "WARNING: /var/lib/rpm/Packages not world readable, plugin will likely fail to run"
-fi
-
 %triggerin -- nagios-nrpe
 %nagios_nrpe -a %{plugin} -f %{_sysconfdir}/%{plugin}.cfg
 
@@ -73,6 +67,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.23  2012/06/19 12:21:05  glen
+- v0.8: better: check permissions in plugin itself
+
 Revision 1.22  2012/06/19 11:34:55  glen
 - lousy check for mode on Packages, warn if not world readable. better checks welcome
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/packages/nagios-plugin-check_poldek/defaults.patch?r1=1.2&r2=1.3
    http://cvs.pld-linux.org/packages/nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec?r1=1.22&r2=1.23



More information about the pld-cvs-commit mailing list