diff options
Diffstat (limited to 'app-crypt/ccid')
-rw-r--r-- | app-crypt/ccid/Manifest | 2 | ||||
-rw-r--r-- | app-crypt/ccid/ccid-1.4.30.ebuild | 61 |
2 files changed, 63 insertions, 0 deletions
diff --git a/app-crypt/ccid/Manifest b/app-crypt/ccid/Manifest index d49dc49010cf..cad4d6854a6e 100644 --- a/app-crypt/ccid/Manifest +++ b/app-crypt/ccid/Manifest @@ -1,4 +1,6 @@ AUX 92_pcscd_ccid-2.rules 2275 BLAKE2B a72b8d2bb8cf56f621a0762dac95500f93afa224228f403395c9590758c8fa986b3e8d0d1b12353ec7fed5a40f6af900fcd57eaaa7b339018fe42c2b509c0c5d SHA512 f327eee35ca6009069389f935ca89feea4e693e8f0c73f8f218d2639faee4ce35df85832a71e3fe98ce24aae31861aa8bd290833e59ada75c1e1a2df9ff0a477 DIST ccid-1.4.29.tar.bz2 635761 BLAKE2B ff14bc6e181a6d44b8ef463a2255d0362842f6e1e7c79e0a01caaba0a88892f7b0f2bd9d2dadae7be8b0655d2502e5471cff29e582928d62235fa070f2eb1ba8 SHA512 9ff37acad086e959f660069b245fe06ecada140623025a19dfbff55edec71e1e72bce09ac4fc506ad985dd0831dafc6b12f5a5b109b38bf9ba7583856eb19418 +DIST ccid-1.4.30.tar.bz2 642342 BLAKE2B fd43aa2a4c8840abb0545760f6ceb31bb9d7dc22d7283888c9a142e0c3b34310ec4530d18986451b21c6b1a3975b1212ab653a4c8d58466b28713f0f72ce1cdb SHA512 1761a4053a99eb28184d0ffece951aec5d4b646080597b4ae36b18a31fb7a76c55fabfa57ee8e5d7f2db1a6e13d209f7fa995fe6ed067f44558bea34a26d46da EBUILD ccid-1.4.29.ebuild 1501 BLAKE2B 511ebcb55b36429cf1c30dda2aa00a936d3b5de284db08dac9df9f0436c8704e4a2e0a5410e356c4f0187047cbfdbe954b5fdafc15220b72b2e36e2c82bff28e SHA512 c77f20dc8ec1c2ac518237605de88318cb36f9dd09bb2fcfdafe827c47da7e8e7f6b33cf1fb19cfae83c57485ec7fda9c6b981ee4371a723335b24a829cd57a9 +EBUILD ccid-1.4.30.ebuild 1503 BLAKE2B 870a9f53f8c3d4ca1610b62167e1c6a2374bf8585fae78312f14fb278e0cbdb17ab10ef39ada95f3c246d1c81879faf289e7f4fc097901461e068bd71eb7b4ad SHA512 63cec050390e57f62d29afc20c0590bb55ffcaacd049464e2476283f6785fd6110f089c1e3d7aa1cb7dfe47a7dcab64f07cec4b18d49c62b1589ea192deb7136 MISC metadata.xml 397 BLAKE2B 0b62fc531114bb9221d17ee3524db0858f4ff373b71a1b7beda520035eaf5679a63a420381dc52e40942a519bf15f95fae97b531267df133cf68687c49dad565 SHA512 8e8643f46728232ffffe25fe9906948c6a8bb94733dbdeaf2700afd0cf4a7567a27698c1832edf858c2a433187cac9d847dc7ad709d6398133b40b639e37cb4b diff --git a/app-crypt/ccid/ccid-1.4.30.ebuild b/app-crypt/ccid/ccid-1.4.30.ebuild new file mode 100644 index 000000000000..7b28b5b26312 --- /dev/null +++ b/app-crypt/ccid/ccid-1.4.30.ebuild @@ -0,0 +1,61 @@ +# Copyright 1999-2018 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit toolchain-funcs udev + +DESCRIPTION="CCID free software driver" +HOMEPAGE="https://ccid.apdu.fr/" +SRC_URI="https://ccid.apdu.fr/files/${P}.tar.bz2" + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~ppc ~ppc64 ~sparc ~x86" +IUSE="twinserial kobil-midentity +usb" + +RDEPEND=">=sys-apps/pcsc-lite-1.8.3 + usb? ( virtual/libusb:1 )" +DEPEND="${RDEPEND}" +BDEPEND="kernel_linux? ( virtual/pkgconfig )" + +DOCS=( README AUTHORS ) + +src_configure() { + econf \ + LEX=: \ + $(use_enable twinserial) \ + $(use_enable usb libusb) +} + +src_compile() { + default + use kobil-midentity && emake -C contrib/Kobil_mIDentity_switch +} + +src_install() { + default + + if use kobil-midentity; then + dosbin contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch + doman contrib/Kobil_mIDentity_switch/Kobil_mIDentity_switch.8 + fi + + if use kernel_linux; then + # note: for eudev support, rules probably will always need to be + # installed to /usr + + # ccid >=1.4.11 version changed the rules drastically in a minor + # release to no longer use the pcscd group. Using the old ones in + # the mean time. + udev_newrules "${FILESDIR}"/92_pcscd_ccid-2.rules 92-pcsc-ccid.rules + + # disable Kobil_mIDentity_switch udev rule with USE=-kobil-midentity + if ! use kobil-midentity; then + sed \ + -e '/Kobil_mIDentity_switch/s/^/#/' \ + -i "${D}/$(get_udevdir)"/rules.d/92-pcsc-ccid.rules || die + fi + + fi +} |