From 4f2d7949f03e1c198bc888f2d05f421d35c57e21 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Mon, 9 Oct 2017 18:53:29 +0100 Subject: reinit the tree, so we can have metadata --- app-crypt/ccid/Manifest | 8 ++++ app-crypt/ccid/ccid-1.4.26.ebuild | 63 ++++++++++++++++++++++++++++++ app-crypt/ccid/ccid-1.4.27.ebuild | 63 ++++++++++++++++++++++++++++++ app-crypt/ccid/files/92_pcscd_ccid-2.rules | 50 ++++++++++++++++++++++++ app-crypt/ccid/metadata.xml | 12 ++++++ 5 files changed, 196 insertions(+) create mode 100644 app-crypt/ccid/Manifest create mode 100644 app-crypt/ccid/ccid-1.4.26.ebuild create mode 100644 app-crypt/ccid/ccid-1.4.27.ebuild create mode 100644 app-crypt/ccid/files/92_pcscd_ccid-2.rules create mode 100644 app-crypt/ccid/metadata.xml (limited to 'app-crypt/ccid') diff --git a/app-crypt/ccid/Manifest b/app-crypt/ccid/Manifest new file mode 100644 index 000000000000..11970f194936 --- /dev/null +++ b/app-crypt/ccid/Manifest @@ -0,0 +1,8 @@ +AUX 92_pcscd_ccid-2.rules 2275 SHA256 b387f25e1e2f86476c0877fc34c08d29c86a50f599840faa0f65ebb3143c2c6a SHA512 f327eee35ca6009069389f935ca89feea4e693e8f0c73f8f218d2639faee4ce35df85832a71e3fe98ce24aae31861aa8bd290833e59ada75c1e1a2df9ff0a477 WHIRLPOOL ef72c7257343e1c9db6dabeb8b3e3027b216fbc84b98d4f7b7aa65fd5fa1c80c8f25f798d836d91e85a018eb825f7918c337281c9311ddd938bae96d4993d921 +DIST ccid-1.4.26.tar.bz2 628038 SHA256 3267bf708ab780c02f01f6241b7c7277cb892d30fd1179a9926a8cc0ca40be2f SHA512 4a2e5e9412f2aa4870e14114e54da96fd8b3418ea6d3a236b83e19d6349adb20a94ef7f48628c108f8459f008c10b0606bbf4d797ae4be9183e1acde032c618c WHIRLPOOL 7118e57ca9a394de3b37166bb2c4f4d398fdf744caa0803ef9f1470db7020d999f795ca816a5a70db2b59b64db7225df2dd9366fd329ca34d52b5e4611fd5d21 +DIST ccid-1.4.27.tar.bz2 632817 SHA256 a660e269606986cb94840ad5ba802ffb0cd23dd12b98f69a35035e0deb9dd137 SHA512 14fb5d9878ed36de912d860d8537758170781f225957a99d5fed447dcfba0cba3133f78d2cc4bc7db60d3527399f70e4a7d1d1f8348fb50d1bcfc75820a23522 WHIRLPOOL 062ebe1be40ad09865db642c763cf32cc471b860df66072fe5e98c4b3b5a5efced7b2aeba1001a635231adaf9569e3e4fc2746ad9ebaa921b62302a0ebcf2273 +EBUILD ccid-1.4.26.ebuild 1566 SHA256 c8a7231efa56ffbacb999c29dee4785090bac851e31ad8bfeaa0aea842711153 SHA512 e3f1b727f9889c9f41e15fb9f7da382dd8b83039634f24a22fb09171bf4690f51e9ca004dd885d2e2031a42ba47c7b090a178fbebd7c2c08d04c17bdcf4c24d2 WHIRLPOOL 31a3e7f73505df14e646f71910d84e6e376d728acb22a637b4aec086f87005235977741cc51fe4975a78f694f75e57e6bddaf8122717713732802f67b8df8992 +EBUILD ccid-1.4.27.ebuild 1572 SHA256 eeacac399795a4fa76dc2ddd89cef648a3ac0f606b4411361c2617b97817a559 SHA512 58139c37170080b0fcad6920559133b9c9fb1a98846b362a0ad5bfdb60c11463216848bf658da48677f908d8184bf081ad8c676f5c70da76c9a1e825a67007f7 WHIRLPOOL 35119dc46f1c129a06a39be086f0df2df7db241e892659c5c38115a12ca7c6c648121a6c51ade1bccb5560ff41c94240704f9fff28e070f0a72a34dfef3c229b +MISC ChangeLog 4315 SHA256 a92ea2d504ae2add8c4ed87e6001a7369ce0a861167432db7622af60c3148f49 SHA512 f0a12fb122def254e804b41e9903701126718a925f13a25ffc6389afb4eaf8dc86a705ab80426fb479228053e616ed82835a2d417c1be5b2b83b1e61ea7d7591 WHIRLPOOL 8d65aeabecd12378f3e5e685b0baf2566dfa282392e0d5b7f5fc54f0522f7aafcbedddb56fca17edad57c66b637c3f4f6b463654c8f917d264363493ec09fab8 +MISC ChangeLog-2015 16072 SHA256 88b02e9d853c989f0f4427c2e8946016c52f9f730da3423d62906a8c49a4b54b SHA512 4c230e925bc65a261d26f7edbfefd68c5369b567440c187917710605a164fbf11ee1b8b36205ea609b24de6ce58254a46072623f2950cda3d08b3937c09f0aad WHIRLPOOL 4a39ed6deaabf0063ceeddc835bfcdb5b57d973a0fd20ae278155627a9fb7c62fb78d3f558cedf481259e9c8db327634d3c1c708bf2853d8cc18c1fb0d5ac978 +MISC metadata.xml 397 SHA256 4bb378c2dd7fb9873b3950e3f05e659c713ee2cf20c37bce87806ecbe12ae0a2 SHA512 8e8643f46728232ffffe25fe9906948c6a8bb94733dbdeaf2700afd0cf4a7567a27698c1832edf858c2a433187cac9d847dc7ad709d6398133b40b639e37cb4b WHIRLPOOL 83ef5bad15119742db6b8d8715c8dbf03936c21c967c8abc18827139a39c16d433683bff9dd90480c652607ae18e7221344a4ba46e292e8c88fde1428e4d6d36 diff --git a/app-crypt/ccid/ccid-1.4.26.ebuild b/app-crypt/ccid/ccid-1.4.26.ebuild new file mode 100644 index 000000000000..f5d0eb72da13 --- /dev/null +++ b/app-crypt/ccid/ccid-1.4.26.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +STUPID_NUM="4205" + +inherit toolchain-funcs udev + +DESCRIPTION="CCID free software driver" +HOMEPAGE="http://pcsclite.alioth.debian.org/ccid.html" +SRC_URI="http://alioth.debian.org/frs/download.php/file/${STUPID_NUM}/${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} + 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 +} diff --git a/app-crypt/ccid/ccid-1.4.27.ebuild b/app-crypt/ccid/ccid-1.4.27.ebuild new file mode 100644 index 000000000000..5ff08306450c --- /dev/null +++ b/app-crypt/ccid/ccid-1.4.27.ebuild @@ -0,0 +1,63 @@ +# Copyright 1999-2017 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +EAPI=6 + +STUPID_NUM="4218" + +inherit toolchain-funcs udev + +DESCRIPTION="CCID free software driver" +HOMEPAGE="http://pcsclite.alioth.debian.org/ccid.html" +SRC_URI="http://alioth.debian.org/frs/download.php/file/${STUPID_NUM}/${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} + 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 +} diff --git a/app-crypt/ccid/files/92_pcscd_ccid-2.rules b/app-crypt/ccid/files/92_pcscd_ccid-2.rules new file mode 100644 index 000000000000..ca4d1ce1b729 --- /dev/null +++ b/app-crypt/ccid/files/92_pcscd_ccid-2.rules @@ -0,0 +1,50 @@ +# udev rules to set the access rights of CCID smart card readers +# so they can be used by pcscd + +# $Id: 92_pcscd_ccid.rules 6587 2013-04-05 16:31:55Z rousseau $ + +# Gemplus PCMCIA Card +#SUBSYSTEMS=="pcmcia", DRIVERS=="serial_cs", ACTION=="add", ATTRS{prod_id1}=="Gemplus", ATTRS{prod_id2}=="SerialPort", ATTRS{prod_id3}=="GemPC Card", RUN+="/usr/sbin/pcscd --hotplug" + +# If not adding the device, go away +ACTION!="add", GOTO="pcscd_ccid_rules_end" +SUBSYSTEM!="usb", GOTO="pcscd_ccid_rules_end" +ENV{DEVTYPE}!="usb_device", GOTO="pcscd_ccid_rules_end" + +# Kobil mIDentity +ATTRS{idVendor}=="0d46", ATTRS{idProduct}=="4081", RUN+="/usr/sbin/Kobil_mIDentity_switch" + +# generic CCID device (bInterfaceClass = 0x0b) +# change group from default "root" to "pcscd" +ENV{ID_USB_INTERFACES}=="*:0b0000:*", ENV{PCSCD}="1" + +# set USB power management to auto. "power/level" has been deprecated in +# Linux 2.6.35 and replaced by "power/control" +ENV{ID_USB_INTERFACES}==":0b0000:", RUN+="/bin/sh -c 'if test -e /sys/$env{DEVPATH}/power/control; then echo auto > /sys/$env{DEVPATH}/power/control; elif test -e /sys/$env{DEVPATH}/power/level; then echo auto > /sys/$env{DEVPATH}/power/level; fi'" + +# non CCID generic (InterfaceClass: 0xFF) +# CherrySmartTerminalST2XXX.txt +ATTRS{idVendor}=="046a", ATTRS{idProduct}=="003e", ENV{PCSCD}="1" +# DellSK-3106.txt +ATTRS{idVendor}=="413c", ATTRS{idProduct}=="2100", ENV{PCSCD}="1" +# MySmartPad.txt +ATTRS{idVendor}=="09be", ATTRS{idProduct}=="0002", ENV{PCSCD}="1" +# SCR3310-NTTCom USB SmartCard Reader +ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="511a", ENV{PCSCD}="1" +# SCR331-DI USB Smart Card Reader +ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="5120", ENV{PCSCD}="1" +# SCR331-DI.txt +ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="5111", ENV{PCSCD}="1" +# SDI010.txt +ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="5121", ENV{PCSCD}="1" +# SPR532.txt +ATTRS{idVendor}=="04e6", ATTRS{idProduct}=="e003", ENV{PCSCD}="1" +# Verisign_secure_storage_token.txt +ATTRS{idVendor}=="08e6", ATTRS{idProduct}=="1359", ENV{PCSCD}="1" +# Verisign_secure_token.txt +ATTRS{idVendor}=="08e6", ATTRS{idProduct}=="ace0", ENV{PCSCD}="1" +# SchlumbergerSema Cyberflex Access e-gate +ATTRS{idVendor}=="0973", ATTRS{idProduct}=="0003", ENV{PCSCD}="1" + +# All done +LABEL="pcscd_ccid_rules_end" diff --git a/app-crypt/ccid/metadata.xml b/app-crypt/ccid/metadata.xml new file mode 100644 index 000000000000..6a1239505f77 --- /dev/null +++ b/app-crypt/ccid/metadata.xml @@ -0,0 +1,12 @@ + + + + + crypto@gentoo.org + Crypto + + + Build and install Kobil_mIDentity_switch tool + Enable twinserial reader + + -- cgit v1.2.3