diff options
Diffstat (limited to 'app-crypt/tang/files')
-rw-r--r-- | app-crypt/tang/files/tangd | 8 | ||||
-rw-r--r-- | app-crypt/tang/files/tangd.initd | 7 |
2 files changed, 9 insertions, 6 deletions
diff --git a/app-crypt/tang/files/tangd b/app-crypt/tang/files/tangd new file mode 100644 index 0000000..3bca6e1 --- /dev/null +++ b/app-crypt/tang/files/tangd @@ -0,0 +1,8 @@ +# Address for tang to listen to (default: 0.0.0.0) +ADDRESS=0.0.0.0 + +# Port for tang to listen to (default: 8888) +PORT=8888 + +# Directory where keys will be stored (default: /var/db/tang) +TANGDIR=/var/db/tang diff --git a/app-crypt/tang/files/tangd.initd b/app-crypt/tang/files/tangd.initd index 4b7e429..04d30b3 100644 --- a/app-crypt/tang/files/tangd.initd +++ b/app-crypt/tang/files/tangd.initd @@ -2,15 +2,10 @@ # Copyright 2022 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -port=8888 -bind=0.0.0.0 -tangd=/usr/libexec/tangd -tangdir=/var/db/tang - name="tang daemon" description="Tang binding daemon" command=/usr/bin/socat pidfile="/var/run/${RC_SVCNAME}.pid" command_user="tang" -command_args="TCP-LISTEN:${port},bind=${bind},fork SYSTEM:'${tangd} ${tangdir}'" +command_args="TCP-LISTEN:${PORT},bind=${ADDRESS},fork SYSTEM:'/usr/libexec/tang ${TANGDIR}'" command_background=true |