mirror of
https://github.com/gentoo-mirror/gentoo.git
synced 2026-09-16 14:29:05 -07:00
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at> Closes: https://bugs.gentoo.org/722026 Closes: https://github.com/gentoo/gentoo/pull/34586 Signed-off-by: Conrad Kostecki <conikost@gentoo.org>
35 lines
767 B
Bash
35 lines
767 B
Bash
# 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
|
|
}
|