[gentoo-commits] repo/gentoo:master commit in: app-crypt/ccid/files/, app-crypt/ccid/

2024-04-20 Thread Joonas Niilola
commit: e4661195a13fdf95ad6b9e5e8885cda863118a3e
Author: Mason Rocha  turret  cyou>
AuthorDate: Sat Mar  9 23:38:40 2024 +
Commit: Joonas Niilola  gentoo  org>
CommitDate: Sat Apr 20 07:40:16 2024 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e4661195

app-crypt/ccid: add 1.5.5

Signed-off-by: Mason Rocha  turret.cyou>
Closes: https://github.com/gentoo/gentoo/pull/35691
Signed-off-by: Joonas Niilola  gentoo.org>

 app-crypt/ccid/Manifest|  1 +
 app-crypt/ccid/ccid-1.5.5.ebuild   | 55 ++
 ...id-1.5.5-remove-flex-configure-dependency.patch | 13 +
 3 files changed, 69 insertions(+)

diff --git a/app-crypt/ccid/Manifest b/app-crypt/ccid/Manifest
index e801a4a101a1..e6910d3ce7d2 100644
--- a/app-crypt/ccid/Manifest
+++ b/app-crypt/ccid/Manifest
@@ -1,2 +1,3 @@
 DIST ccid-1.5.1.tar.bz2 702586 BLAKE2B 
7b9e3c6daf03c186f34ac9b13bd960293a6481f9237ee52937ece1040bd3a79b7dab318e1244205a7feae992261ab5e82292d80ae023a4f621e0e7af7cdb9df5
 SHA512 
492bde96f5752e2a5316693c44e35e2d041785a00d15e094905c0aafad392f5329009d12801899367276328a582936ee53a1c5239c1813c4536001cb8a608f2e
 DIST ccid-1.5.4.tar.bz2 706834 BLAKE2B 
8b7f08145808ac94d085eef62c204f8146892cb11f2ce811e46e674272cab016d602afb945c6e808ce3957a80e847c0de2815fedaf15fc8c935cafaccf102762
 SHA512 
4b30f4768aebf49486a1b1e959615fa077bd393bfdd9e52c15bdc8d6ed63ce27fa7cf82a067d1f80d8b3534c66194036925d3fea5af64b6a775779d38267c757
+DIST ccid-1.5.5.tar.bz2 708374 BLAKE2B 
a82986ead2dbb3241ef419ad16eb0fac835c5ab4fa988e5ee53cd1608a30a9381210a6fd013b6a059ca2835d55b4a41afa4064575e91b8eb356bff6d01d19add
 SHA512 
9d2aebe645a5880bfad7d420ddab96811d1fd989c79afa28f5471ae53f36b6d45ee5e13b32ac4afcf59fc762ae835db7e6312ad6642b263158c2d9a30c7651bd

diff --git a/app-crypt/ccid/ccid-1.5.5.ebuild b/app-crypt/ccid/ccid-1.5.5.ebuild
new file mode 100644
index ..d701d5ebd5cf
--- /dev/null
+++ b/app-crypt/ccid/ccid-1.5.5.ebuild
@@ -0,0 +1,55 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools 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"
+
+PATCHES=(
+   "${FILESDIR}"/${P}-remove-flex-configure-dependency.patch
+)
+
+src_prepare() {
+   default
+
+   eautoconf
+}
+
+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/app-crypt/ccid/files/ccid-1.5.5-remove-flex-configure-dependency.patch 
b/app-crypt/ccid/files/ccid-1.5.5-remove-flex-configure-dependency.patch
new file mode 100644
index ..a124c50d1161
--- /dev/null
+++ b/app-crypt/ccid/files/ccid-1.5.5-remove-flex-configure-dependency.patch
@@ -0,0 +1,13 @@
+Bug: https://bugs.gentoo.org/221361
+Reverts upstream commit eec7cdf0 & 41270c2
+
+--- a/configure.ac
 b/configure.ac
+@@ -33,7 +33,5 @@
+ AC_PROG_MAKE_SET
+ AC_PROG_LN_S
+-AC_PROG_LEX([noyywrap])
+-AS_IF([test $LEX = ":"], [AC_MSG_ERROR([no lex or flex found])])
+ AM_PROG_AR
+ PKG_PROG_PKG_CONFIG
+



[gentoo-commits] repo/gentoo:master commit in: app-crypt/ccid/files/

2017-08-18 Thread Alon Bar-Lev
commit: f8395bafb73d601516ec9c1c7775cd7d1a2d30c5
Author: Michael Mair-Keimberger (asterix)  gmail 
 com>
AuthorDate: Thu Aug 10 08:21:05 2017 +
Commit: Alon Bar-Lev  gentoo  org>
CommitDate: Fri Aug 18 10:29:39 2017 +
URL:https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=f8395baf

app-crypt/ccid: remove unused file

 app-crypt/ccid/files/92_pcscd_ccid.rules | 50 
 1 file changed, 50 deletions(-)

diff --git a/app-crypt/ccid/files/92_pcscd_ccid.rules 
b/app-crypt/ccid/files/92_pcscd_ccid.rules
deleted file mode 100644
index 27bfb698ebe..000
--- a/app-crypt/ccid/files/92_pcscd_ccid.rules
+++ /dev/null
@@ -1,50 +0,0 @@
-# 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}=="*:0b:*", 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}==":0b:", RUN+="/bin/sh -c 'echo auto > 
/sys/$devpath/power/level ; echo auto > /sys/$devpath/power/control'"
-
-# 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"