chore: obsolete sysusers misc packages (#1000)

* chore: obsolete sysusers misc packages
these packages solved an issue upstream, which has been fixed in 40 and rawhide, as they're shipping their own sysusers presets now

* fix: add PR url
This commit is contained in:
lea
2024-03-25 03:48:59 -07:00
committed by GitHub
parent eaa6bb2a11
commit d694528bfd
9 changed files with 8 additions and 148 deletions
@@ -1,5 +0,0 @@
project pkg {
rpm {
spec = "katsu-systemd-sysusers-presets.spec"
}
}
@@ -1,72 +0,0 @@
%define debug_package %nil
Name: katsu-systemd-sysusers-presets
Version: 1.0
Release: %autorelease
Summary: A set of systemd system user presets to supplement Fedora's defaults, used by Katsu
License: GPLv3+
Source0: polkit.conf
Source1: rpcbind.conf
BuildRequires: systemd-rpm-macros
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
%description
A set of systemd system user presets to supplement Fedora's defaults,
Since for some packages, the system users are created using the package's
post-install script, this package is a no-op on its own. It is intended to be
used as a dependency for other packages that need to create system users.
For example, Polkit needs to create the polkitd system user, so this package
generates the polkitd system user for Polkit to use properly.
Katsu uses this package to fix Fedora's default system user presets, which
fails to add the system users for Polkit and rpcbind.
%package polkit
Summary: Polkit system user
Requires: rpcbind
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
Supplements: polkit
%description polkit
Polkit system user preset
%package rpcbind
Summary: RPC bind system user
Requires: rpcbind
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
Supplements: rpcbind
%description rpcbind
RPC bind system user preset
%prep
%install
install -D %{SOURCE0} %{buildroot}%{_sysusersdir}/katsu-polkit.conf
install -D %{SOURCE1} %{buildroot}%{_sysusersdir}/katsu-rpcbind.conf
%post polkit
systemd-sysusers %{_sysusersdir}/katsu-polkit.conf
%post rpcbind
systemd-sysusers %{_sysusersdir}/katsu-rpcbind.conf
%files polkit
%{_sysusersdir}/katsu-polkit.conf
%files rpcbind
%{_sysusersdir}/katsu-rpcbind.conf
%changelog
%autochangelog
@@ -1,2 +0,0 @@
g polkitd 114
u polkitd 114:114 "User for polkitd" - -
@@ -1,2 +0,0 @@
g rpc 32
u rpc 32:32 "Rpcbind Daemon" - -
@@ -1,5 +0,0 @@
project pkg {
rpm {
spec = "systemd-sysusers-presets.spec"
}
}
@@ -1,2 +0,0 @@
g polkitd 114
u polkitd 114:114 "User for polkitd" - -
@@ -1,2 +0,0 @@
g rpc 32
u rpc 32:32 "Rpcbind Daemon" - -
@@ -1,58 +0,0 @@
%define debug_package %nil
Name: systemd-sysusers-presets
Version: 1.0
Release: %autorelease
Summary: A set of systemd system user presets to supplement Fedora's defaults
License: GPLv3+
Source0: polkit.conf
Source1: rpcbind.conf
BuildRequires: systemd-rpm-macros
%{?systemd_requires}
%description
A set of systemd system user presets to supplement Fedora's defaults,
Since for some packages, the system users are created using the package's
post-install script, this package is a no-op on its own. It is intended to be
used as a dependency for other packages that need to create system users.
For example, Polkit needs to create the polkitd system user, so this package
generates the polkitd system user for Polkit to use properly.
%package polkit
Summary: Polkit system user
Requires: rpcbind
%{?systemd_requires}
Supplements: polkit
%description polkit
Polkit system user preset
%package rpcbind
Summary: RPC bind system user
Requires: rpcbind
%{?systemd_requires}
Supplements: rpcbind
%description rpcbind
RPC bind system user preset
%prep
%install
install -D %{SOURCE0} %{buildroot}%{_sysusersdir}/polkit.conf
install -D %{SOURCE1} %{buildroot}%{_sysusersdir}/rpcbind.conf
%post polkit
systemd-sysusers %{_sysusersdir}/polkit.conf
%post rpcbind
systemd-sysusers %{_sysusersdir}/rpcbind.conf
%files polkit
%{_sysusersdir}/polkit.conf
%files rpcbind
%{_sysusersdir}/rpcbind.conf
%changelog
%autochangelog
+8
View File
@@ -110,6 +110,14 @@ BuildArch: noarch
%obsolete_ticket https://github.com/terrapkg/packages/pull/994
%obsolete switchboard-plug-wallet 50582fc-3
%obsolete_ticket https://github.com/terrapkg/packages/pull/1000
%obsolete systemd-sysusers-presets 1.0-2
%obsolete systemd-sysusers-presets-polkit 1.0-2
%obsolete systemd-sysusers-presets-rpcbind 1.0-2
%obsolete katsu-systemd-sysusers-presets 1.0-2
%obsolete katsu-systemd-sysusers-presets-polkit 1.0-2
%obsolete katsu-systemd-sysusers-presets-rpcbind 1.0-2
%description
Currently obsoleted packages: