Hello community,

here is the log from the commit of package vnstat for openSUSE:Factory checked 
in at 2019-04-12 09:15:30
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/vnstat (Old)
 and      /work/SRC/openSUSE:Factory/.vnstat.new.27019 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "vnstat"

Fri Apr 12 09:15:30 2019 rev:5 rq:693153 version:1.18

Changes:
--------
--- /work/SRC/openSUSE:Factory/vnstat/vnstat.changes    2018-05-29 
10:41:36.855812591 +0200
+++ /work/SRC/openSUSE:Factory/.vnstat.new.27019/vnstat.changes 2019-04-12 
09:15:31.169718269 +0200
@@ -1,0 +2,5 @@
+Thu Apr 11 09:09:45 UTC 2019 - Dirk Stoecker <opens...@dstoecker.de>
+
+- Don't use new systemd service options for system below 235 (systemd234.patch)
+
+-------------------------------------------------------------------

New:
----
  systemd234.patch

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

Other differences:
------------------
++++++ vnstat.spec ++++++
--- /var/tmp/diff_new_pack.Fi2TLX/_old  2019-04-12 09:15:32.401719014 +0200
+++ /var/tmp/diff_new_pack.Fi2TLX/_new  2019-04-12 09:15:32.405719017 +0200
@@ -1,7 +1,7 @@
 #
 # spec file for package vnstat
 #
-# 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/
 #
 
 
@@ -25,7 +25,7 @@
 Version:        1.18
 Release:        0
 Summary:        Network Traffic Monitor
-License:        GPL-2.0
+License:        GPL-2.0-only
 Group:          Productivity/Networking/Diagnostic
 Url:            http://humdi.net/vnstat
 Source:         http://humdi.net/vnstat/vnstat-%{version}.tar.gz
@@ -33,6 +33,7 @@
 Source2:        vnstat-cgi.conf
 Source3:        vnstat-create-db.sh
 Source4:        vnstat.init
+Patch1:         systemd234.patch
 BuildRequires:  autoconf
 BuildRequires:  automake
 BuildRequires:  gd-devel
@@ -72,6 +73,9 @@
 
 %prep
 %setup -q
+%if 0%{?suse_version} <= 1500
+%patch1 -p1
+%endif
 # Add user and group to the systemd service.
 sed -i 's/\(\[Service\]\)/\1\nUser=vnstat\nGroup=vnstat/' 
examples/systemd/vnstat.service
 
@@ -135,7 +139,8 @@
 
 %files
 %defattr(-,root,root)
-%doc CHANGES COPYING FAQ README UPGRADE
+%doc CHANGES FAQ README UPGRADE
+%license COPYING
 %config(noreplace) %{_sysconfdir}/vnstat.conf
 %{_sysconfdir}/sysconfig/network/scripts/vnstat
 %{_sysconfdir}/sysconfig/network/if-up.d/20-vnstat

++++++ systemd234.patch ++++++
diff -ur vnstat-1.18/examples/systemd/vnstat.service 
vnstat-1.18_fix/examples/systemd/vnstat.service
--- vnstat-1.18/examples/systemd/vnstat.service 2018-02-21 22:12:07.000000000 
+0100
+++ vnstat-1.18_fix/examples/systemd/vnstat.service     2019-04-11 
11:06:54.230281892 +0200
@@ -8,19 +8,6 @@
 ExecReload=/bin/kill -HUP $MAINPID
 Restart=on-failure
 
-# Hardening
-ProtectSystem=strict
-StateDirectory=vnstat
-PrivateDevices=yes
-ProtectKernelTunables=yes
-ProtectControlGroups=yes
-ProtectHome=yes
-ProtectKernelModules=yes
-PrivateTmp=yes
-MemoryDenyWriteExecute=yes
-RestrictRealtime=yes
-RestrictNamespaces=yes
-
 [Install]
 WantedBy=multi-user.target
 Alias=vnstatd.service

Reply via email to