SHA256
1
0
forked from pool/openCryptoki

Removed "Requires" for getent command.

OBS-URL: https://build.opensuse.org/package/show/security/openCryptoki?expand=0&rev=152
This commit is contained in:
Nikolay Gueorguiev 2024-07-18 13:34:26 +00:00 committed by Git OBS Bridge
parent 18d764e160
commit 26cdc6eb56

View File

@ -59,7 +59,6 @@ BuildRequires: pkgconfig(systemd)
Requires(pre): %{_sbindir}/groupadd Requires(pre): %{_sbindir}/groupadd
Requires(pre): %{_sbindir}/useradd Requires(pre): %{_sbindir}/useradd
Requires(pre): %{_sbindir}/usermod Requires(pre): %{_sbindir}/usermod
Requires(pre): %{_sbindir}/getent
### ###
Provides: user(pkcs11) Provides: user(pkcs11)
Provides: group(pkcs11) Provides: group(pkcs11)
@ -182,8 +181,8 @@ rm -f %{buildroot}%{_libdir}/opencryptoki/methods
# autobuild:/work/cd/lib/misc/group # autobuild:/work/cd/lib/misc/group
# openCryptoki pkcs11:x:64: # openCryptoki pkcs11:x:64:
# openCryptoki pkcsslotd:x:64: # openCryptoki pkcsslotd:x:64:
%{_sbindir}/getent group %{pkcs_group} 2>/dev/null || %{_sbindir}/groupadd -g %{pkcs11_group_id} -r %{pkcs_group} 2>/dev/null || true getent group %{pkcs_group} 2>/dev/null || %{_sbindir}/groupadd -g %{pkcs11_group_id} -r %{pkcs_group} 2>/dev/null || true
%{_sbindir}/getent passwd pkcsslotd 2>/dev/null || %{_sbindir}/useradd -g %{pkcs11_group_id} -r pkcsslotd -s /sbin/nologin -d /run/opencryptoki 2>/dev/null || true getent passwd pkcsslotd 2>/dev/null || %{_sbindir}/useradd -g %{pkcs11_group_id} -r pkcsslotd -s /sbin/nologin -d /run/opencryptoki 2>/dev/null || true
%{_sbindir}/usermod -a -G %{pkcs_group} root %{_sbindir}/usermod -a -G %{pkcs_group} root
%preun %preun