aboutsummaryrefslogtreecommitdiff
path: root/dev-libs/tang/tang-11.ebuild
blob: d4fcbd3f00445494e5ae934e73e27fb9b18b854c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# 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=""

DEPEND="acct-user/tang
	net-misc/socat
	>=net-libs/http-parser-2.8.0
	>=dev-libs/jose-8"
RDEPEND="${DEPEND}"
BDEPEND=""

src_install(){
	newinitd "${FILESDIR}"/tang.initd tangd

	dodir /var/db/tang
	chown tang:tang /var/db/tang
	keepdir /var/db/tang
}

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."
	einfo "If you want to change this, modify /etc/init.d/tangd directly."
}