add smartcard component
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
def setup():
|
||||
autotools.configure("--enable-twinserial \
|
||||
--enable-serialconfdir=/etc/reader.conf.d \
|
||||
--sysconfdir=/etc \
|
||||
--disable-static \
|
||||
--disable-dependency-tracking")
|
||||
|
||||
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.insinto("/etc/", "src/Info.plist", "libccid_Info.plist")
|
||||
|
||||
pisitools.dodoc("AUTHORS", "ChangeLog", "COPYING", "NEWS", "README")
|
||||
@@ -0,0 +1,45 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>ccid</Name>
|
||||
<Homepage>https://ccid.apdu.fr</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>LGPLv2.1</License>
|
||||
<IsA>app:console</IsA>
|
||||
<IsA>library</IsA>
|
||||
<Summary>Generic USB CCID(Chip/Smart Card Interface Devices) device drivers</Summary>
|
||||
<Description>ccid provides the source code for a generic USB CCID (Chip/Smart Card Interface Devices) driver and ICCD (Integrated Circuit(s) Card Devices).</Description>
|
||||
<Archive sha1sum="f21605dd2bf82710b69f454b0379ce68fe5aba5e" type="tarbz2">https://ccid.apdu.fr/files/ccid-1.4.29.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>pcsc-lite-devel</Dependency>
|
||||
<Dependency>libusb-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>ccid</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>libusb</Dependency>
|
||||
<Dependency>pcsc-lite</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="config">/etc/</Path>
|
||||
<Path fileType="library">/usr/lib/</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2019-05-19</Date>
|
||||
<Version>1.4.29</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>ccid</Name>
|
||||
<Summary xml:lang="tr">USB CCID kart okuyucu sürücüleri</Summary>
|
||||
<Description xml:lang="tr">ccid USB CCID protokolünü destekleyen akıllı kart okuyucular için açık kaynaklı aygıt sürücülerini içerir.</Description>
|
||||
</Source>
|
||||
</PISI>
|
||||
@@ -0,0 +1,3 @@
|
||||
<PISI>
|
||||
<Name>hardware.smartcard</Name>
|
||||
</PISI>
|
||||
@@ -0,0 +1,52 @@
|
||||
#!/usr/bin/python
|
||||
# -*- coding: utf-8 -*-
|
||||
#
|
||||
# Licensed under the GNU General Public License, version 3.
|
||||
# See the file http://www.gnu.org/licenses/gpl.txt
|
||||
|
||||
from pisi.actionsapi import shelltools
|
||||
from pisi.actionsapi import autotools
|
||||
from pisi.actionsapi import pisitools
|
||||
from pisi.actionsapi import get
|
||||
|
||||
#USBDROPDIR = "/usr/lib%s/pcsc/drivers" % ("32" if \
|
||||
# get.buildTYPE() == "emul32" else "")
|
||||
|
||||
USBDROPDIR = "/usr/lib/pcsc/drivers"
|
||||
|
||||
def setup():
|
||||
options = "--enable-usbdropdir=%s \
|
||||
--disable-libsystemd \
|
||||
--disable-dependency-tracking \
|
||||
--disable-static" % USBDROPDIR
|
||||
|
||||
"""
|
||||
if get.buildTYPE() == "emul32":
|
||||
options += " --prefix=/emul32 \
|
||||
--libdir=/usr/lib32"
|
||||
shelltools.export("CFLAGS", "%s -m32" % get.CFLAGS())
|
||||
"""
|
||||
|
||||
autotools.autoreconf("-fi")
|
||||
autotools.configure(options)
|
||||
|
||||
pisitools.dosed("libtool", " -shared ", " -Wl,-O1,--as-needed -shared ")
|
||||
|
||||
def build():
|
||||
autotools.make()
|
||||
|
||||
def install():
|
||||
autotools.rawInstall("DESTDIR=%s" % get.installDIR())
|
||||
|
||||
pisitools.dodir(USBDROPDIR)
|
||||
|
||||
"""
|
||||
if get.buildTYPE() == "emul32":
|
||||
pisitools.removeDir("/emul32")
|
||||
return
|
||||
"""
|
||||
|
||||
pisitools.dodir("/etc/reader.conf.d")
|
||||
|
||||
pisitools.dodoc("AUTHORS", "ChangeLog", "HELP", "NEWS",
|
||||
"README", "SECURITY", "doc/README.DAEMON")
|
||||
@@ -0,0 +1,29 @@
|
||||
from comar.service import *
|
||||
|
||||
serviceType = "local"
|
||||
serviceDefault = "on"
|
||||
serviceDesc = _({"en": "PC/SC SmartCard Reader Service",
|
||||
"tr": "PC/SC Akıllı Kart Okuyucu Servisi"})
|
||||
|
||||
PIDFILE = "/run/pcscd/pcscd.pid"
|
||||
|
||||
@synchronized
|
||||
def start():
|
||||
# pcscd wont start if these exist
|
||||
import os
|
||||
try:
|
||||
os.unlink("/run/pcscd/pcscd.comm")
|
||||
os.unlink("/run/pcscd/pcscd.pub")
|
||||
except OSError:
|
||||
pass
|
||||
|
||||
startService(command="/usr/sbin/pcscd",
|
||||
donotify=True)
|
||||
|
||||
@synchronized
|
||||
def stop():
|
||||
stopService(pidfile=PIDFILE,
|
||||
donotify=True)
|
||||
|
||||
def status():
|
||||
return isServiceRunning(pidfile=PIDFILE)
|
||||
@@ -0,0 +1,62 @@
|
||||
<?xml version="1.0" ?>
|
||||
<!DOCTYPE PISI SYSTEM "http://www.pisilinux.org/projeler/pisi/pisi-spec.dtd">
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>pcsc-lite</Name>
|
||||
<Homepage>https://pcsclite.apdu.fr</Homepage>
|
||||
<Packager>
|
||||
<Name>PisiLinux Community</Name>
|
||||
<Email>admins@pisilinux.org</Email>
|
||||
</Packager>
|
||||
<License>as-is</License>
|
||||
<IsA>app:console</IsA>
|
||||
<Summary>PC/SC drivers for smart card readers</Summary>
|
||||
<Description>pcsc-lite is middleware to access a smart card using SCard API (PC/SC).</Description>
|
||||
<Archive sha1sum="a5d48615cddb2b7050b4dc195e938a5d39ef62c4" type="tarbz2">https://pcsclite.apdu.fr/files/pcsc-lite-1.8.24.tar.bz2</Archive>
|
||||
<BuildDependencies>
|
||||
<Dependency>eudev-devel</Dependency>
|
||||
</BuildDependencies>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>pcsc-lite</Name>
|
||||
<RuntimeDependencies>
|
||||
<Dependency>eudev</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="config">/etc/reader.conf.d</Path>
|
||||
<Path fileType="executable">/usr/sbin</Path>
|
||||
<Path fileType="executable">/usr/bin</Path>
|
||||
<Path fileType="library">/usr/lib</Path>
|
||||
<Path fileType="doc">/usr/share/doc</Path>
|
||||
<Path fileType="man">/usr/share/man</Path>
|
||||
<Path fileType="library">/usr/lib/pcsc/drivers</Path>
|
||||
</Files>
|
||||
<Provides>
|
||||
<COMAR script="service.py">System.Service</COMAR>
|
||||
</Provides>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>pcsc-lite-devel</Name>
|
||||
<Summary>Development files for pcsc-lite</Summary>
|
||||
<RuntimeDependencies>
|
||||
<Dependency release="current">pcsc-lite</Dependency>
|
||||
<Dependency>eudev-devel</Dependency>
|
||||
</RuntimeDependencies>
|
||||
<Files>
|
||||
<Path fileType="header">/usr/include</Path>
|
||||
<Path fileType="library">/usr/lib/pkgconfig</Path>
|
||||
</Files>
|
||||
</Package>
|
||||
|
||||
<History>
|
||||
<Update release="1">
|
||||
<Date>2019-05-19</Date>
|
||||
<Version>1.8.24</Version>
|
||||
<Comment>First release</Comment>
|
||||
<Name>Ertuğrul Erata</Name>
|
||||
<Email>ertugrulerata@gmail.com</Email>
|
||||
</Update>
|
||||
</History>
|
||||
</PISI>
|
||||
@@ -0,0 +1,17 @@
|
||||
<?xml version="1.0" ?>
|
||||
<PISI>
|
||||
<Source>
|
||||
<Name>pcsc-lite</Name>
|
||||
<Summary xml:lang="tr">Akıllı kart okuyucuları için PC/SC sürücüleri</Summary>
|
||||
</Source>
|
||||
|
||||
<Package>
|
||||
<Name>pcsc-lite-devel</Name>
|
||||
<Summary xml:lang="tr">pcsc-lite için geliştirme dosyaları</Summary>
|
||||
</Package>
|
||||
|
||||
<Package>
|
||||
<Name>pcsc-lite-32bit</Name>
|
||||
<Summary xml:lang="tr">pcsc-lite için 32-bit paylaşımlı kitaplıklar</Summary>
|
||||
</Package>
|
||||
</PISI>
|
||||
Reference in New Issue
Block a user