app-crypt/tang: add 15

Signed-off-by: Julien Roy <julien@jroy.ca>
This commit is contained in:
Julien Roy
2024-02-17 16:03:24 -05:00
parent 724cb4b74c
commit 0b07e39e6a
2 changed files with 39 additions and 0 deletions

View File

@@ -0,0 +1,38 @@
# Copyright 2022-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit meson systemd
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"
DEPEND="
net-libs/http-parser
dev-libs/jose
"
RDEPEND="
${DEPEND}
acct-user/tang
net-misc/socat
"
BDEPEND="app-text/asciidoc"
src_install(){
meson_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
fperms 770 /var/db/tang
}