public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Julien Roy" <julien@jroy.ca>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/proj/guru:dev commit in: app-crypt/tang/, app-crypt/tang/files/
Date: Sat,  9 Jul 2022 02:01:50 +0000 (UTC)	[thread overview]
Message-ID: <1657332058.14b434163321e60a6f3d3f4b167909d55fc8e0ee.julien@gentoo> (raw)

commit:     14b434163321e60a6f3d3f4b167909d55fc8e0ee
Author:     Julien Roy <julien <AT> jroy <DOT> ca>
AuthorDate: Sat Jul  9 01:58:22 2022 +0000
Commit:     Julien Roy <julien <AT> jroy <DOT> ca>
CommitDate: Sat Jul  9 02:00:58 2022 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=14b43416

app-crypt/tang: add conf.d config file

Signed-off-by: Julien Roy <julien <AT> jroy.ca>

 app-crypt/tang/files/tangd       | 8 ++++++++
 app-crypt/tang/files/tangd.initd | 7 +------
 app-crypt/tang/tang-11.ebuild    | 2 ++
 3 files changed, 11 insertions(+), 6 deletions(-)

diff --git a/app-crypt/tang/files/tangd b/app-crypt/tang/files/tangd
new file mode 100644
index 000000000..3bca6e1b8
--- /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 4b7e42991..fc3c25c03 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/tangd ${TANGDIR}'"
 command_background=true

diff --git a/app-crypt/tang/tang-11.ebuild b/app-crypt/tang/tang-11.ebuild
index 380717499..a47a71abb 100644
--- a/app-crypt/tang/tang-11.ebuild
+++ b/app-crypt/tang/tang-11.ebuild
@@ -26,6 +26,8 @@ src_install(){
 	newinitd "${FILESDIR}"/tangd.initd tangd
 	systemd_dounit ${FILESDIR}/tangd.service
 
+	doconfd "${FILESDIR}"/tangd
+
 	dodir /var/db/tang
 	keepdir /var/db/tang
 	fowners tang:tang /var/db/tang


             reply	other threads:[~2022-07-09  2:01 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-07-09  2:01 Julien Roy [this message]
  -- strict thread matches above, loose matches on Subject: below --
2022-04-17 20:57 [gentoo-commits] repo/proj/guru:dev commit in: app-crypt/tang/, app-crypt/tang/files/ Julien Roy

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1657332058.14b434163321e60a6f3d3f4b167909d55fc8e0ee.julien@gentoo \
    --to=julien@jroy.ca \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox