From 70409dd85bfab781f50206c9148d990a6981cc07 Mon Sep 17 00:00:00 2001 From: Julien Roy Date: Sun, 17 Apr 2022 16:15:30 -0400 Subject: Updated tang --- app-crypt/tang/tang-11.ebuild | 52 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 52 insertions(+) create mode 100644 app-crypt/tang/tang-11.ebuild (limited to 'app-crypt/tang/tang-11.ebuild') diff --git a/app-crypt/tang/tang-11.ebuild b/app-crypt/tang/tang-11.ebuild new file mode 100644 index 0000000..a12787c --- /dev/null +++ b/app-crypt/tang/tang-11.ebuild @@ -0,0 +1,52 @@ +# Copyright 2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit meson + +DESCRIPTION="Tang binding daemon" +HOMEPAGE="https://github.com/latchset/tang" +SRC_URI="https://github.com/latchset/${PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz" + +LICENSE="GPL-3" +SLOT="0" +KEYWORDS="~amd64" +IUSE="systemd" + +DEPEND="acct-user/tang + app-text/asciidoc + net-misc/socat + >=net-libs/http-parser-2.8.0 + >=dev-libs/jose-8" +RDEPEND="${DEPEND}" +BDEPEND="" + +src_install(){ + meson_install + newinitd "${FILESDIR}"/tang.initd tangd + + dodir /var/db/tang + keepdir /var/db/tang + fowners tang:tang /var/db/tang + fperms 770 /var/db/tang + + if use systemd; then + insinto /usr/lib/systemd/system + doins ${FILESDIR}/tangd.service + fi +} + +pkg_postinst(){ + einfo "By default, tang runs on port 8888 and listens on address 0.0.0.0" + einfo "It also stores JWKs in /var/db/tang." + if use systemd; then + einfo "If you want to change this, modify /usr/lib/systemd/system/tangd.service directly." + else + einfo "If you want to change this, modify /etc/init.d/tangd directly." + fi + + if use systemd; then + systemctl daemon-reload + fi +} -- cgit v1.2.3