commit nagios-plugins-zypper for openSUSE:Factory

2014-06-30 Thread h_root
Hello community,

here is the log from the commit of package nagios-plugins-zypper for 
openSUSE:Factory checked in at 2014-06-30 21:45:13

Comparing /work/SRC/openSUSE:Factory/nagios-plugins-zypper (Old)
 and  /work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new (New)


Package is nagios-plugins-zypper

Changes:

--- 
/work/SRC/openSUSE:Factory/nagios-plugins-zypper/nagios-plugins-zypper.changes  
2014-06-16 21:28:19.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new/nagios-plugins-zypper.changes
 2014-06-30 21:45:38.0 +0200
@@ -1,0 +2,9 @@
+Thu Jun 26 15:09:33 UTC 2014 - l...@linux-schulserver.de
+
+- update to 1.80:
+  + invent new option for the local package check: -l, --check-local
+otherwise packages from OBS repos will become local after each 
+rebuild as zypper just checks for packages with same version-
+release in repos
+
+---



Other differences:
--
++ nagios-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.DX9fda/_old  2014-06-30 21:45:39.0 +0200
+++ /var/tmp/diff_new_pack.DX9fda/_new  2014-06-30 21:45:39.0 +0200
@@ -20,7 +20,7 @@
 Summary:Nagios plugin for checking software updates
 License:BSD-4-Clause
 Group:  System/Monitoring
-Version:1.76
+Version:1.80
 Release:0
 Url:http://en.opensuse.org/Nagios-plugins-zypper
 Source0:check_zypper.pl

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.DX9fda/_old  2014-06-30 21:45:39.0 +0200
+++ /var/tmp/diff_new_pack.DX9fda/_new  2014-06-30 21:45:39.0 +0200
@@ -50,11 +50,11 @@
 
 # constants
 $PROGNAME = check_zypper;
-$VERSION  = '1.76';
+$VERSION  = '1.80';
 $DEBUG= 0;
 
 # variables
-our ( $opt_V, $opt_h, $opt_i, $opt_w, $opt_c, $opt_f, $opt_o, $opt_p, $opt_r, 
$opt_s, $opt_t, $opt_u, $opt_v );
+our ( $opt_V, $opt_h, $opt_i, $opt_w, $opt_c, $opt_f, $opt_l, $opt_o, $opt_p, 
$opt_r, $opt_s, $opt_t, $opt_u, $opt_v );
 our $zypper  = '/usr/bin/zypper';
 our $zypperopt   = '--non-interactive --no-gpg-checks xml-updates';
 our $sudo= '/usr/bin/sudo';
@@ -123,26 +123,26 @@
 
 sub get_distribution($) {
 my ($file) = @_;
-   my %dist   = (
-   'name'= '',
-   'version' = '',
-   'release' = '0',
-   );
+my %dist   = (
+'name'= '',
+'version' = '',
+'release' = '0',
+);
 open( RELEASE, $file ) || warn(Could not open $file\n);
 while (RELEASE) {
 if (/^SUSE Linux Enterprise/) {
 $dist{'name'} = 'SLE';
 }
-   elsif (/^openSUSE/){
-   $dist{'name'} = 'openSUSE';
-   }
+elsif (/^openSUSE/){
+$dist{'name'} = 'openSUSE';
+}
 if (/^VERSION/) {
 my ($version) = $_ =~ m/VERSION = (.*)/;
-   $dist{'version'}=trim($version);
+$dist{'version'}=trim($version);
 }
 if (/^PATCHLEVEL/) {
 my ($release) = $_ =~ m/PATCHLEVEL = (.*)/;
-   $dist{'release'}=trim($release);
+$dist{'release'}=trim($release);
 }
 }
 close(RELEASE);
@@ -206,6 +206,11 @@
 print   Default value is: $opt_t seconds\n;
 print   -u, --check-vendor\n;
 print   Check if installed packages are not from a supported 
vendor.\n;
+print   -l, --check-local\n;
+print   Check for local packages that are not in any repository. 
NOTE: zypper just searches for\n;
+print   exact the same version-release in the repositories, so if the 
repositories do not contain\n;
+print   old versions of the packages, this check may always produce a 
warning.\n;
+print   This check does not work on SLE-10\n;
 print   -v, --verbose_output\n;
 print   Print more information (useful only with Nagios v3.x).\n;
 print   -w, --warning\n;
@@ -249,7 +254,7 @@
 chomp $line;
 print STDERR LINE: $line\n if ($DEBUG);
 # error handling
-return ( ERROR:  . xml_re_escape($line), $ERRORS{'CRITICAL'} 
) if ( $line =~ /Could not access the package manager engine.*/ );  

+return ( ERROR:  . xml_re_escape($line), $ERRORS{'CRITICAL'} 
) if ( $line =~ /Could not access the package manager engine.*/ );
 return ( ERROR:  . xml_re_escape($line), $ERRORS{'CRITICAL'} 
) if ( $line =~ /Could not refresh repository.*/ );
 return ( ERROR:  . xml_re_escape($line), $ERRORS{'CRITICAL'} 
) if ( $line =~ /There are no enabled repositories 

commit nagios-plugins-zypper for openSUSE:Factory

2014-06-16 Thread h_root
Hello community,

here is the log from the commit of package nagios-plugins-zypper for 
openSUSE:Factory checked in at 2014-06-16 21:28:18

Comparing /work/SRC/openSUSE:Factory/nagios-plugins-zypper (Old)
 and  /work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new (New)


Package is nagios-plugins-zypper

Changes:

--- 
/work/SRC/openSUSE:Factory/nagios-plugins-zypper/nagios-plugins-zypper.changes  
2013-10-08 10:56:23.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new/nagios-plugins-zypper.changes
 2014-06-16 21:28:19.0 +0200
@@ -1,0 +2,12 @@
+Fri Jun 13 09:34:00 UTC 2014 - l...@linux-schulserver.de
+
+- update to 1.76:
+  + SLE 12 packages belong to SUSE LLC https://www.suse.com/
+
+---
+Fri Jun  6 17:41:09 UTC 2014 - l...@linux-schulserver.de
+
+- update to 1.75:
+  + check for local packages (installed not from a repository)
+
+---



Other differences:
--
++ nagios-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.Xo5BUf/_old  2014-06-16 21:28:20.0 +0200
+++ /var/tmp/diff_new_pack.Xo5BUf/_new  2014-06-16 21:28:20.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nagios-plugins-zypper
 #
-# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012-2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -20,7 +20,7 @@
 Summary:Nagios plugin for checking software updates
 License:BSD-4-Clause
 Group:  System/Monitoring
-Version:1.50
+Version:1.76
 Release:0
 Url:http://en.opensuse.org/Nagios-plugins-zypper
 Source0:check_zypper.pl
@@ -43,7 +43,7 @@
 
 %description
 This plugin checks for software updates on systems that use package
-management systems based on the zypper command found in openSUSE.
+management systems based on the zypper command found in (open)SUSE.
 
 It checks for security, recommended and optional patches and also for
 optional package updates.

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.Xo5BUf/_old  2014-06-16 21:28:20.0 +0200
+++ /var/tmp/diff_new_pack.Xo5BUf/_new  2014-06-16 21:28:20.0 +0200
@@ -50,7 +50,7 @@
 
 # constants
 $PROGNAME = check_zypper;
-$VERSION  = '1.50';
+$VERSION  = '1.76';
 $DEBUG= 0;
 
 # variables
@@ -69,6 +69,7 @@
 our @patchignore = ();
 our @packageignore   = ();
 our @packagewhitelist= ();
+our @localwhitelist  = ();
 our $patchlevel  = 0;
 our $exitcode= 0;
 our %ERRORS  = (
@@ -86,10 +87,10 @@
 0 = 'OK',
 );
 our %supported_release = (
-'openSUSE' = [ '12.1', '12.2', '12.3', '13.1' ],
-'SLE'  = [ '10.4', '11.2' , '11.3' ],
+'openSUSE' = [ '12.3', '13.1', '13.2' ],
+'SLE'  = [ '10.4', '11.3', '12.0' ],
 );
-$opt_w = 'recommended,optional,unsupported';
+$opt_w = 'recommended,optional,unsupported,local_package';
 $opt_c = 'security';
 $opt_f = $releasefile;
 $opt_t = '120';
@@ -181,7 +182,9 @@
 print   package:libtiff3\n;
 print   package:libtiff-devel\n;
 print   # comment\n;
-print   whitelist:aaa_base\n\n;
+print   whitelist:aaa_base\n;
+print   # comment\n;
+print   local_package:mypackage\n\n;
 print   -o, --ignore_outdated\n;
 print   Don't warn if a repository is outdated.\n;
 print   -p, --no_perfdata\n;
@@ -201,6 +204,8 @@
 print   -t, --timeout\n;
 print   Just in case of problems, let's not hang Nagios and define a 
timeout.\n;
 print   Default value is: $opt_t seconds\n;
+print   -u, --check-vendor\n;
+print   Check if installed packages are not from a supported 
vendor.\n;
 print   -v, --verbose_output\n;
 print   Print more information (useful only with Nagios v3.x).\n;
 print   -w, --warning\n;
@@ -216,7 +221,7 @@
 
 sub print_help {
 my $exit = shift || undef;
-print Copyright (c) 2009, Novell, Inc.\n\n;
+print Copyright (c) 2009-2014, Novell, Inc.\n\n;
 print_usage();
 print \n;
 mysupport();
@@ -326,7 +331,7 @@
 }
 
 sub check($) {
-   my ($dist) = @_;
+my ($dist) = @_;
 my ( $status, $ret_str, $error );
 my $secstr   = '';
 my $recstr   = '';
@@ -334,12 +339,14 @@
 my $pacstr   = '';
 my $warnstr  = '';
 my $unsupstr = '';
+my $local_pacstr = '';
 my $update_avail = 0;
 my %packagelist;
 my @unsup_packagelist = ();
+my @loc_packagelist = ();
 
 if ($opt_u) {
-

commit nagios-plugins-zypper for openSUSE:Factory

2013-10-08 Thread h_root
Hello community,

here is the log from the commit of package nagios-plugins-zypper for 
openSUSE:Factory checked in at 2013-10-08 10:56:22

Comparing /work/SRC/openSUSE:Factory/nagios-plugins-zypper (Old)
 and  /work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new (New)


Package is nagios-plugins-zypper

Changes:

--- 
/work/SRC/openSUSE:Factory/nagios-plugins-zypper/nagios-plugins-zypper.changes  
2013-09-27 17:48:58.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new/nagios-plugins-zypper.changes
 2013-10-08 10:56:23.0 +0200
@@ -1,0 +2,7 @@
+Mon Oct  7 09:37:25 UTC 2013 - l...@linux-schulserver.de
+
+Update to 1.50:
++ also handle out-of-date for outdated repositories (bnc#839839)
++ SLE-11-SP1 is not supported any more
+
+---



Other differences:
--
++ nagios-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.FrAaHv/_old  2013-10-08 10:56:25.0 +0200
+++ /var/tmp/diff_new_pack.FrAaHv/_new  2013-10-08 10:56:25.0 +0200
@@ -20,7 +20,7 @@
 Summary:Nagios plugin for checking software updates
 License:BSD-4-Clause
 Group:  System/Monitoring
-Version:1.49
+Version:1.50
 Release:0
 Url:http://en.opensuse.org/Nagios-plugins-zypper
 Source0:check_zypper.pl

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.FrAaHv/_old  2013-10-08 10:56:25.0 +0200
+++ /var/tmp/diff_new_pack.FrAaHv/_new  2013-10-08 10:56:25.0 +0200
@@ -50,7 +50,7 @@
 
 # constants
 $PROGNAME = check_zypper;
-$VERSION  = '1.49';
+$VERSION  = '1.50';
 $DEBUG= 0;
 
 # variables
@@ -87,7 +87,7 @@
 );
 our %supported_release = (
 'openSUSE' = [ '12.1', '12.2', '12.3', '13.1' ],
-'SLE'  = [ '10.4', '11.1', '11.2' , '11.3' ],
+'SLE'  = [ '10.4', '11.2' , '11.3' ],
 );
 $opt_w = 'recommended,optional,unsupported';
 $opt_c = 'security';
@@ -369,12 +369,13 @@
 return ( 'UNKNOWN: ' . xml_re_escape($_), 'UNKNOWN' ) if (/Error 
message:/);
 return ( 'UNKNOWN: ' . xml_re_escape($_), 'UNKNOWN' ) if (/A ZYpp 
transaction is already in progress./);
 return ( 'UNKNOWN: ' . xml_re_escape($_), 'UNKNOWN' ) if (/System 
management is locked/);
-if (/out-of-date/) {
-print STDERR WARNING: outdated repository found\n if 
($DEBUG);
+if ((/Repository.*is out-of-date/) || (/Repository.*outdated/)) {
+print STDERR WARNING: possibly outdated repository found\n 
if ($DEBUG);
 if ( !$opt_o ) {
 $error   = check_errorcode('security');
-$warnstr = At least one of your Repositories is out of 
date. Please run \zypper refresh\ as root to update it. ;
+$warnstr = At least one of your Repositories might be out 
of date. Please run \zypper refresh\ as root to update it. ;
 $warnstr .= \n if ($opt_v);
+next;
 }
 }
 if (/message type=\warning\(.*)\/message/) {

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



commit nagios-plugins-zypper for openSUSE:Factory

2013-09-27 Thread h_root
Hello community,

here is the log from the commit of package nagios-plugins-zypper for 
openSUSE:Factory checked in at 2013-09-27 17:48:56

Comparing /work/SRC/openSUSE:Factory/nagios-plugins-zypper (Old)
 and  /work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new (New)


Package is nagios-plugins-zypper

Changes:

--- 
/work/SRC/openSUSE:Factory/nagios-plugins-zypper/nagios-plugins-zypper.changes  
2013-08-05 20:48:35.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new/nagios-plugins-zypper.changes
 2013-09-27 17:48:58.0 +0200
@@ -1,0 +2,6 @@
+Fri Aug 30 13:52:41 UTC 2013 - l...@linux-schulserver.de
+
+- also use the keyword Softwarestack as indication for an update 
+  of the software stack as such ( bnc#830658 )
+
+---



Other differences:
--
++ nagios-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.1bmaS5/_old  2013-09-27 17:48:59.0 +0200
+++ /var/tmp/diff_new_pack.1bmaS5/_new  2013-09-27 17:48:59.0 +0200
@@ -20,7 +20,7 @@
 Summary:Nagios plugin for checking software updates
 License:BSD-4-Clause
 Group:  System/Monitoring
-Version:1.48
+Version:1.49
 Release:0
 Url:http://en.opensuse.org/Nagios-plugins-zypper
 Source0:check_zypper.pl

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.1bmaS5/_old  2013-09-27 17:48:59.0 +0200
+++ /var/tmp/diff_new_pack.1bmaS5/_new  2013-09-27 17:48:59.0 +0200
@@ -50,7 +50,7 @@
 
 # constants
 $PROGNAME = check_zypper;
-$VERSION  = '1.48';
+$VERSION  = '1.49';
 $DEBUG= 0;
 
 # variables
@@ -363,6 +363,7 @@
 
 # error handling
 return ( 'There is a pending update of the update-stack itself. 
This plugin can not check if there are more updates pending.', 'CRITICAL') if 
(/softwaremgmt/);
+return ( 'There is a pending update of the update-stack itself. 
This plugin can not check if there are more updates pending.', 'CRITICAL') if 
(/Softwarestack/);
 return ( 'UNKNOWN: ' . xml_re_escape($_), 'UNKNOWN' ) if (/not 
found on medium/);
 return ( 'UNKNOWN: ' . xml_re_escape($_), 'UNKNOWN' ) if (/I\/O 
error: Can't provide/);
 return ( 'UNKNOWN: ' . xml_re_escape($_), 'UNKNOWN' ) if (/Error 
message:/);

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



commit nagios-plugins-zypper for openSUSE:Factory

2013-08-05 Thread h_root
Hello community,

here is the log from the commit of package nagios-plugins-zypper for 
openSUSE:Factory checked in at 2013-08-05 20:48:33

Comparing /work/SRC/openSUSE:Factory/nagios-plugins-zypper (Old)
 and  /work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new (New)


Package is nagios-plugins-zypper

Changes:

--- 
/work/SRC/openSUSE:Factory/nagios-plugins-zypper/nagios-plugins-zypper.changes  
2013-02-23 16:38:43.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new/nagios-plugins-zypper.changes
 2013-08-05 20:48:35.0 +0200
@@ -1,0 +2,33 @@
+Wed Jul 31 16:27:55 UTC 2013 - l...@linux-schulserver.de
+
+- update to 1.48:
+  + handle updates of the software stack as cricital unless we 
+get a fix for bnc#832605 
+(workaround for bnc#830658)
+
+---
+Mon Jul 22 16:53:44 CEST 2013 - r...@suse.de
+
+- change logic looking for ignored packages/patches:
+  - use exact match, not just substring
+  - check also for match of name-version in the ignorelist
+allowing to ignore specific updates 
+
+---
+Thu May 16 13:51:38 UTC 2013 - l...@linux-schulserver.de
+
+- update to 1.47:
+  + return error if zypper is already running and blocking the 
+refresh of the repository
+
+---
+Tue Apr 23 17:31:59 UTC 2013 - l...@linux-schulserver.de
+
+- do not call openSUSE 13.1 discontinued
+
+---
+Tue Apr 16 01:07:10 CEST 2013 - r...@suse.de
+
+- do not call SLE11-SP3 discontinued
+
+---



Other differences:
--
++ nagios-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.Imsn0k/_old  2013-08-05 20:48:36.0 +0200
+++ /var/tmp/diff_new_pack.Imsn0k/_new  2013-08-05 20:48:36.0 +0200
@@ -20,7 +20,7 @@
 Summary:Nagios plugin for checking software updates
 License:BSD-4-Clause
 Group:  System/Monitoring
-Version:1.45
+Version:1.48
 Release:0
 Url:http://en.opensuse.org/Nagios-plugins-zypper
 Source0:check_zypper.pl

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.Imsn0k/_old  2013-08-05 20:48:36.0 +0200
+++ /var/tmp/diff_new_pack.Imsn0k/_new  2013-08-05 20:48:36.0 +0200
@@ -50,7 +50,7 @@
 
 # constants
 $PROGNAME = check_zypper;
-$VERSION  = '1.45';
+$VERSION  = '1.48';
 $DEBUG= 0;
 
 # variables
@@ -86,8 +86,8 @@
 0 = 'OK',
 );
 our %supported_release = (
-'openSUSE' = [ '12.1', '12.2', '12.3' ],
-'SLE'  = [ '10.4', '11.1', '11.2' ],
+'openSUSE' = [ '12.1', '12.2', '12.3', '13.1' ],
+'SLE'  = [ '10.4', '11.1', '11.2' , '11.3' ],
 );
 $opt_w = 'recommended,optional,unsupported';
 $opt_c = 'security';
@@ -244,6 +244,7 @@
 chomp $line;
 print STDERR LINE: $line\n if ($DEBUG);
 # error handling
+return ( ERROR:  . xml_re_escape($line), $ERRORS{'CRITICAL'} 
) if ( $line =~ /Could not access the package manager engine.*/ );  

 return ( ERROR:  . xml_re_escape($line), $ERRORS{'CRITICAL'} 
) if ( $line =~ /Could not refresh repository.*/ );
 return ( ERROR:  . xml_re_escape($line), $ERRORS{'CRITICAL'} 
) if ( $line =~ /There are no enabled repositories defined.*/ );
 return ( ERROR:  . xml_re_escape($line), $ERRORS{'CRITICAL'} 
) if ( $line =~ /Digest verification failed.*/ );
@@ -343,7 +344,7 @@
 my $status   = 'new';
 foreach my $name ( sort(@unsup_packagelist) ) {
 chomp($name);
-if ( grep {/\Q$name\E/} @packagewhitelist ) {
+if ( grep {$_ eq $name} @packagewhitelist ) {
 print STDERR WARINING: ignoring $name as it is in 
\@packagewhitelist\n if ($DEBUG);
 next;
 }
@@ -361,6 +362,7 @@
 print STDERR LINE: $_\n if ($DEBUG);
 
 # error handling
+return ( 'There is a pending update of the update-stack itself. 
This plugin can not check if there are more updates pending.', 'CRITICAL') if 
(/softwaremgmt/);
 return ( 'UNKNOWN: ' . xml_re_escape($_), 'UNKNOWN' ) if (/not 
found on medium/);
 return ( 'UNKNOWN: ' . xml_re_escape($_), 'UNKNOWN' ) if (/I\/O 
error: Can't provide/);
 return ( 'UNKNOWN: ' . xml_re_escape($_), 'UNKNOWN' ) if (/Error 
message:/);
@@ -384,7 +386,7 @@
   || ( ( $dist-{'name'} eq SLE )  ( $dist-{'version'} eq 
10 ) ) ) {
 my ( $url, $name, $version, 

commit nagios-plugins-zypper for openSUSE:Factory

2013-02-23 Thread h_root
Hello community,

here is the log from the commit of package nagios-plugins-zypper for 
openSUSE:Factory checked in at 2013-02-23 16:38:42

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  
2013-02-02 19:33:36.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new/nagios-plugins-zypper.changes
 2013-02-23 16:38:43.0 +0100
@@ -1,0 +2,5 @@
+Sat Feb 23 11:43:30 UTC 2013 - l...@linux-schulserver.de
+
+- fix path names to grep, awk and gawk for distributions  12.1
+
+---



Other differences:
--
++ nagios-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.TB9VbV/_old  2013-02-23 16:38:45.0 +0100
+++ /var/tmp/diff_new_pack.TB9VbV/_new  2013-02-23 16:38:45.0 +0100
@@ -69,6 +69,12 @@
 %else
 install -D -m644 %{SOURCE1} 
%{buildroot}%{_sysconfdir}/apparmor/profiles/extras/usr.lib.nagios.plugins.check_zypper
 %endif
+echo 0%{?suse_version}
+%if 0%{?suse_version}  01210
+sed -i s|/bin/grep|%{_bindir}/grep|g; \
+   s|/bin/gawk|%{_bindir}/gawk|g; \
+   s|/bin/awk|%{_bindir}/awk|g; 
%buildroot/%{nagios_plugindir}/check_zypper 
%{buildroot}%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_zypper
+%endif
 
 %clean
 rm -rf %buildroot

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



commit nagios-plugins-zypper for openSUSE:Factory

2013-02-02 Thread h_root
Hello community,

here is the log from the commit of package nagios-plugins-zypper for 
openSUSE:Factory checked in at 2013-02-02 19:33: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  
2013-01-20 08:05:53.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new/nagios-plugins-zypper.changes
 2013-02-02 19:33:36.0 +0100
@@ -1,0 +2,11 @@
+Fri Feb  1 16:18:24 UTC 2013 - l...@linux-schulserver.de
+
+- update to 1.45:
+  + use /usr/sbin/zypp-refresh if it exists 
+
+---
+Thu Jan 24 11:53:47 UTC 2013 - l...@linux-schulserver.de
+
+- include abstractions for rpm and ssl
+
+---

New:

  apparmor-abstractions-rpm
  apparmor-abstractions-ssl



Other differences:
--
++ nagios-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.R6rrkZ/_old  2013-02-02 19:33:37.0 +0100
+++ /var/tmp/diff_new_pack.R6rrkZ/_new  2013-02-02 19:33:37.0 +0100
@@ -20,12 +20,14 @@
 Summary:Nagios plugin for checking software updates
 License:BSD-4-Clause
 Group:  System/Monitoring
-Version:1.44
+Version:1.45
 Release:0
 Url:http://en.opensuse.org/Nagios-plugins-zypper
 Source0:check_zypper.pl
 Source1:usr.lib.nagios.plugins.check_zypper 
 Source2:apparmor-abstractions-zypp
+Source3:apparmor-abstractions-ssl
+Source4:apparmor-abstractions-rpm
 Requires:   gawk
 Requires:   grep
 Requires:   rpm
@@ -61,6 +63,8 @@
 install -D -m755 %{SOURCE0} %buildroot/%{nagios_plugindir}/check_zypper
 %if 0%{?suse_version}  01100
 install -D -m644 %{SOURCE1} 
%{buildroot}%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_zypper
+install -D -m644 %{SOURCE4} 
%{buildroot}%{_sysconfdir}/apparmor.d/abstractions/rpm
+install -D -m644 %{SOURCE3} 
%{buildroot}%{_sysconfdir}/apparmor.d/abstractions/ssl
 install -D -m644 %{SOURCE2} 
%{buildroot}%{_sysconfdir}/apparmor.d/abstractions/zypp
 %else
 install -D -m644 %{SOURCE1} 
%{buildroot}%{_sysconfdir}/apparmor/profiles/extras/usr.lib.nagios.plugins.check_zypper
@@ -76,6 +80,8 @@
 %dir %{nagios_plugindir}
 %dir %{_sysconfdir}/apparmor.d
 %dir %{_sysconfdir}/apparmor.d/abstractions
+%config(noreplace) %{_sysconfdir}/apparmor.d/abstractions/rpm
+%config(noreplace) %{_sysconfdir}/apparmor.d/abstractions/ssl
 %config(noreplace) %{_sysconfdir}/apparmor.d/abstractions/zypp
 %if 0%{?suse_version}  01100
 %config(noreplace) 
%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_zypper

++ apparmor-abstractions-rpm ++
/proc/filesystems r,
/etc/rpm/ r,
/etc/rpm/macros* r,
/var/lib/rpm/** rlk,

++ apparmor-abstractions-ssl ++
/etc/ssl/openssl.cnf r,
/etc/ssl/certs/ r,
/etc/ssl/certs/* r,
/proc/sys/crypto/fips_enabled r,

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.R6rrkZ/_old  2013-02-02 19:33:37.0 +0100
+++ /var/tmp/diff_new_pack.R6rrkZ/_new  2013-02-02 19:33:37.0 +0100
@@ -50,7 +50,7 @@
 
 # constants
 $PROGNAME = check_zypper;
-$VERSION  = '1.44';
+$VERSION  = '1.45';
 $DEBUG= 0;
 
 # variables
@@ -58,6 +58,7 @@
 our $zypper  = '/usr/bin/zypper';
 our $zypperopt   = '--non-interactive --no-gpg-checks xml-updates';
 our $sudo= '/usr/bin/sudo';
+our $zypp_refresh= '/usr/sbin/zypp-refresh';
 our $refresh_wrapper = '/usr/sbin/zypp-refresh-wrapper';
 our $use_sudo= 'unset LANG; ';
 our $releasefile = '/etc/SuSE-release';
@@ -234,8 +235,25 @@
 
 sub refresh_zypper($) {
 my ($dist) = @_;
-if ( -x $refresh_wrapper ) {
-print STDERR Trying: $refresh_wrapper 2/dev/null 12\n if ($DEBUG);
+if ( -x $zypp_refresh ) {
+print STDERR INFO: Trying $zypp_refresh 21\n if ($DEBUG);
+if ( open( WRAPPER, $refresh_wrapper 21 | ) ) {
+my @wrapper_out = WRAPPER;
+close(WRAPPER);
+foreach my $line (@wrapper_out) {
+chomp $line;
+print STDERR LINE: $line\n if ($DEBUG);
+# error handling
+return ( ERROR:  . xml_re_escape($line), $ERRORS{'CRITICAL'} 
) if ( $line =~ /Could not refresh repository.*/ );
+return ( ERROR:  . xml_re_escape($line), $ERRORS{'CRITICAL'} 
) if ( $line =~ /There are no enabled repositories defined.*/ );
+return ( ERROR:  . xml_re_escape($line), $ERRORS{'CRITICAL'} 
) if ( 

commit nagios-plugins-zypper for openSUSE:Factory

2013-01-19 Thread h_root
Hello community,

here is the log from the commit of package nagios-plugins-zypper for 
openSUSE:Factory checked in at 2013-01-20 08:05:52

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  
2013-01-17 09:50:29.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new/nagios-plugins-zypper.changes
 2013-01-20 08:05:53.0 +0100
@@ -1,0 +2,5 @@
+Thu Jan 17 10:55:30 UTC 2013 - l...@linux-schulserver.de
+
+- also install abstractions/zypp until this is merged with zypper
+
+---

New:

  apparmor-abstractions-zypp



Other differences:
--
++ nagios-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.WAK5Gi/_old  2013-01-20 08:05:55.0 +0100
+++ /var/tmp/diff_new_pack.WAK5Gi/_new  2013-01-20 08:05:55.0 +0100
@@ -25,6 +25,7 @@
 Url:http://en.opensuse.org/Nagios-plugins-zypper
 Source0:check_zypper.pl
 Source1:usr.lib.nagios.plugins.check_zypper 
+Source2:apparmor-abstractions-zypp
 Requires:   gawk
 Requires:   grep
 Requires:   rpm
@@ -60,6 +61,7 @@
 install -D -m755 %{SOURCE0} %buildroot/%{nagios_plugindir}/check_zypper
 %if 0%{?suse_version}  01100
 install -D -m644 %{SOURCE1} 
%{buildroot}%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_zypper
+install -D -m644 %{SOURCE2} 
%{buildroot}%{_sysconfdir}/apparmor.d/abstractions/zypp
 %else
 install -D -m644 %{SOURCE1} 
%{buildroot}%{_sysconfdir}/apparmor/profiles/extras/usr.lib.nagios.plugins.check_zypper
 %endif
@@ -72,14 +74,16 @@
 # avoid build dependecy of nagios - own the dirs
 %dir %{nagios_libdir}
 %dir %{nagios_plugindir}
-%if 0%{?suse_version}  01100
 %dir %{_sysconfdir}/apparmor.d
+%dir %{_sysconfdir}/apparmor.d/abstractions
+%config(noreplace) %{_sysconfdir}/apparmor.d/abstractions/zypp
+%if 0%{?suse_version}  01100
 %config(noreplace) 
%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_zypper
 %else
 %dir %{_sysconfdir}/apparmor
 %dir %{_sysconfdir}/apparmor/profiles
 %dir %{_sysconfdir}/apparmor/profiles/extras
-%config 
%{_sysconfdir}/apparmor/profiles/extras/usr.lib.nagios.plugins.check_zypper
+%config(noreplace) 
%{_sysconfdir}/apparmor/profiles/extras/usr.lib.nagios.plugins.check_zypper
 %endif
 %{nagios_plugindir}/check_zypper
 

++ apparmor-abstractions-zypp ++
#include abstractions/rpm
#include abstractions/ssl
#include abstractions/nameservice

network inet,
network inet6,

/etc/sysconfig/proxy r,
/etc/sysconfig/storage r,
/proc/filesystems r,
/var/run/zypp.pid rwlk,
/etc/zypp/** r,
/etc/zypp/repos.d/ r,
/etc/zypp/repos.d/*.repo r,
/etc/zypp/services.d/ r,
/etc/zypp/services.d/*.repo r,
/etc/products.d/ r,
/etc/products.d/** r,
/var/adm/mount/ rw,
/var/adm/mount/** rwlk,
# /var/cache/zypp/raw/ r,
/var/cache/zypp/** rwlk,
/var/tmp/TmpDir.*/ r,
/var/tmp/TmpDir.*/** r,
/var/tmp/zypp.*/ rw,
/var/tmp/zypp.*/** rwlk,
/var/tmp/TmpFile.* rwlk,
/var/tmp/TmpDir.*/ rw,
/var/tmp/TmpDir.*/** rwlk,
/var/tmp/ r,
/var/tmp/AP_*/ rwlk,
/var/tmp/AP_*/** rwlk,
/sys/** r,
/sys/ r,
/var/lib/zypp/** rwlk,
-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org



commit nagios-plugins-zypper for openSUSE:Factory

2013-01-17 Thread h_root
Hello community,

here is the log from the commit of package nagios-plugins-zypper for 
openSUSE:Factory checked in at 2013-01-17 09:50:27

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-06-29 13:25:43.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new/nagios-plugins-zypper.changes
 2013-01-17 09:50:29.0 +0100
@@ -1,0 +2,10 @@
+Tue Jan 15 19:24:16 UTC 2013 - l...@linux-schulserver.de
+
+- update to 1.44:
+  + openSUSE 11.4 are unsupported
+  + openSUSE 12.3 becomes supported
+- improved apparmor profile: thanks to Marcus Rückert
+- place apparmor profile for older distributions (using sudo) in 
+  the extras directory as we did not test it there
+
+---



Other differences:
--
++ nagios-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.F6QnxM/_old  2013-01-17 09:50:30.0 +0100
+++ /var/tmp/diff_new_pack.F6QnxM/_new  2013-01-17 09:50:30.0 +0100
@@ -20,7 +20,7 @@
 Summary:Nagios plugin for checking software updates
 License:BSD-4-Clause
 Group:  System/Monitoring
-Version:1.42
+Version:1.44
 Release:0
 Url:http://en.opensuse.org/Nagios-plugins-zypper
 Source0:check_zypper.pl
@@ -58,7 +58,11 @@
 
 %install
 install -D -m755 %{SOURCE0} %buildroot/%{nagios_plugindir}/check_zypper
+%if 0%{?suse_version}  01100
 install -D -m644 %{SOURCE1} 
%{buildroot}%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_zypper
+%else
+install -D -m644 %{SOURCE1} 
%{buildroot}%{_sysconfdir}/apparmor/profiles/extras/usr.lib.nagios.plugins.check_zypper
+%endif
 
 %clean
 rm -rf %buildroot
@@ -68,8 +72,15 @@
 # avoid build dependecy of nagios - own the dirs
 %dir %{nagios_libdir}
 %dir %{nagios_plugindir}
+%if 0%{?suse_version}  01100
 %dir %{_sysconfdir}/apparmor.d
 %config(noreplace) 
%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_zypper
+%else
+%dir %{_sysconfdir}/apparmor
+%dir %{_sysconfdir}/apparmor/profiles
+%dir %{_sysconfdir}/apparmor/profiles/extras
+%config 
%{_sysconfdir}/apparmor/profiles/extras/usr.lib.nagios.plugins.check_zypper
+%endif
 %{nagios_plugindir}/check_zypper
 
 %changelog

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.F6QnxM/_old  2013-01-17 09:50:30.0 +0100
+++ /var/tmp/diff_new_pack.F6QnxM/_new  2013-01-17 09:50:30.0 +0100
@@ -4,7 +4,7 @@
 # check_zypper - nagios plugin
 #
 # Copyright (C) 2008-2010, Novell, Inc.
-# Copyright (C) 2011-2012, SUSE Linux Products GmbH
+# Copyright (C) 2011-2013, SUSE Linux Products GmbH
 # Author: Lars Vogdt
 #
 # All rights reserved.
@@ -50,7 +50,7 @@
 
 # constants
 $PROGNAME = check_zypper;
-$VERSION  = '1.42';
+$VERSION  = '1.44';
 $DEBUG= 0;
 
 # variables
@@ -85,7 +85,7 @@
 0 = 'OK',
 );
 our %supported_release = (
-'openSUSE' = [ '11.4', '12.1', '12.2' ],
+'openSUSE' = [ '12.1', '12.2', '12.3' ],
 'SLE'  = [ '10.4', '11.1', '11.2' ],
 );
 $opt_w = 'recommended,optional,unsupported';
@@ -172,8 +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   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;
@@ -233,7 +233,7 @@
 }
 
 sub refresh_zypper($) {
-   my ($dist) = @_;
+my ($dist) = @_;
 if ( -x $refresh_wrapper ) {
 print STDERR Trying: $refresh_wrapper 2/dev/null 12\n if ($DEBUG);
 if ( open( WRAPPER, $refresh_wrapper 21 | ) ) {
@@ -243,9 +243,10 @@
 chomp $line;
 print STDERR LINE: $line\n if ($DEBUG);
 # error handling
-return ( ERROR:  . xml_re_escape($line), $ERRORS{'ERROR'} ) 
if ( $line =~ /Could not refresh repository.*/ );
-return ( ERROR:  . xml_re_escape($line), $ERRORS{'ERROR'} ) 
if ( $line =~ /Digest verification failed.*/ );
-return ( ERROR:  . xml_re_escape($line), $ERRORS{'ERROR'} ) 
if ( $line =~ /refusing file.*wrong digest.*/ );
+return ( ERROR:  . xml_re_escape($line), $ERRORS{'CRITICAL'} 
) if ( $line =~ /Could not 

commit nagios-plugins-zypper for openSUSE:Factory

2012-06-29 Thread h_root
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.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new/nagios-plugins-zypper.changes
 2012-06-29 13:25:43.0 +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.0 +0200
+++ /var/tmp/diff_new_pack.QFxHpB/_new  2012-06-29 13:25:45.0 +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.0 +0200
+++ /var/tmp/diff_new_pack.QFxHpB/_new  2012-06-29 13:25:45.0 +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



commit nagios-plugins-zypper for openSUSE:Factory

2012-05-08 Thread h_root
Hello community,

here is the log from the commit of package nagios-plugins-zypper for 
openSUSE:Factory checked in at 2012-05-08 12:28:10

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  
2011-11-02 12:07:31.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new/nagios-plugins-zypper.changes
 2012-05-08 12:28:15.0 +0200
@@ -1,0 +2,7 @@
+Sat May  5 23:38:16 UTC 2012 - l...@linux-schulserver.de
+
+- update to 1.41:
+  + openSUSE 11.2 and 11.3 are unsupported
+  + openSUSE 12.2 is supported
+
+---



Other differences:
--
++ nagios-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.AFQbA2/_old  2012-05-08 12:28:16.0 +0200
+++ /var/tmp/diff_new_pack.AFQbA2/_new  2012-05-08 12:28:16.0 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package nagios-plugins-zypper
 #
-# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
+# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -15,16 +15,14 @@
 # Please submit bugfixes or comments via http://bugs.opensuse.org/
 #
 
-# norootforbuild
-
 
 Name:   nagios-plugins-zypper
 Summary:Nagios plugin for checking software updates
-Version:1.40
-Release:1
-Url:http://en.opensuse.org/Nagios-plugins-zypper
 License:BSD-4-Clause
 Group:  System/Monitoring
+Version:1.41
+Release:0
+Url:http://en.opensuse.org/Nagios-plugins-zypper
 Source0:check_zypper.pl
 Requires:   gawk
 Requires:   grep
@@ -35,8 +33,8 @@
 %endif
 Requires:   zypper
 BuildArch:  noarch
+BuildRequires:  nagios-rpm-macros
 BuildRoot:  %{_tmppath}/%{name}-%{version}-build
-%definelibexecdir %_prefix/lib/nagios/plugins
 
 %description
 This plugin checks for software updates on systems that use package
@@ -52,17 +50,12 @@
 the -v option.
 
 
-
-Authors:
-
-Lars Vogdt
-
 %prep
 
 %build
 
 %install
-install -D -m755 %{SOURCE0} %buildroot/%libexecdir/check_zypper
+install -D -m755 %{SOURCE0} %buildroot/%{nagios_plugindir}/check_zypper
 
 %clean
 rm -rf %buildroot
@@ -70,8 +63,8 @@
 %files 
 %defattr(-,root,root)
 # avoid build dependecy of nagios - own the dirs
-%dir %_prefix/lib/nagios
-%dir %libexecdir
-%libexecdir/check_zypper
+%dir %{nagios_libdir}
+%dir %{nagios_plugindir}
+%{nagios_plugindir}/check_zypper
 
 %changelog

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.AFQbA2/_old  2012-05-08 12:28:16.0 +0200
+++ /var/tmp/diff_new_pack.AFQbA2/_new  2012-05-08 12:28:16.0 +0200
@@ -4,6 +4,7 @@
 # check_zypper - nagios plugin
 #
 # Copyright (C) 2008-2010, Novell, Inc.
+# Copyright (C) 2011-2012, SUSE Linux Products GmbH
 # Author: Lars Vogdt
 #
 # All rights reserved.
@@ -49,7 +50,7 @@
 
 # constants
 $PROGNAME = check_zypper;
-$VERSION  = '1.40';
+$VERSION  = '1.41';
 $DEBUG= 0;
 
 # variables
@@ -84,7 +85,7 @@
 0 = 'OK',
 );
 our %supported_release = (
-'openSUSE' = [ '11.2', '11.3', '11.4', '12.1' ],
+'openSUSE' = [ '11.4', '12.1', '12.2' ],
 'SLE'  = [ '10.4', '11.1', '11.2' ],
 );
 $opt_w = 'recommended,optional,unsupported';

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



commit nagios-plugins-zypper for openSUSE:Factory

2011-12-06 Thread h_root
Hello community,

here is the log from the commit of package nagios-plugins-zypper for 
openSUSE:Factory checked in at 2011-12-06 18:30:52

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:




Other differences:
--
++ nagios-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.tufBP7/_old  2011-12-06 18:52:30.0 +0100
+++ /var/tmp/diff_new_pack.tufBP7/_new  2011-12-06 18:52:30.0 +0100
@@ -23,7 +23,7 @@
 Version:1.40
 Release:1
 Url:http://en.opensuse.org/Nagios-plugins-zypper
-License:BSD4c
+License:BSD-4-Clause
 Group:  System/Monitoring
 Source0:check_zypper.pl
 Requires:   gawk

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



commit nagios-plugins-zypper for openSUSE:Factory

2011-11-02 Thread h_root
Hello community,

here is the log from the commit of package nagios-plugins-zypper for 
openSUSE:Factory checked in at 2011-11-02 12:07:29

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  
2011-09-23 02:14:11.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.nagios-plugins-zypper.new/nagios-plugins-zypper.changes
 2011-11-02 12:07:31.0 +0100
@@ -1,0 +2,7 @@
+Fri Oct 28 14:05:03 UTC 2011 - l...@linux-schulserver.de
+
+- update to 1.40:
+  + SLE-10-SP3 is unsupported
+  + openSUSE 12.1 and SLE-11-SP2 are supported
+
+---



Other differences:
--
++ nagios-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.mzcUF6/_old  2011-11-02 12:07:32.0 +0100
+++ /var/tmp/diff_new_pack.mzcUF6/_new  2011-11-02 12:07:32.0 +0100
@@ -20,7 +20,7 @@
 
 Name:   nagios-plugins-zypper
 Summary:Nagios plugin for checking software updates
-Version:1.39
+Version:1.40
 Release:1
 Url:http://en.opensuse.org/Nagios-plugins-zypper
 License:BSD4c

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.mzcUF6/_old  2011-11-02 12:07:32.0 +0100
+++ /var/tmp/diff_new_pack.mzcUF6/_new  2011-11-02 12:07:32.0 +0100
@@ -49,7 +49,7 @@
 
 # constants
 $PROGNAME = check_zypper;
-$VERSION  = '1.39';
+$VERSION  = '1.40';
 $DEBUG= 0;
 
 # variables
@@ -84,8 +84,8 @@
 0 = 'OK',
 );
 our %supported_release = (
-'openSUSE' = [ '11.2', '11.3', '11.4', '11.5' ],
-'SLE'  = [ '10.3', '10.4', '11.1' ],
+'openSUSE' = [ '11.2', '11.3', '11.4', '12.1' ],
+'SLE'  = [ '10.4', '11.1', '11.2' ],
 );
 $opt_w = 'recommended,optional,unsupported';
 $opt_c = 'security';

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



commit nagios-plugins-zypper for openSUSE:Factory

2011-03-24 Thread h_root

Hello community,

here is the log from the commit of package nagios-plugins-zypper for 
openSUSE:Factory
checked in at Thu Mar 24 10:59:30 CET 2011.




--- nagios-plugins-zypper/nagios-plugins-zypper.changes 2011-02-04 
09:21:07.0 +0100
+++ 
/mounts/work_src_done/STABLE/nagios-plugins-zypper/nagios-plugins-zypper.changes
2011-03-23 22:30:47.0 +0100
@@ -1,0 +2,6 @@
+Wed Mar 23 21:30:08 UTC 2011 - l...@linux-schulserver.de
+
+- update to 1.39:
+  + SLE-10-SP4 and openSUSE 11.5 are supported
+
+---

calling whatdependson for head-i586




Other differences:
--
++ nagios-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.9qAN1O/_old  2011-03-24 10:56:31.0 +0100
+++ /var/tmp/diff_new_pack.9qAN1O/_new  2011-03-24 10:56:31.0 +0100
@@ -20,7 +20,7 @@
 
 Name:   nagios-plugins-zypper
 Summary:Nagios plugin for checking software updates
-Version:1.38
+Version:1.39
 Release:1
 Url:http://en.opensuse.org/Nagios-plugins-zypper
 License:BSD4c

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.9qAN1O/_old  2011-03-24 10:56:31.0 +0100
+++ /var/tmp/diff_new_pack.9qAN1O/_new  2011-03-24 10:56:31.0 +0100
@@ -49,7 +49,7 @@
 
 # constants
 $PROGNAME = check_zypper;
-$VERSION  = '1.38';
+$VERSION  = '1.39';
 $DEBUG= 0;
 
 # variables
@@ -84,8 +84,8 @@
 0 = 'OK',
 );
 our %supported_release = (
-'openSUSE' = [ '11.2', '11.3', '11.4' ],
-'SLE'  = [ '10.3', '11.1' ],
+'openSUSE' = [ '11.2', '11.3', '11.4', '11.5' ],
+'SLE'  = [ '10.3', '10.4', '11.1' ],
 );
 $opt_w = 'recommended,optional,unsupported';
 $opt_c = 'security';






Remember to have fun...

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