diff --git a/.github/workflows/portage-stable-packages-list b/.github/workflows/portage-stable-packages-list index cc0de16c01..db88460191 100644 --- a/.github/workflows/portage-stable-packages-list +++ b/.github/workflows/portage-stable-packages-list @@ -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 diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/hard-host-depends/hard-host-depends-0.0.1.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/hard-host-depends/hard-host-depends-0.0.1.ebuild index ee0837d2dd..e41c79f34e 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/hard-host-depends/hard-host-depends-0.0.1.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/hard-host-depends/hard-host-depends-0.0.1.ebuild @@ -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. diff --git a/sdk_container/src/third_party/portage-stable/app-crypt/ccid/Manifest b/sdk_container/src/third_party/portage-stable/app-crypt/ccid/Manifest new file mode 100644 index 0000000000..2d167910e1 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-crypt/ccid/Manifest @@ -0,0 +1 @@ +DIST ccid-1.5.1.tar.bz2 702586 BLAKE2B 7b9e3c6daf03c186f34ac9b13bd960293a6481f9237ee52937ece1040bd3a79b7dab318e1244205a7feae992261ab5e82292d80ae023a4f621e0e7af7cdb9df5 SHA512 492bde96f5752e2a5316693c44e35e2d041785a00d15e094905c0aafad392f5329009d12801899367276328a582936ee53a1c5239c1813c4536001cb8a608f2e diff --git a/sdk_container/src/third_party/portage-stable/app-crypt/ccid/ccid-1.5.1.ebuild b/sdk_container/src/third_party/portage-stable/app-crypt/ccid/ccid-1.5.1.ebuild new file mode 100644 index 0000000000..d2baa03890 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-crypt/ccid/ccid-1.5.1.ebuild @@ -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 +} diff --git a/sdk_container/src/third_party/portage-stable/app-crypt/ccid/metadata.xml b/sdk_container/src/third_party/portage-stable/app-crypt/ccid/metadata.xml new file mode 100644 index 0000000000..cb05a176c9 --- /dev/null +++ b/sdk_container/src/third_party/portage-stable/app-crypt/ccid/metadata.xml @@ -0,0 +1,11 @@ + + + + + + Enable twinserial reader + + + LudovicRousseau/CCID + +