commit monitoring-plugins-zypper for openSUSE:Factory

2020-08-19 Thread root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2020-08-19 18:54:07

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


Package is "monitoring-plugins-zypper"

Wed Aug 19 18:54:07 2020 rev:18 rq:827658 version:1.98.6

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2020-07-08 19:18:14.876056036 +0200
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new.3399/monitoring-plugins-zypper.changes
2020-08-19 18:56:30.355837045 +0200
@@ -1,0 +2,24 @@
+Mon Aug 10 14:58:53 UTC 2020 - Lars Vogdt 
+
+- Update to 1.98.6 (fixes boo#1173872)
+  Beside other, small updates, this release includes first support for the
+  rolling release named openSUSE Tumbleweed.
+
+  Per default, a Tumbleweed installation which is older than 30 days will 
trigger
+  a warning state - and an installation older than 60 days will trigger a
+  critical state. You can fine tune this behavior with the new command line
+  options --tw_outdated_warn and --tw_outdated_crit.
+
+  Other changes:
+  * use proper Copyright
+  * use Perl modules: POSIX and Time::Local
+  * die, if release-file could not be opened
+  * get rid of get_distribution_from_os_release() function: use 
+get_distribution() for all cases
+  * new test_tumbleweed() and check_returncode() functions (internal)
+  * trim quotation marks in trim() function
+  * added some os-release files for testing
+- Recommend perl only on openSUSE based distributions
+- Require needed Perl modules: Getopt::Long, POSIX, Time::Local
+
+---

Old:

  monitoring-plugins-zypper-1.98.5.tar.xz

New:

  monitoring-plugins-zypper-1.98.6.tar.xz



Other differences:
--
++ monitoring-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.1drZfE/_old  2020-08-19 18:56:32.311838084 +0200
+++ /var/tmp/diff_new_pack.1drZfE/_new  2020-08-19 18:56:32.315838087 +0200
@@ -26,13 +26,16 @@
 Summary:Check for software updates via zypper
 License:BSD-3-Clause
 Group:  System/Monitoring
-Version:1.98.5
+Version:1.98.6
 Release:0
 URL:https://github.com/lrupp/monitoring-plugins-zypper
 Source0:%{name}-%{version}.tar.xz
 Requires:   gawk
 Requires:   grep
 Requires:   rpm
+Requires:   perl(Getopt::Long)
+Requires:   perl(POSIX)
+Requires:   perl(Time::Local)
 %if 0%{?suse_version} < 1200
 BuildRequires:  xz
 %endif
@@ -40,9 +43,9 @@
 BuildRequires:  sudo
 Requires:   sudo
 %endif
+%if 0%{?suse_version}
 # nagios can execute the script with embedded perl
 Recommends: perl 
-%if 0%{?suse_version}
 Recommends: apparmor-parser
 BuildRequires:  apparmor-parser
 %endif

++ _service ++
--- /var/tmp/diff_new_pack.1drZfE/_old  2020-08-19 18:56:32.343838102 +0200
+++ /var/tmp/diff_new_pack.1drZfE/_new  2020-08-19 18:56:32.343838102 +0200
@@ -1,7 +1,7 @@
 

- v1.98.5
- 1.98.5
+ v1.98.6
+ 1.98.6
  git
  https://github.com/lrupp/monitoring-plugins-zypper.git
  monitoring-plugins-zypper
@@ -10,9 +10,9 @@
  monitoring-plugins-zypper.changes
 -->

-   
+   
  *.tar
  xz

-   
+   
 

++ monitoring-plugins-zypper-1.98.5.tar.xz -> 
monitoring-plugins-zypper-1.98.6.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/monitoring-plugins-zypper-1.98.5/README.md 
new/monitoring-plugins-zypper-1.98.6/README.md
--- old/monitoring-plugins-zypper-1.98.5/README.md  2020-07-02 
14:59:39.0 +0200
+++ new/monitoring-plugins-zypper-1.98.6/README.md  2020-08-10 
16:49:18.0 +0200
@@ -97,6 +97,15 @@
 
   -d, --debug
   Print debug output to STDERR
+
+  --tw_outdated_warn 
+Days before a Tumbleweed installation is seen as warning outdated.
+(default: 30 days)
+
+  --tw_outdated_crit 
+Days before a Tumbleweed installation is seen as critical outdated.
+(default: 60 days)
+
 ```
 
  The lines below contain all entries for your sudoers  file, if needed:
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/monitoring-plugins-zypper-1.98.5/check_zypper.pl 
new/monitoring-plugins-zypper-1.98.6/check_zypper.pl
--- old/monitoring-plugins-zypper-1.98.5/check_zypper.pl2020-07-02 
14:59:39.0 +0200
+++ new/monitoring-plugins-zypper-1.98.6/check_zypper.pl2020-08-10 
16:49:18.0 +0200
@@ -6,7 +6,7 @@
 # Copyright (C) 2008-2010, Novell, Inc.
 # Copyright (C) 2011-2014, SUSE Linux Pro

commit monitoring-plugins-zypper for openSUSE:Factory

2020-07-08 Thread root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2020-07-08 19:17:44

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


Package is "monitoring-plugins-zypper"

Wed Jul  8 19:17:44 2020 rev:17 rq:819265 version:1.98.5

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2019-12-21 12:33:24.743421186 +0100
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new.3060/monitoring-plugins-zypper.changes
2020-07-08 19:18:14.876056036 +0200
@@ -1,0 +2,6 @@
+Fri Jul  3 08:16:21 UTC 2020 - Ismail Dönmez 
+
+- Update to 1.98.5
+  * Adjust support status of SLE, Leap and Tumbleweed releases
+
+---

Old:

  monitoring-plugins-zypper-1.98.4.tar.xz

New:

  monitoring-plugins-zypper-1.98.5.tar.xz



Other differences:
--
++ monitoring-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.YnOI5D/_old  2020-07-08 19:18:15.832055915 +0200
+++ /var/tmp/diff_new_pack.YnOI5D/_new  2020-07-08 19:18:15.836055915 +0200
@@ -26,13 +26,16 @@
 Summary:Check for software updates via zypper
 License:BSD-3-Clause
 Group:  System/Monitoring
-Version:1.98.4
+Version:1.98.5
 Release:0
 URL:https://github.com/lrupp/monitoring-plugins-zypper
 Source0:%{name}-%{version}.tar.xz
 Requires:   gawk
 Requires:   grep
 Requires:   rpm
+%if 0%{?suse_version} < 1200
+BuildRequires:  xz
+%endif
 %if 0%{?suse_version} > 1310
 BuildRequires:  sudo
 Requires:   sudo

++ _service ++
--- /var/tmp/diff_new_pack.YnOI5D/_old  2020-07-08 19:18:15.864055912 +0200
+++ /var/tmp/diff_new_pack.YnOI5D/_new  2020-07-08 19:18:15.868055911 +0200
@@ -1,12 +1,14 @@
 
-   
- v1.98.4
- 1.98.4
+   
+ v1.98.5
+ 1.98.5
  git
  https://github.com/lrupp/monitoring-plugins-zypper.git
  monitoring-plugins-zypper
+


  *.tar

++ monitoring-plugins-zypper-1.98.4.tar.xz -> 
monitoring-plugins-zypper-1.98.5.tar.xz ++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/monitoring-plugins-zypper-1.98.4/check_zypper.pl 
new/monitoring-plugins-zypper-1.98.5/check_zypper.pl
--- old/monitoring-plugins-zypper-1.98.4/check_zypper.pl2019-11-25 
13:04:45.0 +0100
+++ new/monitoring-plugins-zypper-1.98.5/check_zypper.pl2020-07-02 
14:59:39.0 +0200
@@ -94,9 +94,9 @@
 0 => 'OK',
 );
 our %supported_release = (
-'openSUSE'   => [ '15.1', '15.2' ],
-'SLE'=> [ '11.4', '12.4', '12.5', '15.0', '15.1', '15.2' ],
-'Tumbleweed' => [ '2019*', '2020*' ],
+'openSUSE'   => [ '15.1', '15.2', '15.2.1', '15.3' ],
+'SLE'=> [ '11.4', '12.4', '12.5', '15.0', '15.1', '15.2', '15.3' ],
+'Tumbleweed' => [ '2020*' ],
 );
 $opt_w = 'recommended,optional,unsupported,local_package';
 $opt_c = 'security';




commit monitoring-plugins-zypper for openSUSE:Factory

2019-12-21 Thread root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2019-12-21 12:32:46

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


Package is "monitoring-plugins-zypper"

Sat Dec 21 12:32:46 2019 rev:16 rq:758460 version:1.98.4

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2019-04-17 10:07:53.574747053 +0200
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new.6675/monitoring-plugins-zypper.changes
2019-12-21 12:33:24.743421186 +0100
@@ -1,0 +2,25 @@
+Mon Nov 25 10:58:27 UTC 2019 - Lars Vogdt 
+
+- update to 1.98.3
+  + no source changes
+- adjust spec file to use the OBS service generated files
+
+---
+Mon Nov 25 09:32:04 UTC 2019 - Lars Vogdt 
+
+- update to 1.98
+  + openSUSE 15.0 is running out of service end of November 2019
+  + add Tumbleweed 2020 into the game
+  + adjust copyright notice in script
+- use new Github repo URL in spec file
+
+---
+Tue Nov 19 18:16:23 CET 2019 - r...@suse.de
+
+- update supported_releases:
+  - add openSUSE Leap 15.2
+  - drop openSUSE Leap 42.3
+  - add SLE 12-SP5, SLE 15-SP2
+  - drop SLE 12-SP3 
+
+---

Old:

  apparmor-abstractions-rpm
  apparmor-abstractions-ssl
  apparmor-abstractions-zypp
  check_zypper.pl
  sudo-profile-check_zypper
  usr.lib.nagios.plugins.check_zypper

New:

  _service
  monitoring-plugins-zypper-1.98.4.tar.xz



Other differences:
--
++ monitoring-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.bg2TT1/_old  2019-12-21 12:33:26.279421916 +0100
+++ /var/tmp/diff_new_pack.bg2TT1/_new  2019-12-21 12:33:26.291421922 +0100
@@ -26,33 +26,28 @@
 Summary:Check for software updates via zypper
 License:BSD-3-Clause
 Group:  System/Monitoring
-Version:1.96
+Version:1.98.4
 Release:0
-Url:http://en.opensuse.org/Monitoring-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
+URL:https://github.com/lrupp/monitoring-plugins-zypper
+Source0:%{name}-%{version}.tar.xz
 Requires:   gawk
 Requires:   grep
 Requires:   rpm
 %if 0%{?suse_version} > 1310
 BuildRequires:  sudo
 Requires:   sudo
-Source5:sudo-profile-check_zypper
 %endif
-%if 0%{?suse_version} > 1010
 # nagios can execute the script with embedded perl
 Recommends: perl 
+%if 0%{?suse_version}
 Recommends: apparmor-parser
 BuildRequires:  apparmor-parser
+%endif
 %if 0%{?suse_version} > 1320
 Requires:   apparmor-abstractions
 %else
 Requires:   apparmor-profiles
 %endif
-%endif
 Requires:   zypper
 BuildArch:  noarch
 %if 0%{?suse_version}
@@ -84,16 +79,16 @@
 
 
 %prep
+%setup -q
 
 %build
 
 %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
-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
+install -D -m755 check_zypper.pl 
%buildroot/%{nagios_plugindir}/check_zypper
+install -D -m644 usr.lib.nagios.plugins.check_zypper 
%{buildroot}%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_zypper
+install -D -m644 apparmor-abstractions-rpm   
%{buildroot}%{_sysconfdir}/apparmor.d/abstractions/rpm
+install -D -m644 apparmor-abstractions-ssl   
%{buildroot}%{_sysconfdir}/apparmor.d/abstractions/ssl
+install -D -m644 apparmor-abstractions-zypp  
%{buildroot}%{_sysconfdir}/apparmor.d/abstractions/zypp
 mkdir -p %{buildroot}%{_sysconfdir}/apparmor.d/local
 for file in usr.lib.nagios.plugins.check_zypper.zypp_refresh 
usr.lib.nagios.plugins.check_zypper ; do
 cat > %{buildroot}%{_sysconfdir}/apparmor.d/local/$file << EOF
@@ -101,11 +96,8 @@
 # See /etc/apparmor.d/local/README for details.
 EOF
 done
-%else
-install -D -m644 %{SOURCE1} 
%{buildroot}%{_sysconfdir}/apparmor/profiles/extras/usr.lib.nagios.plugins.check_zypper
-%endif
 %if 0%{?suse_version} > 1310
-install -Dm400 %{SOURCE5} %{buildroot}%{_sysconfdir}/sudoer

commit monitoring-plugins-zypper for openSUSE:Factory

2019-04-17 Thread root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2019-04-17 10:07:47

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


Package is "monitoring-plugins-zypper"

Wed Apr 17 10:07:47 2019 rev:15 rq:694434 version:1.96

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2018-08-20 16:21:35.845007028 +0200
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new.17052/monitoring-plugins-zypper.changes
   2019-04-17 10:07:53.574747053 +0200
@@ -1,0 +2,12 @@
+Sun Apr 14 16:10:57 UTC 2019 - Christian Boltz 
+
+- update AppArmor profile:
+ - adjust paths for usrMerge (related to boo#1132350)
+  - change {,usr/} alternations to {usr/,} which is the prefered syntax
+
+---
+Fri Apr 12 14:17:08 CEST 2019 - r...@suse.de
+
+- adapt apparmor profile for bash move to /usr 
+
+---



Other differences:
--
++ monitoring-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.dfW7Fh/_old  2019-04-17 10:07:54.926748613 +0200
+++ /var/tmp/diff_new_pack.dfW7Fh/_new  2019-04-17 10:07:54.934748623 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package monitoring-plugins-zypper
 #
-# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -12,7 +12,7 @@
 # license that conforms to the Open Source Definition (Version 1.9)
 # published by the Open Source Initiative.
 
-# Please submit bugfixes or comments via http://bugs.opensuse.org/
+# Please submit bugfixes or comments via https://bugs.opensuse.org/
 #
 
 

++ usr.lib.nagios.plugins.check_zypper ++
--- /var/tmp/diff_new_pack.dfW7Fh/_old  2019-04-17 10:07:55.010748711 +0200
+++ /var/tmp/diff_new_pack.dfW7Fh/_new  2019-04-17 10:07:55.014748715 +0200
@@ -15,7 +15,7 @@
   /{,usr/}bin/awk   rix,
   /{,usr/}bin/gawk  rix,
   /{,usr/}bin/rpm px -> /usr/lib/nagios/plugins/check_zypper//rpm,
-  /bin/bash rix,
+  /{,usr/}bin/bash rix,
   /{,usr/}bin/sudo Ux,
 
   # as we do not know how people name the ignore file, we 
@@ -50,8 +50,8 @@
 /var/log/zypp-refresh.log w,
 /usr/sbin/zypp-refresh rmix,
 
-/bin/cp rix,
-/bin/bash rix,
+/{usr/,}bin/cp rix,
+/{usr/,}bin/bash rix,
 /usr/bin/rpmdb2solv rix,
 /usr/bin/zypper px -> /usr/lib/nagios/plugins/check_zypper//zypper,
 /usr/bin/gpg2 px -> /usr/lib/nagios/plugins/check_zypper//gpg,
@@ -77,17 +77,17 @@
 /usr/bin/mergesolv  rix,
 
 /usr/bin/find   rix,
-/bin/bash   rix,
-/bin/rm rix,
-/bin/catrix,
-/bin/sedrix,
-/bin/gzip   rix,
-/{,usr/}bin/greprix,
-/{,usr/}bin/gziprix,
-/{,usr/}bin/bzip2   rix,
-/{,usr/}bin/lzmarix,
-/{,usr/}bin/xz  rix,
-/bin/mktemp rix,
+/{usr/,}bin/bashrix,
+/{usr/,}bin/rm rix,
+/{usr/,}bin/catrix,
+/{usr/,}bin/sedrix,
+/{usr/,}bin/gzip   rix,
+/{usr/,}bin/greprix,
+/{usr/,}bin/gziprix,
+/{usr/,}bin/bzip2   rix,
+/{usr/,}bin/lzmarix,
+/{usr/,}bin/xz  rix,
+/{usr/,}bin/mktemp rix,
 
 /var/cache/zypp/** rw,
   }
@@ -119,7 +119,7 @@
 # /etc/apparmor.d/local/usr.lib.nagios.plugins.check_zypper
 #include 
 
-/bin/bash rix,
+/{,usr/}bin/bash rix,
 /usr/bin/rpmdb2solv rix,
 /usr/bin/zypper rmix,
 /usr/share/zypper/ r,
@@ -137,7 +137,7 @@
 # if you have additional changes, please add them in the file
 # /etc/apparmor.d/local/usr.lib.nagios.plugins.check_zypper
 #include 
-/{,usr/}bin/rpm rmix,
+/{usr/,}bin/rpm rmix,
   }
 
   # Site-specific additions and overrides. See local/README for details.




commit monitoring-plugins-zypper for openSUSE:Factory

2018-08-20 Thread root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2018-08-20 16:21:28

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


Package is "monitoring-plugins-zypper"

Mon Aug 20 16:21:28 2018 rev:14 rq:630430 version:1.96

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2018-03-06 10:49:27.963563198 +0100
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new/monitoring-plugins-zypper.changes
 2018-08-20 16:21:35.845007028 +0200
@@ -1,0 +2,16 @@
+Fri Aug  3 10:41:10 UTC 2018 - l...@linux-schulserver.de
+
+- add suggested changes in sudoers file (bnc#1103590)
+- cleanup the help output of the plugin
+
+---
+Tue Jul 17 12:22:55 UTC 2018 - l...@linux-schulserver.de
+
+- as newer zypper versions always require root rights to refresh 
+  the repositories, add a working sudoers file right from the 
+  beginning that allows to execute the needed zypper commands
+- Update to 1.96
+  + SLE-12-SP2 is deprecated
+  + add SLE-15-SP1 and SLE-12-SP4 as supported
+
+---

New:

  sudo-profile-check_zypper



Other differences:
--
++ monitoring-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.A6ZNJ0/_old  2018-08-20 16:21:36.353007747 +0200
+++ /var/tmp/diff_new_pack.A6ZNJ0/_new  2018-08-20 16:21:36.357007752 +0200
@@ -26,7 +26,7 @@
 Summary:Check for software updates via zypper
 License:BSD-3-Clause
 Group:  System/Monitoring
-Version:1.95
+Version:1.96
 Release:0
 Url:http://en.opensuse.org/Monitoring-plugins-zypper
 Source0:check_zypper.pl
@@ -37,6 +37,11 @@
 Requires:   gawk
 Requires:   grep
 Requires:   rpm
+%if 0%{?suse_version} > 1310
+BuildRequires:  sudo
+Requires:   sudo
+Source5:sudo-profile-check_zypper
+%endif
 %if 0%{?suse_version} > 1010
 # nagios can execute the script with embedded perl
 Recommends: perl 
@@ -99,6 +104,9 @@
 %else
 install -D -m644 %{SOURCE1} 
%{buildroot}%{_sysconfdir}/apparmor/profiles/extras/usr.lib.nagios.plugins.check_zypper
 %endif
+%if 0%{?suse_version} > 1310
+install -Dm400 %{SOURCE5} %{buildroot}%{_sysconfdir}/sudoers.d/check_zypper
+%endif
 
 %check
 # generic test if check_zypper is working at all
@@ -150,5 +158,8 @@
 %config(noreplace) 
%{_sysconfdir}/apparmor/profiles/extras/usr.lib.nagios.plugins.check_zypper
 %endif
 %{nagios_plugindir}/check_zypper
+%if 0%{?suse_version} > 1310
+%config(noreplace) %{_sysconfdir}/sudoers.d/check_zypper
+%endif
 
 %changelog

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.A6ZNJ0/_old  2018-08-20 16:21:36.401007815 +0200
+++ /var/tmp/diff_new_pack.A6ZNJ0/_new  2018-08-20 16:21:36.405007821 +0200
@@ -5,7 +5,7 @@
 #
 # Copyright (C) 2008-2010, Novell, Inc.
 # Copyright (C) 2011-2014, SUSE Linux Products GmbH
-# Copyright (C) 2015-2016, SUSE Linux GmbH
+# Copyright (C) 2015-2018, SUSE Linux GmbH
 # Author: Lars Vogdt
 #
 # All rights reserved.
@@ -51,7 +51,7 @@
 
 # constants
 $PROGNAME = "check_zypper";
-$VERSION  = '1.95';
+$VERSION  = '1.97';
 $DEBUG= 0;
 
 # variables
@@ -62,7 +62,7 @@
 our $zypper   = '/usr/bin/zypper';
 our $zypperopt= '--non-interactive --no-gpg-checks list-updates';
 our $sudo = '/usr/bin/sudo';
-our $zypp_refresh = '/usr/sbin/zypp-refresh';
+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';
@@ -94,7 +94,7 @@
 );
 our %supported_release = (
 'openSUSE'   => [ '42.3', '15.0', '15.1' ],
-'SLE'=> [ '11.4', '12.2', '12.3', '15.0' ],
+'SLE'=> [ '11.4', '12.3', '12.4', '15.0', '15.1' ],
 'Tumbleweed' => [ '2019*'],
 );
 $opt_w = 'recommended,optional,unsupported,local_package';
@@ -223,21 +223,16 @@
 }
 
 sub print_usage () {
-print "This plugin checks for software updates on systems that ";
-print "use package\n";
-print "management systems based on the zypper command found in ";
-print "openSUSE.\n\n";
-print "It checks for security, recommended and optional patches ";
-print "and also for\n";
-print "optional package updates.\n\n";
-print "You can define the status by patch category. Use a ";
-print "commata to list more\n";
-print "than one category to a state. Possible values are ";
-print "recommended,optional,security\n";
-print "and packages\n\n";
-pr

commit monitoring-plugins-zypper for openSUSE:Factory

2018-03-06 Thread root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2018-03-06 10:48:49

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


Package is "monitoring-plugins-zypper"

Tue Mar  6 10:48:49 2018 rev:13 rq:583216 version:1.95

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2017-12-09 20:31:01.775427805 +0100
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new/monitoring-plugins-zypper.changes
 2018-03-06 10:49:27.963563198 +0100
@@ -1,0 +2,24 @@
+Tue Mar  6 08:23:54 UTC 2018 - l...@linux-schulserver.de
+
+- update to 1.95:
+  + remove openSUSE 42.2; add 15.1
+  + remove old Tumbleweed and only support 2019 for now
+
+---
+Mon Mar  5 16:16:36 UTC 2018 - l...@linux-schulserver.de
+
+- Reload just the specific AppArmor profile instead of restarting 
+  AppArmor completely (bsc#1006387)
+
+---
+Mon Mar  5 15:17:31 CET 2018 - r...@suse.de
+
+- use "with systemd" instead of "with_systemd" 
+
+---
+Mon Mar  5 14:52:48 CET 2018 - r...@suse.de
+
+- add SLE-15.0 as release 
+- adapt pathes in apparmor config for sle15/tumbleweed
+
+---



Other differences:
--
++ monitoring-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.qHI5wW/_old  2018-03-06 10:49:28.551541957 +0100
+++ /var/tmp/diff_new_pack.qHI5wW/_new  2018-03-06 10:49:28.41813 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package monitoring-plugins-zypper
 #
-# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,7 +26,7 @@
 Summary:Check for software updates via zypper
 License:BSD-3-Clause
 Group:  System/Monitoring
-Version:1.94
+Version:1.95
 Release:0
 Url:http://en.opensuse.org/Monitoring-plugins-zypper
 Source0:check_zypper.pl
@@ -112,11 +112,21 @@
 rm -rf %buildroot
 
 %postun
-%if %{with_systemd}
-%service_del_postun apparmor.service
-%else
-%{restart_on_update boot.apparmor}
-%endif
+if [ "$YAST_IS_RUNNING" != "instsys" ]; then
+ if [ -x /sbin/apparmor_parser ]; then
+   %if %{with systemd}
+ if /usr/bin/systemctl is-active --quiet apparmor.service; then
+ /sbin/apparmor_parser -r -T -W  
%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_zypper &> /dev/null || :
+ fi
+   %else
+ if /etc/init.d/boot.apparmor status >/dev/null ; then 
+ /sbin/apparmor_parser -r -T -W  
%{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_zypper &> /dev/null || :
+ fi
+   %endif
+ else
+ echo "Could not reload the Apparmor profile: /sbin/apparmor_parser is 
missing or not executable."
+ fi
+fi
 
 %files 
 %defattr(-,root,root)

++ apparmor-abstractions-rpm ++
--- /var/tmp/diff_new_pack.qHI5wW/_old  2018-03-06 10:49:28.587540657 +0100
+++ /var/tmp/diff_new_pack.qHI5wW/_new  2018-03-06 10:49:28.587540657 +0100
@@ -9,4 +9,5 @@
 /etc/rpm/ r,
 /etc/rpm/macros* r,
 /var/lib/rpm/** rlk,
+/usr/lib/sysimage/rpm/** rlk,
 

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.qHI5wW/_old  2018-03-06 10:49:28.643538634 +0100
+++ /var/tmp/diff_new_pack.qHI5wW/_new  2018-03-06 10:49:28.647538490 +0100
@@ -51,7 +51,7 @@
 
 # constants
 $PROGNAME = "check_zypper";
-$VERSION  = '1.94';
+$VERSION  = '1.95';
 $DEBUG= 0;
 
 # variables
@@ -93,9 +93,9 @@
 0 => 'OK',
 );
 our %supported_release = (
-'openSUSE'   => [ '42.2', '42.3', '15.0' ],
-'SLE'=> [ '11.4', '12.2', '12.3' ],
-'Tumbleweed' => ['2017*', '2018*'],
+'openSUSE'   => [ '42.3', '15.0', '15.1' ],
+'SLE'=> [ '11.4', '12.2', '12.3', '15.0' ],
+'Tumbleweed' => [ '2019*'],
 );
 $opt_w = 'recommended,optional,unsupported,local_package';
 $opt_c = 'security';

++ usr.lib.nagios.plugins.check_zypper ++
--- /var/tmp/diff_new_pack.qHI5wW/_old  2018-03-06 10:49:28.671537622 +0100
+++ /var/tmp/diff_new_pack.qHI5wW/_new  2018-03-06 10:49:28.675537478 +0100
@@ -14,7 +14,7 @@
   /{,usr/}bin/grep  rix,
   /{,usr/}bin/awk   rix,
   /{,usr/}bin/gawk  rix,
-  /bin/rpm px -> /usr/lib/nagios/plugins/check_zypper//rpm,
+  /{,usr/}bin/rpm px -> /usr/lib/nagios/plugins

commit monitoring-plugins-zypper for openSUSE:Factory

2017-12-09 Thread root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2017-12-09 20:30:28

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


Package is "monitoring-plugins-zypper"

Sat Dec  9 20:30:28 2017 rev:12 rq:555455 version:1.94

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2017-12-01 15:55:00.429081219 +0100
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new/monitoring-plugins-zypper.changes
 2017-12-09 20:31:01.775427805 +0100
@@ -1,0 +2,6 @@
+Sat Dec  2 04:15:26 UTC 2017 - l...@linux-schulserver.de
+
+- update to 1.94:
+  + support Leap 15.0 and Tumbleweed 2018* (boo#1049950)
+
+---



Other differences:
--
++ monitoring-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.wPkdq6/_old  2017-12-09 20:31:02.291403229 +0100
+++ /var/tmp/diff_new_pack.wPkdq6/_new  2017-12-09 20:31:02.295403039 +0100
@@ -26,7 +26,7 @@
 Summary:Check for software updates via zypper
 License:BSD-3-Clause
 Group:  System/Monitoring
-Version:1.93
+Version:1.94
 Release:0
 Url:http://en.opensuse.org/Monitoring-plugins-zypper
 Source0:check_zypper.pl

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.wPkdq6/_old  2017-12-09 20:31:02.387398657 +0100
+++ /var/tmp/diff_new_pack.wPkdq6/_new  2017-12-09 20:31:02.387398657 +0100
@@ -51,7 +51,7 @@
 
 # constants
 $PROGNAME = "check_zypper";
-$VERSION  = '1.93';
+$VERSION  = '1.94';
 $DEBUG= 0;
 
 # variables
@@ -93,9 +93,9 @@
 0 => 'OK',
 );
 our %supported_release = (
-'openSUSE'   => [ '42.2', '42.3' ],
+'openSUSE'   => [ '42.2', '42.3', '15.0' ],
 'SLE'=> [ '11.4', '12.2', '12.3' ],
-'Tumbleweed' => ['2017*'],
+'Tumbleweed' => ['2017*', '2018*'],
 );
 $opt_w = 'recommended,optional,unsupported,local_package';
 $opt_c = 'security';




commit monitoring-plugins-zypper for openSUSE:Factory

2017-12-01 Thread root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2017-12-01 15:54:28

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


Package is "monitoring-plugins-zypper"

Fri Dec  1 15:54:28 2017 rev:11 rq:547050 version:1.93

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2017-07-02 13:38:17.662078833 +0200
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new/monitoring-plugins-zypper.changes
 2017-12-01 15:55:00.429081219 +0100
@@ -1,0 +2,17 @@
+Fri Nov 24 11:05:40 CET 2017 - r...@suse.de
+
+- move restart stuff from post to postun where it belongs
+- use proper macros for systemd restart 
+
+---
+Tue Oct 10 09:14:23 UTC 2017 - l...@linux-schulserver.de
+
+- update to 1.93
+  + remove unsupported openSUSE 42.1 and SLE-10-SP4
+
+---
+Tue Jul 25 18:02:13 CEST 2017 - r...@suse.de
+
+- use systemctl for try-restart call for apparmor in postinstall
+
+---



Other differences:
--
++ monitoring-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.w8HlAg/_old  2017-12-01 15:55:01.201053440 +0100
+++ /var/tmp/diff_new_pack.w8HlAg/_new  2017-12-01 15:55:01.201053440 +0100
@@ -26,7 +26,7 @@
 Summary:Check for software updates via zypper
 License:BSD-3-Clause
 Group:  System/Monitoring
-Version:1.92
+Version:1.93
 Release:0
 Url:http://en.opensuse.org/Monitoring-plugins-zypper
 Source0:check_zypper.pl
@@ -111,8 +111,12 @@
 %clean
 rm -rf %buildroot
 
-%post
-%{_sysconfdir}/init.d/boot.apparmor try-restart || echo "restarting 
boot.apparmor failed" >&2
+%postun
+%if %{with_systemd}
+%service_del_postun apparmor.service
+%else
+%{restart_on_update boot.apparmor}
+%endif
 
 %files 
 %defattr(-,root,root)

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.w8HlAg/_old  2017-12-01 15:55:01.285050417 +0100
+++ /var/tmp/diff_new_pack.w8HlAg/_new  2017-12-01 15:55:01.289050273 +0100
@@ -51,7 +51,7 @@
 
 # constants
 $PROGNAME = "check_zypper";
-$VERSION  = '1.92';
+$VERSION  = '1.93';
 $DEBUG= 0;
 
 # variables
@@ -93,8 +93,8 @@
 0 => 'OK',
 );
 our %supported_release = (
-'openSUSE'   => [ '42.1', '42.2', '42.3' ],
-'SLE'=> [ '10.4', '11.4', '12.2', '12.3' ],
+'openSUSE'   => [ '42.2', '42.3' ],
+'SLE'=> [ '11.4', '12.2', '12.3' ],
 'Tumbleweed' => ['2017*'],
 );
 $opt_w = 'recommended,optional,unsupported,local_package';




commit monitoring-plugins-zypper for openSUSE:Factory

2017-07-02 Thread root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2017-07-02 13:38:08

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


Package is "monitoring-plugins-zypper"

Sun Jul  2 13:38:08 2017 rev:10 rq:507235 version:1.92

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2016-10-23 12:51:32.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new/monitoring-plugins-zypper.changes
 2017-07-02 13:38:17.662078833 +0200
@@ -1,0 +2,9 @@
+Fri Jun 30 07:29:55 UTC 2017 - l...@linux-schulserver.de
+
+- update to 1.92:
+  + remove unsupported openSUSE 13.2, 13.3 and Tumbleweed 2016*
+  + remove unsupported SLE 12.0 and 12.1
+  + add openSUSE 42.3 and Tumbleweed 2017*
+  + add SLE 12.3
+
+---



Other differences:
--
++ monitoring-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.3UKJTF/_old  2017-07-02 13:38:19.233857187 +0200
+++ /var/tmp/diff_new_pack.3UKJTF/_new  2017-07-02 13:38:19.233857187 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package monitoring-plugins-zypper
 #
-# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -26,7 +26,7 @@
 Summary:Check for software updates via zypper
 License:BSD-3-Clause
 Group:  System/Monitoring
-Version:1.91
+Version:1.92
 Release:0
 Url:http://en.opensuse.org/Monitoring-plugins-zypper
 Source0:check_zypper.pl

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.3UKJTF/_old  2017-07-02 13:38:19.321844779 +0200
+++ /var/tmp/diff_new_pack.3UKJTF/_new  2017-07-02 13:38:19.325844216 +0200
@@ -51,7 +51,7 @@
 
 # constants
 $PROGNAME = "check_zypper";
-$VERSION  = '1.91';
+$VERSION  = '1.92';
 $DEBUG= 0;
 
 # variables
@@ -93,9 +93,9 @@
 0 => 'OK',
 );
 our %supported_release = (
-'openSUSE'   => [ '13.2', '13.3', '42.1', '42.2' ],
-'SLE'=> [ '10.4', '11.4', '12.0', '12.1', '12.2' ],
-'Tumbleweed' => ['2016*'],
+'openSUSE'   => [ '42.1', '42.2', '42.3' ],
+'SLE'=> [ '10.4', '11.4', '12.2', '12.3' ],
+'Tumbleweed' => ['2017*'],
 );
 $opt_w = 'recommended,optional,unsupported,local_package';
 $opt_c = 'security';




commit monitoring-plugins-zypper for openSUSE:Factory

2016-10-23 Thread h_root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2016-10-23 12:51:31

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


Package is "monitoring-plugins-zypper"

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2016-09-12 13:25:55.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new/monitoring-plugins-zypper.changes
 2016-10-23 12:51:32.0 +0200
@@ -1,0 +2,6 @@
+Thu Oct 13 01:42:42 CEST 2016 - r...@suse.de
+
+- change Tumbleweed check, PRETTY_NAME is actually
+  "openSUSE Tumbleweed (DATEVERSION) (ARCH)" 
+
+---



Other differences:
--
++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.pxKjA5/_old  2016-10-23 12:51:33.0 +0200
+++ /var/tmp/diff_new_pack.pxKjA5/_new  2016-10-23 12:51:33.0 +0200
@@ -143,12 +143,12 @@
 if (/^PRETTY_NAME=\"SUSE Linux Enterprise.*/) {
 $dist{'name'} = 'SLE';
 }
+elsif (/^PRETTY_NAME=\".*Tumbleweed.*/) {
+$dist{'name'} = 'Tumbleweed';
+}
 elsif (/^PRETTY_NAME=\"openSUSE.*/) {
 $dist{'name'} = 'openSUSE';
 }
-elsif (/^PRETTY_NAME=\"Tumbleweed.*/) {
-$dist{'name'} = 'Tumbleweed';
-}
 }
 close(RELEASE);
 open( RELEASE, "<$file" ) || warn("Could not open $file\n");




commit monitoring-plugins-zypper for openSUSE:Factory

2016-09-12 Thread h_root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2016-09-12 13:25:52

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


Package is "monitoring-plugins-zypper"

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2016-06-02 09:39:08.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new/monitoring-plugins-zypper.changes
 2016-09-12 13:25:55.0 +0200
@@ -1,0 +2,6 @@
+Fri Sep  2 08:52:52 UTC 2016 - l...@linux-schulserver.de
+
+- update to 1.91:
+  + make openSUSE Leap 42.2 supported
+
+---



Other differences:
--
++ monitoring-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.QoAjEL/_old  2016-09-12 13:25:56.0 +0200
+++ /var/tmp/diff_new_pack.QoAjEL/_new  2016-09-12 13:25:56.0 +0200
@@ -26,7 +26,7 @@
 Summary:Check for software updates via zypper
 License:BSD-3-Clause
 Group:  System/Monitoring
-Version:1.90
+Version:1.91
 Release:0
 Url:http://en.opensuse.org/Monitoring-plugins-zypper
 Source0:check_zypper.pl
@@ -112,7 +112,7 @@
 rm -rf %buildroot
 
 %post
-%{_sysconfdir}/init.d/boot.apparmor try-restart || echo "restarting 
boot.apparmor failed"
+%{_sysconfdir}/init.d/boot.apparmor try-restart || echo "restarting 
boot.apparmor failed" >&2
 
 %files 
 %defattr(-,root,root)

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.QoAjEL/_old  2016-09-12 13:25:56.0 +0200
+++ /var/tmp/diff_new_pack.QoAjEL/_new  2016-09-12 13:25:56.0 +0200
@@ -51,7 +51,7 @@
 
 # constants
 $PROGNAME = "check_zypper";
-$VERSION  = '1.90';
+$VERSION  = '1.91';
 $DEBUG= 0;
 
 # variables
@@ -93,7 +93,7 @@
 0 => 'OK',
 );
 our %supported_release = (
-'openSUSE'   => [ '13.2', '13.3', '42.1' ],
+'openSUSE'   => [ '13.2', '13.3', '42.1', '42.2' ],
 'SLE'=> [ '10.4', '11.4', '12.0', '12.1', '12.2' ],
 'Tumbleweed' => ['2016*'],
 );




commit monitoring-plugins-zypper for openSUSE:Factory

2016-06-02 Thread h_root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2016-06-02 09:39:06

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


Package is "monitoring-plugins-zypper"

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2016-02-08 09:48:00.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new/monitoring-plugins-zypper.changes
 2016-06-02 09:39:08.0 +0200
@@ -1,0 +2,37 @@
+Wed May 25 00:07:54 CEST 2016 - r...@suse.de
+
+- ignore if restarting boot.apparmor fails 
+
+---
+Wed May 25 00:01:19 CEST 2016 - r...@suse.de
+
+- require apparmor-profiles on older releases 
+- add SLE12.2 as supported
+
+---
+Thu Apr 14 21:36:00 UTC 2016 - l...@linux-schulserver.de
+
+- build require apparmor-parser to run apparmor restart in %post
+- SLE11 needs apparmor-profiles instead of apparmor-abstractions
+
+---
+Thu Apr 14 00:58:18 CEST 2016 - r...@suse.de
+
+- fix os-release parser to get version properly 
+
+---
+Wed Apr 13 19:22:47 UTC 2016 - l...@linux-schulserver.de
+
+- restart apparmor to get changes in the apparmor profiles updated
+- require apparmor-abstractions
+
+---
+Tue Apr 12 18:58:11 UTC 2016 - l...@linux-schulserver.de
+
+- update to 1.90:
+  + support (and prefer) the new /etc/os-release file instead of 
+/etc/SuSE-release
+  + remove SLE-11-SP3 from supported distributions
+  + better check supported distribution
+
+---



Other differences:
--
++ monitoring-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.y32QkL/_old  2016-06-02 09:39:09.0 +0200
+++ /var/tmp/diff_new_pack.y32QkL/_new  2016-06-02 09:39:09.0 +0200
@@ -16,11 +16,17 @@
 #
 
 
+%if 0%{?suse_version} >= 1230
+%bcond_without systemd
+%else
+%bcond_with systemd
+%endif
+
 Name:   monitoring-plugins-zypper
 Summary:Check for software updates via zypper
 License:BSD-3-Clause
 Group:  System/Monitoring
-Version:1.84
+Version:1.90
 Release:0
 Url:http://en.opensuse.org/Monitoring-plugins-zypper
 Source0:check_zypper.pl
@@ -35,12 +41,24 @@
 # nagios can execute the script with embedded perl
 Recommends: perl 
 Recommends: apparmor-parser
+BuildRequires:  apparmor-parser
+%if 0%{?suse_version} > 1320
+Requires:   apparmor-abstractions
+%else
+Requires:   apparmor-profiles
+%endif
 %endif
 Requires:   zypper
 BuildArch:  noarch
 %if 0%{?suse_version}
 BuildRequires:  distribution-release
 %endif
+%if %{with systemd}
+%if 0%{?suse_version} >= 1210
+BuildRequires:  systemd-rpm-macros
+%endif
+%{?systemd_requires}
+%endif
 BuildRequires:  nagios-rpm-macros
 Provides:   nagios-plugins-zypper = %{version}-%{release}
 Obsoletes:  nagios-plugins-zypper < %{version}-%{release}
@@ -93,6 +111,9 @@
 %clean
 rm -rf %buildroot
 
+%post
+%{_sysconfdir}/init.d/boot.apparmor try-restart || echo "restarting 
boot.apparmor failed"
+
 %files 
 %defattr(-,root,root)
 # avoid build dependecy of nagios - own the dirs

++ check_zypper.pl ++
 1019 lines (skipped)
 between 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/check_zypper.pl
 and 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new/check_zypper.pl

++ usr.lib.nagios.plugins.check_zypper ++
--- /var/tmp/diff_new_pack.y32QkL/_old  2016-06-02 09:39:09.0 +0200
+++ /var/tmp/diff_new_pack.y32QkL/_new  2016-06-02 09:39:09.0 +0200
@@ -9,6 +9,7 @@
   #include 
 
   /etc/SuSE-release r,
+  /etc/os-release r,
 
   /{,usr/}bin/grep  rix,
   /{,usr/}bin/awk   rix,




commit monitoring-plugins-zypper for openSUSE:Factory

2016-02-08 Thread h_root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2016-02-08 09:47:59

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


Package is "monitoring-plugins-zypper"

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2016-01-15 10:41:26.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new/monitoring-plugins-zypper.changes
 2016-02-08 09:48:00.0 +0100
@@ -1,0 +2,9 @@
+Fri Jan 29 13:40:15 UTC 2016 - l...@linux-schulserver.de
+
+- update to 1.84
+  * openSUSE: supported are 13.2, 13.3 and Leap 42.1
+  try to add Tumbleweed as supported (TODO)
+  * SLE: supported are 10.4, 11.3, 11.4, 12.0 and 12.1
+  => fixes bnc#963993 - thanks to Ansgar Esztermann
+
+---



Other differences:
--
++ monitoring-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.9GvJZF/_old  2016-02-08 09:48:00.0 +0100
+++ /var/tmp/diff_new_pack.9GvJZF/_new  2016-02-08 09:48:00.0 +0100
@@ -20,7 +20,7 @@
 Summary:Check for software updates via zypper
 License:BSD-3-Clause
 Group:  System/Monitoring
-Version:1.82
+Version:1.84
 Release:0
 Url:http://en.opensuse.org/Monitoring-plugins-zypper
 Source0:check_zypper.pl

++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.9GvJZF/_old  2016-02-08 09:48:01.0 +0100
+++ /var/tmp/diff_new_pack.9GvJZF/_new  2016-02-08 09:48:01.0 +0100
@@ -49,7 +49,7 @@
 
 # constants
 $PROGNAME = "check_zypper";
-$VERSION  = '1.83';
+$VERSION  = '1.84';
 $DEBUG= 0;
 
 # variables
@@ -87,9 +87,9 @@
 0 => 'OK',
 );
 our %supported_release = (
-'openSUSE' => [ '12.3', '13.1', '13.2', '13.3' ],
+'openSUSE' => [ '13.2', '13.3', '42.1' ],
 'SLE'  => [ '10.4', '11.3', '11.4', '12.0', '12.1' ],
-   'Tumbleweed' => [ '2015*' ],
+   'Tumbleweed' => [ '2016*' ],
 );
 $opt_w = 'recommended,optional,unsupported,local_package';
 $opt_c = 'security';




commit monitoring-plugins-zypper for openSUSE:Factory

2016-01-15 Thread h_root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2016-01-15 10:41:24

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


Package is "monitoring-plugins-zypper"

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2015-10-08 08:24:50.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new/monitoring-plugins-zypper.changes
 2016-01-15 10:41:26.0 +0100
@@ -1,0 +2,6 @@
+Wed Jan  6 15:30:46 UTC 2016 - l...@linux-schulserver.de
+
+- add local/usr.lib.nagios.plugins.check_zypper.zypp_refresh as
+  additional overwrite file 
+
+---



Other differences:
--
++ monitoring-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.pYWy6a/_old  2016-01-15 10:41:27.0 +0100
+++ /var/tmp/diff_new_pack.pYWy6a/_new  2016-01-15 10:41:27.0 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package monitoring-plugins-zypper
 #
-# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
 # remain the property of their copyright owners, unless otherwise agreed
@@ -38,7 +38,9 @@
 %endif
 Requires:   zypper
 BuildArch:  noarch
+%if 0%{?suse_version}
 BuildRequires:  distribution-release
+%endif
 BuildRequires:  nagios-rpm-macros
 Provides:   nagios-plugins-zypper = %{version}-%{release}
 Obsoletes:  nagios-plugins-zypper < %{version}-%{release}
@@ -70,10 +72,12 @@
 install -D -m644 %{SOURCE3} 
%{buildroot}%{_sysconfdir}/apparmor.d/abstractions/ssl
 install -D -m644 %{SOURCE2} 
%{buildroot}%{_sysconfdir}/apparmor.d/abstractions/zypp
 mkdir -p %{buildroot}%{_sysconfdir}/apparmor.d/local
-cat > 
%{buildroot}%{_sysconfdir}/apparmor.d/local/usr.lib.nagios.plugins.check_zypper 
<< EOF
+for file in usr.lib.nagios.plugins.check_zypper.zypp_refresh 
usr.lib.nagios.plugins.check_zypper ; do
+cat > %{buildroot}%{_sysconfdir}/apparmor.d/local/$file << EOF
 # Site-specific additions and overrides for usr.lib.nagios.plugins.check_zypper
 # See /etc/apparmor.d/local/README for details.
 EOF
+done
 %else
 install -D -m644 %{SOURCE1} 
%{buildroot}%{_sysconfdir}/apparmor/profiles/extras/usr.lib.nagios.plugins.check_zypper
 %endif
@@ -103,6 +107,7 @@
 %dir %{_sysconfdir}/apparmor.d/local
 %config %{_sysconfdir}/apparmor.d/usr.lib.nagios.plugins.check_zypper
 %config(noreplace) 
%{_sysconfdir}/apparmor.d/local/usr.lib.nagios.plugins.check_zypper
+%config(noreplace) 
%{_sysconfdir}/apparmor.d/local/usr.lib.nagios.plugins.check_zypper.zypp_refresh
 %else
 %dir %{_sysconfdir}/apparmor
 %dir %{_sysconfdir}/apparmor/profiles




commit monitoring-plugins-zypper for openSUSE:Factory

2015-10-07 Thread h_root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2015-10-08 08:24:46

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


Package is "monitoring-plugins-zypper"

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2015-08-28 08:27:52.0 +0200
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new/monitoring-plugins-zypper.changes
 2015-10-08 08:24:50.0 +0200
@@ -1,0 +2,5 @@
+Mon Sep 28 15:18:21 UTC 2015 - l...@linux-schulserver.de
+
+- run a simple test during %%check
+
+---



Other differences:
--
++ monitoring-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.RiRJno/_old  2015-10-08 08:24:50.0 +0200
+++ /var/tmp/diff_new_pack.RiRJno/_new  2015-10-08 08:24:50.0 +0200
@@ -38,6 +38,7 @@
 %endif
 Requires:   zypper
 BuildArch:  noarch
+BuildRequires:  distribution-release
 BuildRequires:  nagios-rpm-macros
 Provides:   nagios-plugins-zypper = %{version}-%{release}
 Obsoletes:  nagios-plugins-zypper < %{version}-%{release}
@@ -77,6 +78,14 @@
 install -D -m644 %{SOURCE1} 
%{buildroot}%{_sysconfdir}/apparmor/profiles/extras/usr.lib.nagios.plugins.check_zypper
 %endif
 
+%check
+# generic test if check_zypper is working at all
+%buildroot/%{nagios_plugindir}/check_zypper --help
+if [ "$?" != "0" ]; then
+echo "Test failed: check_zypper can not print help text" >&2
+exit 1
+fi
+
 %clean
 rm -rf %buildroot
 




commit monitoring-plugins-zypper for openSUSE:Factory

2015-08-27 Thread h_root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2015-08-28 08:27:30

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


Package is "monitoring-plugins-zypper"

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2015-03-11 09:58:58.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new/monitoring-plugins-zypper.changes
 2015-08-28 08:27:52.0 +0200
@@ -1,0 +2,11 @@
+Thu Aug 20 12:20:47 UTC 2015 - l...@linux-schulserver.de
+
+- also include the local changes file in some subprofiles, so people
+  can overwrite the settings there (bnc #914493)
+- Update to 1.83:
+  + Tumbleweed is a rolling release - so asume it is not outdated 
+at any time. Need to be clarified if we should check actively if
+the installed Tumbleweed is outdated or not. Maybe we can use 
+/etc/products.d/baseproduct to check for end-of-life information?
+
+---



Other differences:
--
++ check_zypper.pl ++
--- /var/tmp/diff_new_pack.cpDlsM/_old  2015-08-28 08:27:52.0 +0200
+++ /var/tmp/diff_new_pack.cpDlsM/_new  2015-08-28 08:27:52.0 +0200
@@ -4,7 +4,8 @@
 # check_zypper - nagios plugin
 #
 # Copyright (C) 2008-2010, Novell, Inc.
-# Copyright (C) 2011-2013, SUSE Linux Products GmbH
+# Copyright (C) 2011-2014, SUSE Linux Products GmbH
+# Copyright (C) 2015, SUSE Linux GmbH
 # Author: Lars Vogdt
 #
 # All rights reserved.
@@ -35,8 +36,6 @@
 # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
 # POSSIBILITY OF SUCH DAMAGE.
 #
-# $Id$
-#
 
 use strict;
 use warnings;
@@ -50,7 +49,7 @@
 
 # constants
 $PROGNAME = "check_zypper";
-$VERSION  = '1.82';
+$VERSION  = '1.83';
 $DEBUG= 0;
 
 # variables
@@ -62,6 +61,7 @@
 our $refresh_wrapper = '/usr/sbin/zypp-refresh-wrapper';
 our $use_sudo= 'unset LANG; ';
 our $releasefile = '/etc/SuSE-release';
+our $productfile = '/etc/products.d/baseproduct';
 our $rpm = '/bin/rpm';
 our $awk = '/bin/awk';
 our $grep= '/bin/grep';
@@ -89,6 +89,7 @@
 our %supported_release = (
 'openSUSE' => [ '12.3', '13.1', '13.2', '13.3' ],
 'SLE'  => [ '10.4', '11.3', '11.4', '12.0', '12.1' ],
+   'Tumbleweed' => [ '2015*' ],
 );
 $opt_w = 'recommended,optional,unsupported,local_package';
 $opt_c = 'security';
@@ -136,6 +137,9 @@
 elsif (/^openSUSE/){
 $dist{'name'} = 'openSUSE';
 }
+   elsif (/^CODENAME\s+=\s+Tumbleweed/){
+   $dist{'name'} = 'Tumbleweed';
+   }
 if (/^VERSION/) {
 my ($version) = $_ =~ m/VERSION = (.*)/;
 $dist{'version'}=trim($version);
@@ -149,6 +153,23 @@
 return ( \%dist );
 }
 
+sub endoflife($){
+my ($file) = @_;
+   my $eol='1970-01-01';
+if (-r "$file"){
+   open(PRODFILE, "<$file") || warn("Could not open $file\n");
+   while (){
+   chomp;
+   if (/(.*)<\/endoflife>/){
+  $eol=$1;
+   }
+   }
+   }
+   my ($d, $m, $y) = (localtime(time()))[3,4,5];
+   my $year=1900+$y;
+print STDERR "INFO: Current: $year-$m-$d; End of life: $eol\n" if ($DEBUG);
+}
+
 sub print_usage () {
 print "This plugin checks for software updates on systems that use 
package\n";
 print "management systems based on the zypper command found in 
openSUSE.\n\n";
@@ -733,7 +754,12 @@
 }
 else {
 my ( $ret_str, $error ) = check($dist);
-if ( grep {/\Q$dist->{'name'}\E/} keys %supported_release ) {
+   if ($dist->{'name'} eq "Tumbleweed"){
+   print STDERR "INFO: found Tumbleweed $version_release in 
\%supported_release\n";
+   print STDERR "INFO: without parsing 
http://download.opensuse.org/tumbleweed/repo/oss/media.1/media I can not say 
more\n";
+   print STDERR "INFO: at the moment. So a FIXME for the script - 
but until then, don't be evil and say OK.\n";
+   }
+elsif ( grep {/\Q$dist->{'name'}\E/} keys %supported_release ) {
 print STDERR "INFO: found $dist->{'name'} - checking supportstatus\n" 
if ($DEBUG);
 if ( grep {/\Q$version_release\E/} @{ 
$supported_release{$dist->{'name'}} } ) {
 print STDERR "INFO: found $version_release for $dist->{'name'} in 
\%supported_release - OK\n" if ($DEBUG);

++ usr.lib.nagios.plugins.check_zypper ++
--- /var/tmp/diff_new_pack.cpDlsM/_old  2015-08-28 08:27:52.000

commit monitoring-plugins-zypper for openSUSE:Factory

2015-03-11 Thread h_root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2015-03-11 09:58:58

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


Package is "monitoring-plugins-zypper"

Changes:

--- 
/work/SRC/openSUSE:Factory/monitoring-plugins-zypper/monitoring-plugins-zypper.changes
  2015-03-03 11:14:37.0 +0100
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new/monitoring-plugins-zypper.changes
 2015-03-11 09:58:58.0 +0100
@@ -1,0 +2,5 @@
+Tue Mar  3 12:47:22 UTC 2015 - l...@linux-schulserver.de
+
+- allow to open /var/lib/YaST2/cookies in zypp-refresh
+
+---



Other differences:
--
++ monitoring-plugins-zypper.spec ++
--- /var/tmp/diff_new_pack.xKGT0f/_old  2015-03-11 09:58:59.0 +0100
+++ /var/tmp/diff_new_pack.xKGT0f/_new  2015-03-11 09:58:59.0 +0100
@@ -1,7 +1,6 @@
 #
 # spec file for package monitoring-plugins-zypper
 #
-# Copyright (c) 2012-2014 SUSE LINUX Products GmbH, Nuernberg, Germany.
 # Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
 #
 # All modifications and additions to the file contributed by third parties
@@ -22,7 +21,7 @@
 License:BSD-3-Clause
 Group:  System/Monitoring
 Version:1.82
-Release:100
+Release:0
 Url:http://en.opensuse.org/Monitoring-plugins-zypper
 Source0:check_zypper.pl
 Source1:usr.lib.nagios.plugins.check_zypper 

++ usr.lib.nagios.plugins.check_zypper ++
--- /var/tmp/diff_new_pack.xKGT0f/_old  2015-03-11 09:58:59.0 +0100
+++ /var/tmp/diff_new_pack.xKGT0f/_new  2015-03-11 09:58:59.0 +0100
@@ -53,6 +53,7 @@
 /usr/bin/gpg2 px -> /usr/lib/nagios/plugins/check_zypper//gpg,
 /usr/bin/uuidgen px -> /usr/lib/nagios/plugins/check_zypper//uuidgen,
 /usr/bin/repo2solv.sh px -> 
/usr/lib/nagios/plugins/check_zypper//repo2solv, 
+/var/lib/YaST2/cookies r,
   }
   profile repo2solv {
 #include 

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



commit monitoring-plugins-zypper for openSUSE:Factory

2015-03-03 Thread h_root
Hello community,

here is the log from the commit of package monitoring-plugins-zypper for 
openSUSE:Factory checked in at 2015-03-03 11:14:36

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


Package is "monitoring-plugins-zypper"

Changes:

New Changes file:

--- /dev/null   2015-02-28 12:43:00.252025756 +0100
+++ 
/work/SRC/openSUSE:Factory/.monitoring-plugins-zypper.new/monitoring-plugins-zypper.changes
 2015-03-03 11:14:37.0 +0100
@@ -0,0 +1,434 @@
+---
+Sun Mar  1 10:23:04 UTC 2015 - l...@linux-schulserver.de
+
+- use BSD-3-Clause as license
+
+---
+Sat Dec 13 19:44:44 UTC 2014 - l...@linux-schulserver.de
+
+- allow DNS resolution for abstraction RPM and kernel random usage 
+  for zypp abstraction (apparmor) - based on 13.1
+- include local/usr.lib.nagios.plugins.check_zypper in apparmor
+  profile to allow users to override default settings
+
+---
+Sat Dec 13 19:32:41 UTC 2014 - l...@linux-schulserver.de
+
+- allow check_zypper to open any file below /etc/monitoring-plugins/
+  in apparmor profile
+
+---
+Mon Dec  1 15:16:09 UTC 2014 - l...@linux-schulserver.de
+
+- allow zypper to open config_gnome3.so (bnc #857122#c8 )
+
+---
+Fri Nov  7 21:02:20 UTC 2014 - l...@linux-schulserver.de
+
+- update to 1.82:
+  + try refresh_wrapper first before using zypper ref
+  + adapt apparmor profile to be more generic for binary moves 
+between /usr/bin and /bin
+  + allow execution of sudo (again) in apparmor profile
+  + add next generation distributions as supported
+
+---
+Tue Oct 21 14:20:10 CEST 2014 - r...@suse.de
+
+- update apparmor profile again, add abstrations/nameservice
+  for zypper and rpm subprofiles 
+
+---
+Wed Jul 30 19:24:36 UTC 2014 - l...@linux-schulserver.de
+
+- Renamed package to monitoring-plugins-zypper
+
+---
+Wed Jul 23 13:54:29 UTC 2014 - l...@linux-schulserver.de
+
+- update to 1.81:
+  + adapt apparmor profiles according to bnc #857122
+  + add hint to allow local repos in 
+/etc/apparmor.d/usr.lib.nagios.plugins.check_zypper
+
+---
+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
+
+---
+Fri Jun 13 09:34:00 UTC 2014 - l...@linux-schulserver.de
+
+- update to 1.76:
+  + SLE 12 packages belong to "SUSE LLC "
+
+---
+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)
+
+---
+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
+
+---
+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 )
+
+---
+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