mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
fix and rename systemd sysusers (#750)
* systemd-sysusers-presets package * rename package * rename folder * unwrap macro * forgor * forgot rename for the thing * complete description * append summary
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
project pkg {
|
||||
rpm {
|
||||
spec = "katsu-systemd-sysusers-presets.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,72 @@
|
||||
%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
|
||||
@@ -0,0 +1,2 @@
|
||||
g polkitd 114
|
||||
u polkitd 114:114 "User for polkitd" - -
|
||||
@@ -0,0 +1,2 @@
|
||||
g rpc 32
|
||||
u rpc 32:32 "Rpcbind Daemon" - -
|
||||
Reference in New Issue
Block a user