openct.paketlendi

This commit is contained in:
milisarge 2017-06-28 12:19:04 +03:00
parent 5abff2b847
commit 1a2cf41052
3 changed files with 66 additions and 0 deletions

View File

@ -0,0 +1,29 @@
# Description: Implements drivers for several smart card readers
# URL: https://github.com/OpenSC/openct/
# Packager: milisarge
# Depends on: doxygen pcsc-lite libusb-compat
name=openct
version=0.6.20
release=1
source=(https://github.com/OpenSC/openct/archive/openct-$version.tar.gz
udev-sleep.patch)
build() {
cd $name-$name-$version
patch -p1 -i "${SRC}/udev-sleep.patch"
./bootstrap
./configure --prefix=/usr \
--sbindir=/usr/bin \
--sysconfdir=/etc \
--localstatedir=/var \
--with-udev=/usr/lib/udev \
--enable-usb \
--enable-pcsc \
--disable-static
make
install -d "$PKG"/etc
make DESTDIR="$PKG" install
install -D etc/openct.udev "$PKG"/usr/lib/udev/rules.d/95-openct.rules
}

View File

@ -0,0 +1,11 @@
--- openct-0.6.20/etc/openct.udev.in.orig 2012-06-01 10:50:32.419033188 +0300
+++ openct-0.6.20/etc/openct.udev.in 2012-06-01 10:50:51.225616679 +0300
@@ -22,7 +22,7 @@
# 2010-01-06 removed, as latest udev doesn't know WAIT_FOR_ATTR any more.
# sleep for 100ms - the wait_for_sysfs might not be enough
-PROGRAM="/bin/sleep 0.1"
+PROGRAM="/usr/bin/sleep 0.1"
# ccid
ATTR{bInterfaceClass}=="0b", ATTR{bInterfaceSubClass}=="00", ATTR{bInterfaceProtocol}=="00", ATTRS{idVendor}=="?*" RUN+="@udevdir@/openct_usb /dev/$parent"

View File

@ -0,0 +1,26 @@
# Description: OpenSC compiled with OpenCT instead of PCSC, working with e.g. SafeNet/Aladdin eToken Pro 64k
# URL: https://github.com/OpenSC/OpenSC/wiki
# Packager: milisarge
# Depends on: openct
name=opensc-openct
_name=OpenSC
version=0.16.0
release=1
source=(https://github.com/OpenSC/OpenSC/archive/$version.tar.gz)
build() {
_prefix=/opt/$name
cd $_name-$version
./bootstrap
./configure \
--prefix=$_prefix \
--disable-pcsc \
--enable-openct
make
mkdir -p ./$_prefix
make DESTDIR="$PKG" install
}