diff --git a/cockpit.changes b/cockpit.changes index 52637fe..93dbd92 100644 --- a/cockpit.changes +++ b/cockpit.changes @@ -1,4 +1,20 @@ ------------------------------------------------------------------- +Thu Aug 8 12:21:51 UTC 2024 - Jan Zerebecki + +- revert load pam_oath, because it enforces the file for otp secrets to exist, + will try again once pam_oath can have that optional + +------------------------------------------------------------------- +Wed Aug 7 20:25:34 UTC 2024 - Herbert Graeber + +- fix-libexecdir.patch: Fix libexecdir for leap and sle (bsc#1223533) +- Fix systemd units folder for leap and sle (bsc#1226541) + +------------------------------------------------------------------- +Sat Aug 7 09:37:00 UTC 2024 - pallas wept + +- Recommend cockpit-packagekit if zypper is installed + Wed Aug 7 09:36:58 UTC 2024 - Jan Zerebecki - load pam_oath for optional TOTP for authentication diff --git a/cockpit.pam b/cockpit.pam index 8eeed98..376d79f 100644 --- a/cockpit.pam +++ b/cockpit.pam @@ -8,4 +8,3 @@ password include common-password session required pam_loginuid.so session optional pam_keyinit.so force revoke session include common-session -auth [user_unknown=ignore success=ok] pam_oath.so usersfile=${HOME}/.pam_oath_usersfile window=20 digits=6 diff --git a/cockpit.spec b/cockpit.spec index 7e88c31..8c7bfd9 100644 --- a/cockpit.spec +++ b/cockpit.spec @@ -72,6 +72,7 @@ Patch102: 0002-selinux-temporary-remove-setroubleshoot-section.patch # For anything based on SLES 15 codebase (including Leap, SLE Micro) Patch103: 0004-leap-gnu18-removal.patch Patch104: selinux_libdir.patch +Patch105: fix-libexecdir.patch %define build_all 1 %if 0%{?rhel} == 8 && 0%{?epel} == 0 && !0%{?build_all} @@ -190,7 +191,7 @@ Requires: cockpit-system # Optional components Recommends: (cockpit-storaged if udisks2) -Recommends: (cockpit-packagekit if dnf) +Recommends: (cockpit-packagekit if (dnf or zypper)) Suggests: cockpit-pcp %if 0%{?rhel} == 0 @@ -235,6 +236,7 @@ BuildRequires: python3-tox-current-env %if 0%{?suse_version} == 1500 %patch -P 103 -p1 %patch -P 104 -p0 +%patch -P 105 -p1 %endif cp %SOURCE1 tools/cockpit.pam @@ -306,6 +308,12 @@ cp src/fonts.css %{buildroot}%{_datadir}/cockpit/branding/suse cp -a src/fonts %{buildroot}%{_datadir}/cockpit/branding/suse popd +%if 0%{?suse_version} == 1500 +sed -i -e 's#"/lib/systemd/system#"%{_unitdir}#' \ + %{buildroot}%{_datadir}/cockpit/packagekit/manifest.json \ + %{buildroot}%{_datadir}/cockpit/pcp/manifest.json +%endif + # Build the package lists for resource packages # cockpit-bridge is the basic dependency for all cockpit-* packages, so centrally own the page directory echo '%dir %{_datadir}/cockpit' > base.list @@ -558,7 +566,6 @@ Suggests: sssd-dbus >= 2.6.2 %if 0%{?suse_version} Requires(pre): permissions Requires: distribution-logos -Requires: pam_oath Requires: wallpaper-branding %endif # for cockpit-desktop diff --git a/fix-libexecdir.patch b/fix-libexecdir.patch new file mode 100644 index 0000000..113555e --- /dev/null +++ b/fix-libexecdir.patch @@ -0,0 +1,12 @@ +diff -up cockpit-320/src/cockpit/packages.py.org cockpit-320/src/cockpit/packages.py +--- cockpit-320/src/cockpit/packages.py.org 2024-07-14 21:06:50.378400822 +0200 ++++ cockpit-320/src/cockpit/packages.py 2024-07-14 21:07:40.568245119 +0200 +@@ -127,7 +127,7 @@ def get_libexecdir() -> str: + + This only works for systems which have cockpit-ws installed. + """ +- for candidate in ['/usr/local/libexec', '/usr/libexec', '/usr/local/lib/cockpit', '/usr/lib/cockpit']: ++ for candidate in ['/usr/local/libexec', '/usr/libexec', '/usr/local/lib/cockpit', '/usr/lib/cockpit', '/usr/lib']: + if os.path.exists(os.path.join(candidate, 'cockpit-askpass')): + return candidate + else: