From e108423881beb4aa4346c9e19aaeb2f2791bfb8ba15b71cc0672a7e95d0a049e Mon Sep 17 00:00:00 2001 From: Thorsten Kukuk Date: Mon, 11 Nov 2024 06:05:25 +0000 Subject: [PATCH] - Add compatibility symlink for rebootmgrctl to sbin OBS-URL: https://build.opensuse.org/package/show/devel:microos/rebootmgr?expand=0&rev=20 --- .gitattributes | 23 ++ .gitignore | 1 + _service | 14 ++ _servicedata | 5 + rebootmgr-2.4+git20240524.30e5383.tar.xz | 3 + rebootmgr-2.6+git20241108.fc0c103.tar.xz | 3 + rebootmgr.changes | 274 +++++++++++++++++++++++ rebootmgr.spec | 81 +++++++ 8 files changed, 404 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 _service create mode 100644 _servicedata create mode 100644 rebootmgr-2.4+git20240524.30e5383.tar.xz create mode 100644 rebootmgr-2.6+git20241108.fc0c103.tar.xz create mode 100644 rebootmgr.changes create mode 100644 rebootmgr.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/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/_service b/_service new file mode 100644 index 0000000..dee20d4 --- /dev/null +++ b/_service @@ -0,0 +1,14 @@ + + + 2.5 + 2.6+git%cd.%h + https://github.com/SUSE/rebootmgr.git + git + enable + + + xz + *.tar + + + diff --git a/_servicedata b/_servicedata new file mode 100644 index 0000000..81dc001 --- /dev/null +++ b/_servicedata @@ -0,0 +1,5 @@ + + + https://github.com/SUSE/rebootmgr.git + fc0c103d4ff51f093b54581d47fff6ddf889b895 + \ No newline at end of file diff --git a/rebootmgr-2.4+git20240524.30e5383.tar.xz b/rebootmgr-2.4+git20240524.30e5383.tar.xz new file mode 100644 index 0000000..003a475 --- /dev/null +++ b/rebootmgr-2.4+git20240524.30e5383.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:f2246fe69ff25a570a35f53f4b7e928b20fba55a058429d2240e34a6c5067b19 +size 65604 diff --git a/rebootmgr-2.6+git20241108.fc0c103.tar.xz b/rebootmgr-2.6+git20241108.fc0c103.tar.xz new file mode 100644 index 0000000..1e5f417 --- /dev/null +++ b/rebootmgr-2.6+git20241108.fc0c103.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ddcac9ed2ab898422ffbde558f51c4f74d456d5d2bd0a14ad5d1f57dc840cbab +size 41368 diff --git a/rebootmgr.changes b/rebootmgr.changes new file mode 100644 index 0000000..bcddcdf --- /dev/null +++ b/rebootmgr.changes @@ -0,0 +1,274 @@ +------------------------------------------------------------------- +Mon Nov 11 06:03:16 UTC 2024 - Thorsten Kukuk + +- Add compatibility symlink for rebootmgrctl to sbin + +------------------------------------------------------------------- +Fri Nov 08 09:49:55 UTC 2024 - kukuk@suse.com + +- Update to version 2.6+git20241108.fc0c103: + * Fix installation of .so man pages + * Rework manpage generation + * Switch from configure.ac to meson + * Document that timezones are not supported + * Release version 2.5 + +------------------------------------------------------------------- +Fri May 24 11:56:30 UTC 2024 - kukuk@suse.com + +- Update to version 2.4+git20240524.30e5383: + * Move tmpfiles.d/soft-reboot-cleanup.conf to aaa_base + +------------------------------------------------------------------- +Fri May 03 13:10:33 UTC 2024 - kukuk@suse.com + +- Remove rcrebootmgr symlink +- Update to version 2.4+git20240503.5b98913: + * Don't generate html documentation anymore + * Fix manual page dependencies for parallel build + * Update configure.ac + * Fix soft-reboot detection in forced mode + +------------------------------------------------------------------- +Fri Mar 15 12:34:51 UTC 2024 - Thorsten Kukuk + +- Update to version 2.4 + - Make sure systemctl reboot will not switch to soft-reboot + automatically + +------------------------------------------------------------------- +Fri Mar 8 09:51:29 UTC 2024 - Thorsten Kukuk + +- Update to version 2.3 + - rebootmgrd: add verbose mode + - Enable verbose mode in rebootmgr.service by default + +------------------------------------------------------------------- +Wed Feb 7 13:07:11 UTC 2024 - Thorsten Kukuk + +- Update to version 2.2 + - Make sure /run/reboot-needed get's deleted after a soft-reboot + +------------------------------------------------------------------- +Fri Aug 18 13:46:41 UTC 2023 - Thorsten Kukuk + +- Update to version 2.1 + - Support systemctl soft-reboot (systemd >= v254) + +------------------------------------------------------------------- +Fri Aug 11 08:30:08 UTC 2023 - Avinesh Kumar + +- Typo fix in spec description + +------------------------------------------------------------------- +Wed Oct 26 12:25:06 UTC 2022 - Thorsten Kukuk + +- Update to version 2.0 + - Remove outdated etcd code + - Fix issue#10: + Reboots happen at the first moment of the maintenance window + +------------------------------------------------------------------- +Wed Mar 10 15:17:01 UTC 2021 - Thorsten Kukuk + +- Update to version 1.3.1 + - Move all dbus config files to /usr/share/dbus-1 + +------------------------------------------------------------------- +Wed Jul 1 13:04:21 UTC 2020 - Thorsten Kukuk + +- Update to version 1.3 + - Fix documentation of is-active return value [bsc#1173484] + - Fix crash if rebootmgrd is already running + - Fix systemctl restart; also removes KillMode=none from systemd + service file [bsc#1186510] + +------------------------------------------------------------------- +Mon Jun 8 14:20:25 UTC 2020 - Thorsten Kukuk + +- Update to version 1.2 + - depend on dbus and not network as we disabled etcd support + [bsc#1172518] + +------------------------------------------------------------------- +Thu Apr 30 10:31:48 UTC 2020 - Thorsten Kukuk + +- Update to version 1.1 + - fix systemd and tmpfiles.d directory path + +------------------------------------------------------------------- +Thu Apr 30 10:27:37 UTC 2020 - Thorsten Kukuk + +- Use official tar archive + +------------------------------------------------------------------- +Mon Apr 27 10:43:58 UTC 2020 - Thorsten Kukuk + +- Adjust BuildRequires + +------------------------------------------------------------------- +Mon Apr 27 09:51:18 UTC 2020 - Thorsten Kukuk + +- Update to version 1.0 + - Rewrite rebootmgrd to not depend on glib and dbus-glib + +------------------------------------------------------------------- +Wed Jan 29 12:40:26 UTC 2020 - Thorsten Kukuk + +- Disable ectd support (no current etcd C-library available) + +------------------------------------------------------------------- +Wed Nov 27 13:59:47 UTC 2019 - Ignaz Forster + +- Fix %posttrans script returning an error code + +------------------------------------------------------------------- +Mon Nov 4 15:32:45 CET 2019 - kukuk@suse.de + +- Update to version 0.20.1 + - added a memory allocation check + +------------------------------------------------------------------- +Mon Sep 9 10:40:46 CEST 2019 - kukuk@suse.de + +- Fix %config for backward compatibility + +------------------------------------------------------------------- +Fri Sep 6 13:03:15 CEST 2019 - kukuk@suse.de + +- Update to version 0.20 + - add support to write changes back to /etc/rebootmgr.conf + - fix compilation with glibc 2.30 [bsc#1197850] + +------------------------------------------------------------------- +Wed Aug 28 12:56:07 CEST 2019 - kukuk@suse.de + +- Preserve /etc/rebootmgr.conf if modified + +------------------------------------------------------------------- +Tue Aug 27 15:17:28 CEST 2019 - kukuk@suse.de + +- Update to version 0.19 + - use libeconf for /usr/etc move + +------------------------------------------------------------------- +Thu Jan 17 16:52:42 CET 2019 - kukuk@suse.de + +- Update to version 0.18 + - allow to compile without etcd support + +------------------------------------------------------------------- +Wed Mar 28 13:35:47 CEST 2018 - kukuk@suse.de + +- Update to version 0.17 + - fix some bugs around etcd locks and reboot fast path + +------------------------------------------------------------------- +Mon Mar 19 12:00:31 CET 2018 - kukuk@suse.de + +- Use %license instead of %doc [bsc#1082318] + +------------------------------------------------------------------- +Wed Jan 10 10:08:21 CET 2018 - kukuk@suse.de + +- Update to version 0.16 + - fix compile problem with new json-c [bsc#1075329] + +------------------------------------------------------------------- +Wed Sep 13 15:46:09 CEST 2017 - kukuk@suse.de + +- Update to version 0.15 + - Adjust for systemd >= 230 + +------------------------------------------------------------------- +Fri Mar 31 13:30:03 CEST 2017 - kukuk@suse.de + +- Update to version 0.14 + - Allow to have no maintenance window configured [bsc#1031619] + +------------------------------------------------------------------- +Wed Mar 15 13:13:14 CET 2017 - kukuk@suse.de + +- Update to version 0.13 + - Don't reboot outside maintenance window if getting the etcd + lock takes too long [bsc#1028060] + +------------------------------------------------------------------- +Fri Mar 3 16:44:09 CET 2017 - kukuk@suse.de + +- Update to version 0.12 + - Rewrote reboot code to not block dbus if we wait for etcd locks + [bsc#1026298] + - Fix rebootmgr.service dependencies + - Check input for maintenance window for correct syntax before + sending to the daemon [bsc#1026220] + +------------------------------------------------------------------- +Mon Feb 27 17:44:46 CET 2017 - kukuk@suse.de + +- Update to version 0.11 + - Implement unlocking of a machine_id not equal to our own [bsc#1026273] + - Watch for correct key when waiting for lock [bsc#1026274] + +------------------------------------------------------------------- +Thu Feb 16 15:01:51 CET 2017 - kukuk@suse.de + +- Update to version 0.10 + - Fix typos in documentation + - Fix compilation on 32bit systems + +------------------------------------------------------------------- +Tue Feb 14 11:36:41 CET 2017 - kukuk@suse.de + +- Update to version 0.9 + - Finish rebootmgrctl manual page + +------------------------------------------------------------------- +Wed Feb 8 16:48:30 CET 2017 - kukuk@suse.de + +- Update to version 0.8 + - Implement changing number of hosts holding a lock at the same time + - Add new and enhance existing manual pages + +------------------------------------------------------------------- +Thu Jan 12 21:19:48 CET 2017 - kukuk@suse.de + +- Update to version 0.7 + - Fix dbus name in systemd service file + +------------------------------------------------------------------- +Thu Jan 12 11:34:33 CET 2017 - kukuk@suse.de + +- Update to version 0.6 + - Add etcd lock support + +------------------------------------------------------------------- +Mon Jan 9 16:33:00 CET 2017 - kukuk@suse.de + +- Update to version 0.5 + - Rewrite for better dbus support + - Merges typo.patch + +------------------------------------------------------------------- +Tue Dec 13 10:08:30 CET 2016 - kukuk@suse.de + +- Fix typo in executing systemctl + +------------------------------------------------------------------- +Wed Nov 23 15:16:38 CET 2016 - kukuk@suse.de + +- Update to versin 0.3 + - fix path for systemctl + +------------------------------------------------------------------- +Wed Nov 23 10:50:31 CET 2016 - kukuk@suse.de + +- Update to version 0.2 + - implement maintenance window + - implement rebootmgrctl get-strategy + +------------------------------------------------------------------- +Sun Nov 20 21:37:09 CET 2016 - kukuk@suse.de + +- Initial submission + diff --git a/rebootmgr.spec b/rebootmgr.spec new file mode 100644 index 0000000..149f3b0 --- /dev/null +++ b/rebootmgr.spec @@ -0,0 +1,81 @@ +# +# spec file for package rebootmgr +# +# 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/ +# + + +Name: rebootmgr +Version: 2.6+git20241108.fc0c103 +Release: 0 +Summary: Automatic controlled reboot during a maintenance window +License: GPL-2.0-only AND LGPL-2.1-or-later +Group: System/Base +URL: https://github.com/SUSE/rebootmgr +Source: %{name}-%{version}.tar.xz +BuildRequires: docbook-xsl-stylesheets +BuildRequires: meson +BuildRequires: pkgconfig +BuildRequires: pkgconfig(dbus-1) +BuildRequires: pkgconfig(libeconf) + +%description +RebootManager is a dbus service to execute a controlled reboot after updates in a defined maintenance window. + +If you updated a system with e.g. transactional updates or a kernel update was applied, you can tell rebootmgrd with rebootmgrctl, that the machine should be reboot at the next possible time. This can either be immediately or during a defined maintenance window. + +%prep +%autosetup + +%build +%meson +%meson_build + +%install +%meson_install +ln -sf ../bin/rebootmgrctl %{buildroot}%{_sbindir}/rebootmgrctl + +#%check +#meson_test + +%pre +%service_add_pre rebootmgr.service + +%post +%service_add_post rebootmgr.service + +%preun +%service_del_preun rebootmgr.service + +%postun +%service_del_postun rebootmgr.service + +%files +%license COPYING COPYING.LIB +%doc NEWS +%dir %{_datadir}/rebootmgr +%{_datadir}/rebootmgr/rebootmgr.conf +%{_unitdir}/rebootmgr.service +%{_bindir}/rebootmgrctl +%{_sbindir}/rebootmgrctl +%{_sbindir}/rebootmgrd +%{_datadir}/dbus-1/interfaces/org.opensuse.RebootMgr.xml +%{_datadir}/dbus-1/system.d/org.opensuse.RebootMgr.conf +%{_mandir}/man1/rebootmgrctl.1%{?ext_man} +%{_mandir}/man5/rebootmgr.conf.5%{?ext_man} +%{_mandir}/man8/rebootmgrd.8%{?ext_man} +%{_mandir}/man8/org.opensuse.RebootMgr.conf.8%{?ext_man} +%{_mandir}/man8/rebootmgr.service.8%{?ext_man} + +%changelog