diff options
author | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
---|---|---|
committer | V3n3RiX <venerix@redcorelinux.org> | 2018-07-14 21:03:06 +0100 |
commit | 8376ef56580626e9c0f796d5b85b53a0a1c7d5f5 (patch) | |
tree | 7681bbd4e8b05407772df40a4bf04cbbc8afc3fa /app-crypt/gnupg-pkcs11-scd/files | |
parent | 30a9caf154332f12ca60756e1b75d2f0e3e1822d (diff) |
gentoo resync : 14.07.2018
Diffstat (limited to 'app-crypt/gnupg-pkcs11-scd/files')
-rw-r--r-- | app-crypt/gnupg-pkcs11-scd/files/gnupg-pkcs11-scd-proxy.confd | 1 | ||||
-rw-r--r-- | app-crypt/gnupg-pkcs11-scd/files/gnupg-pkcs11-scd-proxy.initd | 23 |
2 files changed, 24 insertions, 0 deletions
diff --git a/app-crypt/gnupg-pkcs11-scd/files/gnupg-pkcs11-scd-proxy.confd b/app-crypt/gnupg-pkcs11-scd/files/gnupg-pkcs11-scd-proxy.confd new file mode 100644 index 000000000000..702cf615fa6d --- /dev/null +++ b/app-crypt/gnupg-pkcs11-scd/files/gnupg-pkcs11-scd-proxy.confd @@ -0,0 +1 @@ +SCD_CONFIG=/etc/gnupg-pkcs11-scd.conf diff --git a/app-crypt/gnupg-pkcs11-scd/files/gnupg-pkcs11-scd-proxy.initd b/app-crypt/gnupg-pkcs11-scd/files/gnupg-pkcs11-scd-proxy.initd new file mode 100644 index 000000000000..50b324882400 --- /dev/null +++ b/app-crypt/gnupg-pkcs11-scd/files/gnupg-pkcs11-scd-proxy.initd @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="gnupg-pkcs11-scd proxy." + +GNUPG_PKCS11_GROUP="${GNUPG_PKCS11_GROUP:-gnupg-pkcs11}" + +command="/usr/bin/gnupg-pkcs11-scd-proxy-server" +command_args="--scd-config='${SCD_CONFIG}' --socket-group=${GNUPG_PKCS11_GROUP} ${EXTRA_OPTS}" +pidfile=${PIDFILE:-/run/${SVCNAME}.pid} +user=${USER:-gnupg-pkcs11-scd-proxy} +group=${GROUP:-gnupg-pkcs11-scd-proxy} +start_stop_daemon_args="--user ${user} --group ${group} --background --make-pidfile" + +depend() { + need localmount + after bootmisc +} + +start_pre() { + checkpath -o ${user}:${GNUPG_PKCS11_GROUP} -m 0750 -d /run/gnupg-pkcs11-scd-proxy +} |