Hello community, here is the log from the commit of package seccheck for openSUSE:Leap:15.2 checked in at 2020-04-21 19:06:55 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Leap:15.2/seccheck (Old) and /work/SRC/openSUSE:Leap:15.2/.seccheck.new.2738 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "seccheck" Tue Apr 21 19:06:55 2020 rev:18 rq:795749 version:3.0 Changes: -------- --- /work/SRC/openSUSE:Leap:15.2/seccheck/seccheck.changes 2020-01-15 16:01:51.591875835 +0100 +++ /work/SRC/openSUSE:Leap:15.2/.seccheck.new.2738/seccheck.changes 2020-04-21 19:08:29.804107793 +0200 @@ -1,0 +2,21 @@ +Sun Dec 29 10:40:47 UTC 2019 - [email protected] + +- update package description: no longer started by cron + +------------------------------------------------------------------- +Sun Sep 8 16:06:16 UTC 2019 - [email protected] + +- adapt WantedBy so the timers are actually started at boot + time when enabled (#1132919) + added patch: timers_wanted_by_1132919.patch +- correct indentation of SECCHK_FROM (#985802) for the + weekly and monthly mails so that the mail header lines + are recognised by the receiving mail client + added patch: mail_headerlines_985802.patch + +------------------------------------------------------------------- +Sat Mar 16 11:13:27 UTC 2019 - Jan Engelhardt <[email protected]> + +- Combine %service_* calls to reduce generated boilerplate. + +------------------------------------------------------------------- New: ---- mail_headerlines_985802.patch timers_wanted_by_1132919.patch ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ seccheck.spec ++++++ --- /var/tmp/diff_new_pack.8sG1yF/_old 2020-04-21 19:08:30.972110171 +0200 +++ /var/tmp/diff_new_pack.8sG1yF/_new 2020-04-21 19:08:30.972110171 +0200 @@ -1,7 +1,7 @@ # # spec file for package seccheck # -# Copyright (c) 2019 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 @@ -27,9 +27,10 @@ Summary: Security-Check Scripts License: GPL-2.0+ Group: Productivity/Security -Url: https://github.com/openSUSE/seccheck -Source0: https://github.com/openSUSE/seccheck/archive/master.zip +Source0: https://github.com/vpereira/seccheck/archive/master.zip Source1: sysconfig.seccheck +Patch1: mail_headerlines_985802.patch +Patch2: timers_wanted_by_1132919.patch BuildRequires: unzip Requires: bash # FIXME: use proper Requires(pre/post/preun/...) @@ -42,14 +43,15 @@ BuildRequires: pkgconfig(systemd) %{?systemd_requires} + %description -Regularly executable scripts (via cron) for checking the security of -your system. +Regularly executable scripts (via systemd timers) for checking the security of +your system. The seccheck systemd timers have to be enabled (and possibly started) +by the administrator for the checks to be run. %prep %setup -q -n seccheck-master - -%build +%autopatch -p1 %install install -d -m 700 %{buildroot}%{_localstatedir}/lib/secchk @@ -76,25 +78,18 @@ install -m 644 autologout.conf %{buildroot}%{_sysconfdir}/security/ %pre -%service_add_pre seccheck-daily.timer -%service_add_pre seccheck-weekly.timer -%service_add_pre seccheck-monthly.timer +%service_add_pre seccheck-daily.timer seccheck-weekly.timer seccheck-monthly.timer %post %fillup_only -%service_add_post %{name}-daily.timer -%service_add_post %{name}-weekly.timer -%service_add_post %{name}-monthly.timer +%service_add_post %{name}-daily.timer %{name}-weekly.timer %{name}-monthly.timer %preun -%service_del_preun %{name}-daily.timer -%service_del_preun %{name}-weekly.timer -%service_del_preun %{name}-monthly.timer +%service_del_preun %{name}-daily.timer %{name}-weekly.timer %{name}-monthly.timer %postun -%service_del_postun %{name}-daily.timer -%service_del_postun %{name}-weekly.timer -%service_del_postun %{name}-monthly.timer +%service_del_postun %{name}-daily.timer %{name}-weekly.timer %{name}-monthly.timer + %files %defattr(-,root,root) ++++++ mail_headerlines_985802.patch ++++++ diff -ur a/security-control.sh b/security-control.sh --- a/security-control.sh 2019-03-07 09:37:00.000000000 +0100 +++ b/security-control.sh 2019-09-08 17:53:36.960000000 +0200 @@ -58,7 +58,7 @@ if [ -s "$OUT2" ]; then { cat <<-EOF - From: $SECCHK_FROM + From: $SECCHK_FROM To: $SECCHK_USER Subject: Local Weekly Security for `hostname`: Changes @@ -79,7 +79,7 @@ test -e "$SEC_DATA/devices" || /bin/sh "$SEC_BIN/security-weekly.sh" 1> "$OLD2" { cat <<-EOF - From: $SECCHK_FROM + From: $SECCHK_FROM To: $SECCHK_USER Subject: Local Monthly Security for `hostname`: Complete ++++++ timers_wanted_by_1132919.patch ++++++ diff -ubr a/seccheck-autologout.timer b/seccheck-autologout.timer --- a/seccheck-autologout.timer 2019-03-07 09:37:00.000000000 +0100 +++ b/seccheck-autologout.timer 2019-09-08 17:48:38.712000000 +0200 @@ -7,4 +7,4 @@ Persistent=true [Install] -WantedBy=seccheck-autologout.service +WantedBy=timers.target diff -ubr a/seccheck-daily.timer b/seccheck-daily.timer --- a/seccheck-daily.timer 2019-03-07 09:37:00.000000000 +0100 +++ b/seccheck-daily.timer 2019-09-08 17:48:50.512000000 +0200 @@ -7,4 +7,4 @@ Persistent=true [Install] -WantedBy=seccheck-daily.service +WantedBy=timers.target diff -ubr a/seccheck-monthly.timer b/seccheck-monthly.timer --- a/seccheck-monthly.timer 2019-03-07 09:37:00.000000000 +0100 +++ b/seccheck-monthly.timer 2019-09-08 17:49:03.260000000 +0200 @@ -7,4 +7,4 @@ Persistent=true [Install] -WantedBy=seccheck-daily.service +WantedBy=timers.target diff -ubr a/seccheck-weekly.timer b/seccheck-weekly.timer --- a/seccheck-weekly.timer 2019-03-07 09:37:00.000000000 +0100 +++ b/seccheck-weekly.timer 2019-09-08 17:49:12.892000000 +0200 @@ -7,4 +7,4 @@ Persistent=true [Install] -WantedBy=seccheck-weekly.service +WantedBy=timers.target
