From b26c8181328787c0101f496400b1530e07588aded65502a6340bc8a2c722ec7d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adrian=20Schr=C3=B6ter?= Date: Fri, 3 May 2024 17:35:45 +0200 Subject: [PATCH] Sync from SUSE:SLFO:Main os-update revision 8826c9650ca799d307bd3e6e77bbfbef --- .gitattributes | 23 ++++++ os-update-1.15.tar.xz | 3 + os-update-rpmlintrc | 1 + os-update.changes | 167 ++++++++++++++++++++++++++++++++++++++++++ os-update.spec | 125 +++++++++++++++++++++++++++++++ 5 files changed, 319 insertions(+) create mode 100644 .gitattributes create mode 100644 os-update-1.15.tar.xz create mode 100644 os-update-rpmlintrc create mode 100644 os-update.changes create mode 100644 os-update.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/os-update-1.15.tar.xz b/os-update-1.15.tar.xz new file mode 100644 index 0000000..e17e10d --- /dev/null +++ b/os-update-1.15.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:16daec14f10f9e3307afd92eabd27d7b21ba1f2b91a0a23a6a3aa79263236ec9 +size 59976 diff --git a/os-update-rpmlintrc b/os-update-rpmlintrc new file mode 100644 index 0000000..5d0d1bf --- /dev/null +++ b/os-update-rpmlintrc @@ -0,0 +1 @@ +addFilter('os-update.service') diff --git a/os-update.changes b/os-update.changes new file mode 100644 index 0000000..dbc1c90 --- /dev/null +++ b/os-update.changes @@ -0,0 +1,167 @@ +------------------------------------------------------------------- +Thu Jan 18 16:12:32 UTC 2024 - Thorsten Kukuk + +- Update to version 1.15 + - Add systemd generator for systemd-status-mail + - Add own user for status-mail service + +------------------------------------------------------------------- +Fri Jan 5 10:24:34 UTC 2024 - Georg Pfuetzenreuter + +- Do not overwrite os-update.conf on Leap + +------------------------------------------------------------------- +Fri Nov 24 13:27:21 UTC 2023 - Thorsten Kukuk + +- Update to version 1.14 + - Fix check if rebootmgrctl is installed + +------------------------------------------------------------------- +Thu Nov 23 13:27:41 UTC 2023 - Thorsten Kukuk + +- Update to version 1.13 + - Skip restart of virtlockd by default + +------------------------------------------------------------------- +Thu Oct 5 13:28:09 UTC 2023 - Thorsten Kukuk + +- Update to version 1.12 + - Add support for systemd soft-reboot + +------------------------------------------------------------------- +Mon May 8 08:49:37 UTC 2023 - Thorsten Kukuk + +- Use suse_version instead of sle_version + +------------------------------------------------------------------- +Fri Apr 28 14:34:27 UTC 2023 - Thorsten Kukuk + +- Adjust URL to openSUSE github repo + +------------------------------------------------------------------- +Fri Apr 28 09:16:01 UTC 2023 - Andreas Vetter + +- Fix things not available in SLE12: + - Do not require zypper-needs-restarting + - Require mailx since conditional requires are not available in SLE12 + - define make_build macro + +------------------------------------------------------------------- +Thu Apr 27 13:36:31 UTC 2023 - Thorsten Kukuk + +- Update to Version 1.11 + - Add LOG_TAG + - Fix reboottrigger for SLES12 + +------------------------------------------------------------------- +Tue Apr 25 23:07:54 UTC 2023 - Georg Pfuetzenreuter + +- Require lsof + +------------------------------------------------------------------- +Thu Jan 19 09:21:19 UTC 2023 - Thorsten Kukuk + +- Update to Version 1.10 + - Fix check if reboot is required + - Improve/fix check if systemd needs to be restarted + +------------------------------------------------------------------- +Fri Jan 13 13:40:55 UTC 2023 - Thorsten Kukuk + +- Update to Version 1.9 + - Minimal support for SLE12 (os-update) + - From address now configureable (systemd-status-mail) + - Include error messages of systemctl, too (systemd-status-mail) + +------------------------------------------------------------------- +Wed Dec 21 10:53:22 UTC 2022 - Thorsten Kukuk + +- Update to Version 1.8 + - Allow to specify additional options for mailx + +------------------------------------------------------------------- +Wed Dec 21 10:17:01 UTC 2022 - Johannes Kastl + +- if sysconfdir is being used on older SLES/Leap versions, + mark the config file as %config(noreplace) + +------------------------------------------------------------------- +Mon Dec 19 12:23:37 UTC 2022 - Thorsten Kukuk + +- Update to Version 1.7 + - Fix detection of running rebootmgrd + - Add SERVICES_TRIGGERING_REBOOT (#2) + +------------------------------------------------------------------- +Mon Dec 5 13:47:15 UTC 2022 - Thorsten Kukuk + +- Update to version 1.6 + - Restart systemd if necessary + +------------------------------------------------------------------- +Thu Nov 24 13:49:25 UTC 2022 - Thorsten Kukuk + +- Update to version 1.5 + - Restart udev after update by default + - Support REBOOT_CMD="none" + +------------------------------------------------------------------- +Fri Nov 11 09:30:12 UTC 2022 - Thorsten Kukuk + +- Update to version 1.4.2 + - Fixes for openSUSE Leap + - Add docu URLs to service files + +------------------------------------------------------------------- +Thu Nov 10 15:25:52 UTC 2022 - Thorsten Kukuk + +- Update to version 1.4.1 + - Increase limit of lines from log in status mail to 500 + - Fix syntax error in systemd-status-mail manual page source + +------------------------------------------------------------------- +Mon Nov 7 13:25:43 UTC 2022 - Thorsten Kukuk + +- Update to version 1.4 + - Provide service to send mails about systemd service status + +------------------------------------------------------------------- +Fri Nov 4 07:36:37 UTC 2022 - Thorsten Kukuk + +- Update to version 1.3 + - Restart services: don't restart os-update itself during update + +------------------------------------------------------------------- +Thu Nov 3 22:04:10 UTC 2022 - Thorsten Kukuk + +- Require zypper-needs-restarting + +------------------------------------------------------------------- +Mon Oct 31 10:02:40 UTC 2022 - Thorsten Kukuk + +- Update to version 1.2 + - Restart updated services + +------------------------------------------------------------------- +Thu Oct 27 08:01:08 UTC 2022 - kukuk@suse.com + +- Update to version 1.1 + - Update documentation + - Add openSUSE Leap support + +------------------------------------------------------------------- +Mon Jun 13 06:42:40 UTC 2022 - Thorsten Kukuk + +- Update to version 1.0 + - First public release + - Update documentation + +------------------------------------------------------------------- +Thu Oct 8 07:52:13 UTC 2020 - Thorsten Kukuk + +- Remove debug output + +------------------------------------------------------------------- +Fri Sep 25 15:37:34 UTC 2020 - Thorsten Kukuk + +- Initial version diff --git a/os-update.spec b/os-update.spec new file mode 100644 index 0000000..83474d5 --- /dev/null +++ b/os-update.spec @@ -0,0 +1,125 @@ +# +# spec file for package os-update +# +# Copyright (c) 2024 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%if ! %{defined _distconfdir} + %define _distconfdir %{_sysconfdir} +%endif + +Name: os-update +Version: 1.15 +Release: 0 +Summary: Updates the system regularly to stay current and safe +License: GPL-2.0-or-later +URL: https://github.com/openSUSE/os-update +Source: https://github.com/openSUSE/os-update/releases/download/v%{version}/os-update-%{version}.tar.xz +Source99: os-update-rpmlintrc +BuildRequires: pkgconfig +BuildRequires: sysuser-shadow +BuildRequires: sysuser-tools +BuildRequires: pkgconfig(systemd) +Requires: lsof +%if 0%{?suse_version} >= 1500 +Requires: zypper-needs-restarting +%endif +%if 0%{?suse_version} >= 1600 +Requires: zypp-boot-plugin >= 0.0.4 +%endif +Recommends: rebootmgr +Recommends: systemd-status-mail +BuildArch: noarch + +%description +Service to keep an OS update to date and secure. It is run by a +systemd.timer daily and can inform rebootmgrd that the update +requires a reboot. + +%package -n systemd-status-mail +Summary: Send a mail if a systemd.timer fails and/or succeeds +%if 0%{?suse_version} >= 1500 +Requires: (/usr/sbin/sendmail or mailx) +Suggests: mailx +%else +Requires: mailx +%endif +%sysusers_requires + +%description -n systemd-status-mail +systemd-mail-status is called by systemd-status-mail@.service if the +service is configured for the OnFailure and/or OnSuccess case of a +systemd unit. It sends an email to a configureable address with the name +of the service, the hostname and the output of +"systemctl status --full ". + +%prep +%setup -q + +%build +%configure --enable-vendordir=%{_distconfdir} +%if 0%{?suse_version} < 1500 + %define make_build %{__make} -O %{?_smp_mflags} +%endif +%make_build +%sysusers_generate_pre systemd/systemd-status-mail.conf systemd-status-mail systemd-status-mail.conf + +%install +%make_install +install -m 644 -D etc/default/systemd-status-mail %{buildroot}%{_distconfdir}/default/systemd-status-mail + +%pre +%service_add_pre os-update.timer + +%post +%service_add_post os-update.timer + +%preun +%service_del_preun os-update.timer + +%postun +%service_del_postun os-update.timer + +%pre -n systemd-status-mail -f systemd-status-mail.pre + +%files +%license COPYING +%doc README.md +%if 0%{?suse_version} < 1550 +%config(noreplace) %{_sysconfdir}/os-update.conf +%else +%{_distconfdir}/os-update.conf +%endif +%{_libexecdir}/os-update +%{_prefix}/lib/systemd/system/os-update.service +%{_prefix}/lib/systemd/system/os-update.timer +%{_mandir}/man8/os-update.8%{?ext_man} + +%files -n systemd-status-mail +%license COPYING +%if 0%{?suse_version} < 1550 +%config(noreplace) %{_sysconfdir}/default/systemd-status-mail +%else +%{_distconfdir}/default/systemd-status-mail +%endif +%{_libexecdir}/systemd-status-mail +%{_prefix}/lib/systemd/system/systemd-status-mail@.service +%{_prefix}/lib/systemd/system-generators/status-mail-generator.sh +%{_mandir}/man8/systemd-status-mail.8%{?ext_man} +%dir %{_datadir}/systemd-status-mail +%{_datadir}/systemd-status-mail/status-mail.conf +%{_sysusersdir}/systemd-status-mail.conf + +%changelog