blob: 2eb8fd785e8aae478a9a0d8c881e38ad1c3e460a (
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
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# Copyright 2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit go-module systemd udev
DESCRIPTION="Server to expose YubiHSM 2 to network"
HOMEPAGE="https://developers.yubico.com/yubihsm-connector/"
SRC_URI="
https://developers.yubico.com/${PN}/Releases/${P}.tar.gz
https://dev.gentoo.org/~zx2c4/distfiles/${P}-vendor.tar.xz
"
LICENSE="Apache-2.0"
SLOT="0"
KEYWORDS="~amd64"
IUSE=""
RESTRICT="test"
DEPEND=""
RDEPEND="
virtual/libusb:1
virtual/udev
acct-user/yubihsm-connector
acct-group/yubihsm-connector
"
BDEPEND=""
src_compile() {
ego generate
ego build ${GOFLAGS}
}
src_install() {
dobin yubihsm-connector
systemd_dounit deb/yubihsm-connector.service
udev_dorules deb/70-yubihsm-connector.rules
insinto /etc
doins deb/yubihsm-connector.yaml
}
pkg_postinst() {
udev_reload
}
pkg_postrm() {
udev_reload
}
|