Hello community,

here is the log from the commit of package nagios-plugins-zypper for 
openSUSE:Factory checked in at 2012-06-29 13:25:34
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/nagios-plugins-zypper (Old)
 and      /work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "nagios-plugins-zypper", Maintainer is "lr...@suse.com"

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/nagios-plugins-zypper/nagios-plugins-zypper.changes  
    2012-05-08 12:28:15.000000000 +0200
+++ 
/work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new/nagios-plugins-zypper.changes
 2012-06-29 13:25:43.000000000 +0200
@@ -1,0 +2,9 @@
+Thu Jun 28 18:33:30 UTC 2012 - l...@linux-schulserver.de
+
+- update to 1.42:
+  + whitelist Vendor 'openSUSE'
+  + added Apparmor profile for check_zypper
+  => if used with '-i' option, the ignore file must be placed in 
+     /etc/nagios, otherwise the script will fail
+
+-------------------------------------------------------------------

New:
----
  usr.lib.nagios.plugins.check_zypper

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ nagios-plugins-zypper.spec ++++++
--- /var/tmp/diff_new_pack.QFxHpB/_old  2012-06-29 13:25:45.000000000 +0200
+++ /var/tmp/diff_new_pack.QFxHpB/_new  2012-06-29 13:25:45.000000000 +0200
@@ -20,16 +20,18 @@
 Summary:        Nagios plugin for checking software updates
 License:        BSD-4-Clause
 Group:          System/Monitoring
-Version:        1.41
+Version:        1.42
 Release:        0
 Url:            http://en.opensuse.org/Nagios-plugins-zypper
 Source0:        check_zypper.pl
+Source1:        usr.lib.nagios.plugins.check_zypper 
 Requires:       gawk
 Requires:       grep
 Requires:       rpm
 %if 0%{?suse_version} > 1010
 # nagios can execute the script with embedded perl
 Recommends:     perl 
+Recommends:     apparmor-parser
 %endif
 Requires:       zypper
 BuildArch:      noarch
@@ -56,6 +58,7 @@
 
 %install
 install -D -m755 %{SOURCE0} %buildroot/%{nagios_plugindir}/check_zypper
+install -D -m644 %{SOURCE1} 
%{buildroot}%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_zypper
 
 %clean
 rm -rf %buildroot
@@ -65,6 +68,8 @@
 # avoid build dependecy of nagios - own the dirs
 %dir %{nagios_libdir}
 %dir %{nagios_plugindir}
+%dir %{_sysconfdir}/apparmor.d
+%config(noreplace) 
%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_zypper
 %{nagios_plugindir}/check_zypper
 
 %changelog

++++++ check_zypper.pl ++++++
--- /var/tmp/diff_new_pack.QFxHpB/_old  2012-06-29 13:25:45.000000000 +0200
+++ /var/tmp/diff_new_pack.QFxHpB/_new  2012-06-29 13:25:45.000000000 +0200
@@ -50,7 +50,7 @@
 
 # constants
 $PROGNAME = "check_zypper";
-$VERSION  = '1.41';
+$VERSION  = '1.42';
 $DEBUG    = 0;
 
 # variables
@@ -172,6 +172,8 @@
     print "      Print detailed help screen\n";
     print "  -i, --ignore <file>\n";
     print "      Ignore patches/packages that are mentioned in <file>\n";
+       print "      Place the file in /etc/nagios/ and/or adapt the apparmor 
profile\n";
+       print "      before using this feature!\n";
     print "      Just list one patch/package per line - example:\n\n";
     print "      patch:libtiff-devel\n";
     print "      # comment\n";
@@ -314,7 +316,7 @@
     my @unsup_packagelist = ();
 
     if ($opt_u) {
-        @unsup_packagelist = `$rpm -qa --qf "%{NAME} %{VENDOR}\n" | $grep -v 
'SUSE LINUX Products GmbH, Nuernberg, Germany' | $grep -v gpg-pubkey | $awk '" 
" { print \$1 }'`;
+        @unsup_packagelist = `$rpm -qa --qf "%{NAME} %{VENDOR}\n" | $grep -v 
'SUSE LINUX Products GmbH, Nuernberg, Germany' | $grep -v 'openSUSE' | $grep -v 
gpg-pubkey | $awk '" " { print \$1 }'`;
         my $category = 'unsupported';
         my $status   = 'new';
         foreach my $name ( sort(@unsup_packagelist) ) {

++++++ usr.lib.nagios.plugins.check_zypper ++++++
# Last Modified: Sun Jul 17 14:48:41 2011
#include <tunables/global>

/usr/lib/nagios/plugins/check_zypper {
  #include <abstractions/base>
  #include <abstractions/perl>
  #include <abstractions/wutmp>

  /etc/SuSE-release r,

  /bin/grep PUx,
  /bin/awk PUx,
  /bin/rpm PUx,
  /bin/bash PUx,
  /usr/bin/sudo PUx,
  /usr/bin/zypper PUx, 
  /usr/sbin/zypp-refresh-wrapper PUx,

  # as we do not know how people name the ignore file, we 
  # allow read access to everything below /etc/nagios here
  # feel free to limit this to exactly the file you need
  /etc/nagios/** r,

}
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to