summaryrefslogtreecommitdiff
path: root/sys-auth/yubikey-agent/yubikey-agent-0.1.6.ebuild
blob: 980d796b5b4dcccf7aea1b4a8b8a2c828cdcf7dc (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
# Copyright 2020-2024 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2

EAPI=8
inherit go-module systemd

DESCRIPTION="A a seamless ssh-agent for YubiKeys"
HOMEPAGE="https://github.com/FiloSottile/yubikey-agent"
BDEPEND=">=dev-lang/go-1.19"
DEPEND="sys-apps/pcsc-lite"
RDEPEND="sys-apps/pcsc-lite"
SRC_URI="https://github.com/FiloSottile/yubikey-agent/archive/refs/tags/v${PV}.tar.gz -> ${P}.tar.gz"
SRC_URI+=" https://share.terinstock.com/${P}-vendor.tar.xz"

LICENSE="BSD"
LICENSE+=" Apache-2.0 MIT"
SLOT="0"
KEYWORDS="amd64"

src_compile() {
	ego build .
}

src_test() {
	ego test -v ./...
}

src_install() {
	dosbin yubikey-agent
	systemd_douserunit contrib/systemd/user/yubikey-agent.service
}