packages: nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec - lous...
glen
glen at pld-linux.org
Tue Jun 19 13:35:01 CEST 2012
Author: glen Date: Tue Jun 19 11:35:01 2012 GMT
Module: packages Tag: HEAD
---- Log message:
- lousy check for mode on Packages, warn if not world readable. better checks welcome
---- Files affected:
packages/nagios-plugin-check_poldek:
nagios-plugin-check_poldek.spec (1.21 -> 1.22)
---- 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.21 packages/nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec:1.22
--- packages/nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec:1.21 Thu Jan 12 16:01:25 2012
+++ packages/nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec Tue Jun 19 13:34:55 2012
@@ -4,7 +4,7 @@
Summary(pl.UTF-8): Wtyczka Nagiosa sprawdzająca aktualizacje systemów używających poldka
Name: nagios-plugin-%{plugin}
Version: 0.7.1
-Release: 1
+Release: 2
License: MIT
Group: Networking
Source0: http://github.com/pawelz/nagios-check_poldek/tarball/v%{version}/%{plugin}-%{version}.tgz
@@ -49,6 +49,12 @@
%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
@@ -67,6 +73,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.22 2012/06/19 11:34:55 glen
+- lousy check for mode on Packages, warn if not world readable. better checks welcome
+
Revision 1.21 2012/01/12 15:01:25 glen
- 0.7.1: minor fixes
================================================================
---- CVS-web:
http://cvs.pld-linux.org/packages/nagios-plugin-check_poldek/nagios-plugin-check_poldek.spec?r1=1.21&r2=1.22
More information about the pld-cvs-commit
mailing list