diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2010-05-16 13:15:00 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2010-05-16 13:15:00 +0200 |
commit | 8a325b2af866300353e500e9693fc08991df52b7 (patch) | |
tree | 9edad7622e05f93ad702931a327c779a0a1e996a /package | |
parent | 04d3f4ea9953ed01898d336c4b175273b457394c (diff) |
add preliminary support for my pcmcia smartcard reader
Diffstat (limited to 'package')
-rw-r--r-- | package/Config.in | 4 | ||||
-rw-r--r-- | package/base-files/src/lib/mdev/init | 6 | ||||
-rw-r--r-- | package/ccid/Makefile | 28 | ||||
-rw-r--r-- | package/opensc/Makefile | 5 | ||||
-rw-r--r-- | package/pcmciautils/Makefile | 32 | ||||
-rw-r--r-- | package/pcmciautils/files/config.opts | 34 | ||||
-rw-r--r-- | package/pcmciautils/patches/patch-Makefile | 11 | ||||
-rw-r--r-- | package/pcsc-lite/Makefile | 36 | ||||
-rw-r--r-- | package/pcsc-lite/files/pcscd.init | 27 | ||||
-rw-r--r-- | package/pcsc-lite/files/pcscd.postinst | 3 | ||||
-rw-r--r-- | package/pcsc-lite/files/reader.conf | 16 | ||||
-rw-r--r-- | package/sysfsutils/Makefile | 27 |
12 files changed, 227 insertions, 2 deletions
diff --git a/package/Config.in b/package/Config.in index 5f1a0bdd4..265e222fd 100644 --- a/package/Config.in +++ b/package/Config.in @@ -56,6 +56,7 @@ source "package/xz/Config.in" endmenu menu "Cryptography" +source "package/ccid/Config.in" source "package/cryptsetup/Config.in" source "package/gnupg/Config.in" source "package/gnutls/Config.in" @@ -65,6 +66,7 @@ source "package/openct/Config.in" source "package/opensc/Config.in" source "package/openssl/Config.in" source "package/openssl-pkcs11/Config.in" +source "package/pcsc-lite/Config.in" source "package/rng-tools/Config.in" endmenu @@ -579,9 +581,11 @@ source "package/hdparm/Config.in" source "package/usbutils/Config.in" source "package/patch/Config.in" source "package/pciutils/Config.in" +source "package/pcmciautils/Config.in" source "package/procps/Config.in" source "package/sispmctl/Config.in" source "package/stress/Config.in" +source "package/sysfsutils/Config.in" source "package/sysstat/Config.in" source "package/swconfig/Config.in" source "package/udev/Config.in" diff --git a/package/base-files/src/lib/mdev/init b/package/base-files/src/lib/mdev/init index de368c80c..eec8242a1 100644 --- a/package/base-files/src/lib/mdev/init +++ b/package/base-files/src/lib/mdev/init @@ -14,3 +14,9 @@ if [ "$SUBSYSTEM" == "firmware" ];then fi fi fi +if [ "$SUBSYSTEM" == "pcmcia_socket" ];then + logger "Setting up PCMCIA socket resource database" + if [ "$ACTION" == "add" ];then + /usr/sbin/pcmcia-socket-startup + fi +fi diff --git a/package/ccid/Makefile b/package/ccid/Makefile new file mode 100644 index 000000000..2e63a888c --- /dev/null +++ b/package/ccid/Makefile @@ -0,0 +1,28 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= ccid +PKG_VERSION:= 1.3.12 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 7fcdbacacd955659286f988fa9b6e0be +PKG_DESCR:= a generic USB CCID and ICCD driver +PKG_SECTION:= security +PKG_URL:= http://pcsclite.alioth.debian.org/ccid.html +PKG_SITES:= https://alioth.debian.org/frs/download.php/3281/ + +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,CCID,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +CONFIGURE_ARGS+= --enable-twinserial + +post-install: + $(INSTALL_DIR) $(IDIR_CCID)/usr/pcsc/drivers/serial + $(CP) $(WRKINST)/usr/pcsc/drivers/serial/libccidtwin.so* \ + $(IDIR_CCID)/usr/pcsc/drivers/serial + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/opensc/Makefile b/package/opensc/Makefile index 702a38751..2cf89050e 100644 --- a/package/opensc/Makefile +++ b/package/opensc/Makefile @@ -4,11 +4,12 @@ include ${TOPDIR}/rules.mk PKG_NAME:= opensc -PKG_VERSION:= 0.11.8 +PKG_VERSION:= 0.11.13 PKG_RELEASE:= 1 -PKG_MD5SUM:= a269b478b18dddb648b9bd930206b5a8 +PKG_MD5SUM:= 98fa151e947941f9c3f27420fdf47c11 PKG_DESCR:= a set of libraries and utilities to access smart cards PKG_SECTION:= crypto +PKG_BUILDDEP+= libtool PKG_URL:= http://www.opensc-project.org/opensc PKG_SITES:= http://www.opensc-project.org/files/opensc/ diff --git a/package/pcmciautils/Makefile b/package/pcmciautils/Makefile new file mode 100644 index 000000000..d99b1a7d1 --- /dev/null +++ b/package/pcmciautils/Makefile @@ -0,0 +1,32 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= pcmciautils +PKG_VERSION:= 017 +PKG_RELEASE:= 1 +PKG_MD5SUM:= ee5837214d297661c8b8189055a351fc +PKG_DESCR:= Utilities for PCMCIA subsystem +PKG_SECTION:= utils +PKG_BUILDDEP+= sysfsutils +PKG_URL:= http://www.kernel.org/pub/linux/utils/kernel/pcmcia/pcmcia.html +PKG_SITES:= http://www.kernel.org/pub/linux/utils/kernel/pcmcia/ + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,PCMCIAUTILS,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +CONFIG_STYLE= manual + +post-install: + $(INSTALL_DIR) $(IDIR_PCMCIAUTILS)/etc/pcmcia + $(INSTALL_DATA) ./files/config.opts \ + $(IDIR_PCMCIAUTILS)/etc/pcmcia + $(INSTALL_DIR) $(IDIR_PCMCIAUTILS)/usr/sbin + $(INSTALL_BIN) $(WRKINST)/sbin/pccardctl \ + $(IDIR_PCMCIAUTILS)/usr/sbin + $(INSTALL_BIN) $(WRKINST)/lib/udev/pcmcia-socket-startup \ + $(IDIR_PCMCIAUTILS)/usr/sbin + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/pcmciautils/files/config.opts b/package/pcmciautils/files/config.opts new file mode 100644 index 000000000..868ab48c4 --- /dev/null +++ b/package/pcmciautils/files/config.opts @@ -0,0 +1,34 @@ +# +# Local PCMCIA Configuration File +# +#---------------------------------------------------------------------- +# +# System resources available for PCMCIA cards +# +# NOTE: these settings have no effect on resources assigned to a +# CardBus bridge device itself; this file only affects resources +# assigned to cards. Also, interrupt settings here will only affect +# ISA bus interrupts assigned to 16-bit cards. PCI interrupts +# generally can't be reconfigured. +# +# With the kernel PCMCIA subsystem, these settings also have no effect +# at all on resources used for 32-bit CardBus cards. Those are set by +# the PCI hotplug subsystem. +# + +include port 0x100-0x3af +include port 0x3e0-0x4ff +include port 0x820-0x8ff +include port 0xc00-0xcf7 + +include memory 0xc0000-0xfffff +include memory 0xa0000000-0xa0ffffff +include memory 0x60000000-0x60ffffff + +# These may hurt on FSC. +# include port 0x3c0-0x3d2 +# Exclude 0x3d3 as Radeon IGP MCE's if you touch these ports +# include port 0x3d4-0x3df + +# High port numbers do not always work... +# include port 0x1000-0x17ff diff --git a/package/pcmciautils/patches/patch-Makefile b/package/pcmciautils/patches/patch-Makefile new file mode 100644 index 000000000..821753ddc --- /dev/null +++ b/package/pcmciautils/patches/patch-Makefile @@ -0,0 +1,11 @@ +--- pcmciautils-017.orig/Makefile 2010-01-06 16:47:45.000000000 +0100 ++++ pcmciautils-017/Makefile 2010-05-13 14:06:30.741613760 +0200 +@@ -94,7 +94,7 @@ PWD = $(shell pwd) + # If you are running a cross compiler, you may want to set this + # to something more interesting, like "arm-linux-". If you want + # to compile vs uClibc, that can be done here as well. +-CROSS = #/usr/i386-linux-uclibc/usr/bin/i386-uclibc- ++CROSS ?= #/usr/i386-linux-uclibc/usr/bin/i386-uclibc- + CC = $(CROSS)gcc + LD = $(CROSS)gcc + AR = $(CROSS)ar diff --git a/package/pcsc-lite/Makefile b/package/pcsc-lite/Makefile new file mode 100644 index 000000000..b81a64d27 --- /dev/null +++ b/package/pcsc-lite/Makefile @@ -0,0 +1,36 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= pcsc-lite +PKG_VERSION:= 1.6.0 +PKG_RELEASE:= 1 +PKG_MD5SUM:= fc3fd0e83090ecc81e5b32700fa246c2 +PKG_DESCR:= middleware for smartcards +PKG_SECTION:= security +PKG_BUILDDEP+= libusb libusb-compat +PKG_DEPENDS:= libusb libusb-compat libpthread ccid +PKG_URL:= http://pcsclite.alioth.debian.org/ +PKG_SITES:= https://alioth.debian.org/frs/download.php/3279/ + +DISTFILES:= ${PKG_NAME}-${PKG_VERSION}.tar.bz2 + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,PCSC_LITE,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +CONFIGURE_ARGS+= --disable-libhal + +post-install: + $(INSTALL_DIR) $(IDIR_PCSC_LITE)/etc + $(INSTALL_DIR) $(IDIR_PCSC_LITE)/usr/sbin + $(INSTALL_DIR) $(IDIR_PCSC_LITE)/usr/lib + $(INSTALL_DATA) ./files/reader.conf \ + $(IDIR_PCSC_LITE)/etc + $(INSTALL_BIN) $(WRKINST)/usr/sbin/pcscd \ + $(IDIR_PCSC_LITE)/usr/sbin + $(CP) $(WRKINST)/usr/lib/libpcsclite.so* \ + $(IDIR_PCSC_LITE)/usr/lib + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/pcsc-lite/files/pcscd.init b/package/pcsc-lite/files/pcscd.init new file mode 100644 index 000000000..557762eca --- /dev/null +++ b/package/pcsc-lite/files/pcscd.init @@ -0,0 +1,27 @@ +#!/bin/sh +#PKG pcscd +#INIT 80 + +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${pcscd:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + pcscd + ;; +stop) + pkill pcscd + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "usage: $0 {start | stop | restart}" + ;; +esac +exit $? diff --git a/package/pcsc-lite/files/pcscd.postinst b/package/pcsc-lite/files/pcscd.postinst new file mode 100644 index 000000000..1b27f479d --- /dev/null +++ b/package/pcsc-lite/files/pcscd.postinst @@ -0,0 +1,3 @@ +#!/bin/sh +. $IPKG_INSTROOT/etc/functions.sh +add_rcconf pcscd pcscd NO diff --git a/package/pcsc-lite/files/reader.conf b/package/pcsc-lite/files/reader.conf new file mode 100644 index 000000000..f56f290fb --- /dev/null +++ b/package/pcsc-lite/files/reader.conf @@ -0,0 +1,16 @@ +# FRIENDLYNAME Any name +# DEVICENAME device filename used by the reader: +# /dev/ttyS0 for the first serial port +# or /dev/null if this is not used by the driver +# LIBPATH Location of the driver library for your reader +# CHANNELID +# 0x0103F8 or 1 for /dev/ttyS0 (COM1) +# 0x0102F8 or 2 for /dev/ttyS1 (COM2) +# 0x0103E8 or 3 for /dev/ttyS2 (COM3) +# 0x0102E8 or 4 for /dev/ttyS3 (COM4) +# + +FRIENDLYNAME "GemPCTwin serial" +DEVICENAME /dev/ttyS0 +LIBPATH /usr/pcsc/drivers/serial/libccidtwin.so +CHANNELID 0 diff --git a/package/sysfsutils/Makefile b/package/sysfsutils/Makefile new file mode 100644 index 000000000..33bc0b905 --- /dev/null +++ b/package/sysfsutils/Makefile @@ -0,0 +1,27 @@ +# This file is part of the OpenADK project. OpenADK is copyrighted +# material, please see the LICENCE file in the top-level directory. + +include $(TOPDIR)/rules.mk + +PKG_NAME:= sysfsutils +PKG_VERSION:= 2.1.0 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 14e7dcd0436d2f49aa403f67e1ef7ddc +PKG_DESCR:= utilites built upon sysfs +PKG_SECTION:= utils +PKG_URL:= http://linux-diag.sourceforge.net/Sysfsutils.html +PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=linux-diag/sysfsutils/2.1.0/} + +include $(TOPDIR)/mk/package.mk + +$(eval $(call PKG_template,SYSFSUTILS,$(PKG_NAME),$(PKG_VERSION)-${PKG_RELEASE},${PKG_DEPENDS},${PKG_DESCR},${PKG_SECTION})) + +post-install: + $(INSTALL_DIR) $(IDIR_SYSFSUTILS)/usr/bin + $(INSTALL_DIR) $(IDIR_SYSFSUTILS)/usr/lib + $(CP) $(WRKINST)/usr/lib/libsysfs.so* \ + $(IDIR_SYSFSUTILS)/usr/lib + $(INSTALL_BIN) $(WRKINST)/usr/bin/systool \ + $(IDIR_SYSFSUTILS)/usr/bin + +include ${TOPDIR}/mk/pkg-bottom.mk |