blob: 33f8ef8cb4ed15be4e63360e1f857a86cce3c61b (
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
|
# Copyright 2019-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit toolchain-funcs
MY_P="scdtools-${PV}"
DESCRIPTION="Feed kernel entropy pool from smartcard's TRNG"
HOMEPAGE="https://incenp.org/dvlpt/scdtools.html"
SRC_URI="https://incenp.org/files/softs/scdtools/$(ver_cut 1-2)/${MY_P}.tar.gz"
S="${WORKDIR}/${MY_P}"
LICENSE="GPL-3+"
SLOT="0"
KEYWORDS="~amd64 ~x86"
DEPEND="dev-libs/libgcrypt:=
dev-libs/libassuan:=
dev-libs/libgpg-error:="
RDEPEND="${DEPEND}
app-crypt/gnupg"
src_compile() {
emake AR="$(tc-getAR)" -C lib
emake -C src scdrand
}
src_test() { :; }
src_install() {
emake DESTDIR="${D}" -C man man_MANS="scdrand.1" install
emake DESTDIR="${D}" -C src bin_PROGRAMS="scdrand" install
}
|