sdk: add app-crypt/ccid

required for pcsc-lite daemon to work

Signed-off-by: Mathieu Tortuyaux <mtortuyaux@microsoft.com>
This commit is contained in:
Mathieu Tortuyaux 2023-12-14 14:45:21 +01:00
parent 86f4e68f53
commit 31b722d0ba
No known key found for this signature in database
GPG Key ID: AC5CCFB52545D9B8
5 changed files with 60 additions and 0 deletions

View File

@ -106,6 +106,7 @@ app-containers/runc
app-crypt/adcli
app-crypt/argon2
app-crypt/efitools
app-crypt/ccid
app-crypt/libb2
app-crypt/libmd
app-crypt/mhash

View File

@ -93,10 +93,12 @@ RDEPEND="${RDEPEND}
# Host dependencies that are needed to create and sign images
# TODO: sys-apps/mosys
# app-crypt/ccid is required for pcsc-lite daemon to work.
RDEPEND="${RDEPEND}
sys-fs/squashfs-tools
dev-libs/libp11
dev-libs/opensc
app-crypt/ccid
"
# Host dependencies that are needed for delta_generator.

View File

@ -0,0 +1 @@
DIST ccid-1.5.1.tar.bz2 702586 BLAKE2B 7b9e3c6daf03c186f34ac9b13bd960293a6481f9237ee52937ece1040bd3a79b7dab318e1244205a7feae992261ab5e82292d80ae023a4f621e0e7af7cdb9df5 SHA512 492bde96f5752e2a5316693c44e35e2d041785a00d15e094905c0aafad392f5329009d12801899367276328a582936ee53a1c5239c1813c4536001cb8a608f2e

View File

@ -0,0 +1,45 @@
# Copyright 1999-2023 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit udev
DESCRIPTION="CCID free software driver"
HOMEPAGE="https://ccid.apdu.fr https://github.com/LudovicRousseau/CCID"
SRC_URI="https://ccid.apdu.fr/files/${P}.tar.bz2"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~alpha amd64 arm ~arm64 ~hppa ~ia64 ppc ppc64 ~riscv ~sparc x86"
IUSE="twinserial +usb"
RDEPEND="
>=sys-apps/pcsc-lite-1.8.3
twinserial? ( dev-lang/perl )
usb? ( virtual/libusb:1 )
"
DEPEND="${RDEPEND}"
BDEPEND="virtual/pkgconfig"
src_configure() {
econf \
LEX=: \
$(use_enable twinserial) \
$(use_enable usb libusb)
}
src_install() {
default
udev_newrules src/92_pcscd_ccid.rules 92-pcsc-ccid.rules
}
pkg_postinst() {
udev_reload
einfo "Check https://github.com/LudovicRousseau/CCID/blob/master/INSTALL"
einfo "for more info about how to configure and use ccid"
}
pkg_postrm() {
udev_reload
}

View File

@ -0,0 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<!-- maintainer-needed -->
<use>
<flag name="twinserial">Enable twinserial reader</flag>
</use>
<upstream>
<remote-id type="github">LudovicRousseau/CCID</remote-id>
</upstream>
</pkgmetadata>