-
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
systemd-sysusers-presets package (#749)
- Loading branch information
1 parent
00bc4d7
commit dac4e2f
Showing
4 changed files
with
68 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
project pkg { | ||
rpm { | ||
spec = "systemd-sysusers-presets.spec" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
g polkitd 114 | ||
u polkitd 114:114 "User for polkitd" - - |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
g rpc 32 | ||
u rpc 32:32 "Rpcbind Daemon" - - |
59 changes: 59 additions & 0 deletions
59
anda/others/systemd-sysusers-presets/systemd-sysusers-presets.spec
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
%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 |