Sync from SUSE:SLFO:Main os-update revision 8826c9650ca799d307bd3e6e77bbfbef

This commit is contained in:
Adrian Schröter 2024-05-03 17:35:45 +02:00
commit b26c818132
5 changed files with 319 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@ -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

BIN
os-update-1.15.tar.xz (Stored with Git LFS) Normal file

Binary file not shown.

1
os-update-rpmlintrc Normal file
View File

@ -0,0 +1 @@
addFilter('os-update.service')

167
os-update.changes Normal file
View File

@ -0,0 +1,167 @@
-------------------------------------------------------------------
Thu Jan 18 16:12:32 UTC 2024 - Thorsten Kukuk <kukuk@suse.com>
- 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 <georg.pfuetzenreuter@suse.com>
- Do not overwrite os-update.conf on Leap
-------------------------------------------------------------------
Fri Nov 24 13:27:21 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
- Update to version 1.14
- Fix check if rebootmgrctl is installed
-------------------------------------------------------------------
Thu Nov 23 13:27:41 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
- Update to version 1.13
- Skip restart of virtlockd by default
-------------------------------------------------------------------
Thu Oct 5 13:28:09 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
- Update to version 1.12
- Add support for systemd soft-reboot
-------------------------------------------------------------------
Mon May 8 08:49:37 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
- Use suse_version instead of sle_version
-------------------------------------------------------------------
Fri Apr 28 14:34:27 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
- Adjust URL to openSUSE github repo
-------------------------------------------------------------------
Fri Apr 28 09:16:01 UTC 2023 - Andreas Vetter <vetter@physik.uni-wuerzburg.de>
- 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 <kukuk@suse.com>
- Update to Version 1.11
- Add LOG_TAG
- Fix reboottrigger for SLES12
-------------------------------------------------------------------
Tue Apr 25 23:07:54 UTC 2023 - Georg Pfuetzenreuter <georg.pfuetzenreuter@suse.com>
- Require lsof
-------------------------------------------------------------------
Thu Jan 19 09:21:19 UTC 2023 - Thorsten Kukuk <kukuk@suse.com>
- 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 <kukuk@suse.com>
- 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 <kukuk@suse.com>
- Update to Version 1.8
- Allow to specify additional options for mailx
-------------------------------------------------------------------
Wed Dec 21 10:17:01 UTC 2022 - Johannes Kastl <kastl@b1-systems.de>
- 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 <kukuk@suse.com>
- 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 <kukuk@suse.com>
- Update to version 1.6
- Restart systemd if necessary
-------------------------------------------------------------------
Thu Nov 24 13:49:25 UTC 2022 - Thorsten Kukuk <kukuk@suse.com>
- 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 <kukuk@suse.com>
- 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 <kukuk@suse.com>
- 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 <kukuk@suse.com>
- Update to version 1.4
- Provide service to send mails about systemd service status
-------------------------------------------------------------------
Fri Nov 4 07:36:37 UTC 2022 - Thorsten Kukuk <kukuk@suse.com>
- 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 <kukuk@suse.com>
- Require zypper-needs-restarting
-------------------------------------------------------------------
Mon Oct 31 10:02:40 UTC 2022 - Thorsten Kukuk <kukuk@suse.com>
- 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 <kukuk@suse.com>
- Update to version 1.0
- First public release
- Update documentation
-------------------------------------------------------------------
Thu Oct 8 07:52:13 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
- Remove debug output
-------------------------------------------------------------------
Fri Sep 25 15:37:34 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
- Initial version

125
os-update.spec Normal file
View File

@ -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 <service>".
%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