SHA256
1
0
forked from pool/openCryptoki

- remove -o from groupadd

- fixed sed script to not a grouplist with leading ,

OBS-URL: https://build.opensuse.org/package/show/security/openCryptoki?expand=0&rev=8
This commit is contained in:
Marcus Meissner 2012-12-08 18:50:55 +00:00 committed by Git OBS Bridge
parent 4ce1688b56
commit bddeada3ae
2 changed files with 12 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Sat Dec 8 18:51:31 UTC 2012 - meissner@suse.com
- remove -o from groupadd
- fixed sed script to not a grouplist with leading ,
-------------------------------------------------------------------
Sun Nov 27 06:59:49 UTC 2011 - coolo@suse.com

View File

@ -145,12 +145,16 @@ rm -f $RPM_BUILD_ROOT/%_libdir/opencryptoki/methods
# openCryptoki pkcs11:x:64:
/usr/sbin/groupadd -g %pkcs11_group_id -r pkcs11 2>/dev/null || true
# add root to group pkcs11 to enable root to run pkcsconf
/usr/bin/id --groups --name root | /bin/sed -e 's/root//'
echo $(/usr/bin/id --groups --name root | /bin/sed \
-e 's/root//' -e '
# add the pkcs group if it is missing
/(^| )pkcs11( |$)/!s/$/ pkcs11/
# replace spaces by commas
y/ /,/
# replace spaces by commas
s/^,//
'),pkcs11 root
/usr/sbin/usermod -G $(/usr/bin/id --groups --name root | /bin/sed \
@ -159,6 +163,8 @@ y/ /,/
/(^| )pkcs11( |$)/!s/$/ pkcs11/
# replace spaces by commas
y/ /,/
# remove leading , if present
s/^,//
'),pkcs11 root
%post