Import security/ccid, a user-space USB CCID driver used by
security/pcsc-lite. OK sthen@
This commit is contained in:
parent
6c0818a009
commit
863b04e540
40
security/ccid/Makefile
Normal file
40
security/ccid/Makefile
Normal file
@ -0,0 +1,40 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2012/08/06 13:20:48 dcoppa Exp $
|
||||
|
||||
SHARED_ONLY = Yes
|
||||
|
||||
COMMENT = USB Chip/Smart Card Interface Devices driver
|
||||
|
||||
DISTNAME = ccid-1.4.7
|
||||
|
||||
CATEGORIES = security
|
||||
|
||||
HOMEPAGE = http://pcsclite.alioth.debian.org/ccid.html
|
||||
|
||||
MASTER_SITES = https://alioth.debian.org/frs/download.php/3730/
|
||||
|
||||
EXTRACT_SUFX = .tar.bz2
|
||||
|
||||
MAINTAINER = David Coppa <dcoppa@openbsd.org>
|
||||
|
||||
# LGPLv2.1+ and GPLv2+
|
||||
PERMIT_PACKAGE_CDROM= Yes
|
||||
PERMIT_PACKAGE_FTP= Yes
|
||||
PERMIT_DISTFILES_CDROM= Yes
|
||||
PERMIT_DISTFILES_FTP= Yes
|
||||
|
||||
WANTLIB = pcsclite usb-1.0
|
||||
|
||||
LIB_DEPENDS = devel/libusb1 \
|
||||
security/pcsc-lite>=1.8.3
|
||||
|
||||
USE_LIBTOOL = Yes
|
||||
|
||||
CONFIGURE_STYLE = gnu
|
||||
|
||||
CONFIGURE_ARGS = --enable-twinserial
|
||||
|
||||
CONFIGURE_ENV = ac_cv_lib_lex='none needed'
|
||||
|
||||
NO_REGRESS = Yes
|
||||
|
||||
.include <bsd.port.mk>
|
2
security/ccid/distinfo
Normal file
2
security/ccid/distinfo
Normal file
@ -0,0 +1,2 @@
|
||||
SHA256 (ccid-1.4.7.tar.bz2) = Nm0+LkF/WpfdeVdlziPj3RqMgXuit4CjDPdp1moONsc=
|
||||
SIZE (ccid-1.4.7.tar.bz2) = 469953
|
27
security/ccid/patches/patch-src_Makefile_in
Normal file
27
security/ccid/patches/patch-src_Makefile_in
Normal file
@ -0,0 +1,27 @@
|
||||
$OpenBSD: patch-src_Makefile_in,v 1.1.1.1 2012/08/06 13:20:48 dcoppa Exp $
|
||||
--- src/Makefile.in.orig Fri Jun 22 10:53:52 2012
|
||||
+++ src/Makefile.in Mon Aug 6 13:45:53 2012
|
||||
@@ -416,7 +416,6 @@ EXTRA_DIST = Info.plist.src create_Info_plist.pl reade
|
||||
towitoko/COPYING towitoko/README openct/LICENSE \
|
||||
convert_version.pl 92_pcscd_ccid.rules
|
||||
|
||||
-INSTALL_UDEV_RULE_FILE = @/bin/echo -e "\n\33[01;31m***************\n" ; echo "copy the src/92_pcscd_ccid.rules file in udev directory (/etc/udev/rules.d/)" ; /bin/echo -e "\n***************\n\33[0m"
|
||||
DISTCLEANFILES = tokenparser.c Info.plist
|
||||
all: all-am
|
||||
|
||||
@@ -1068,13 +1067,12 @@ install_ccid: libccid.la Info.plist
|
||||
$(mkinstalldirs) $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/
|
||||
cp Info.plist $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/
|
||||
cp .libs/$(CCID_LIB) $(DESTDIR)$(usbdropdir)/$(CCID_BUNDLE)/Contents/$(BUNDLE_HOST)/$(CCID_LIB)
|
||||
- $(INSTALL_UDEV_RULE_FILE)
|
||||
|
||||
install_ccidtwin: libccidtwin.la
|
||||
$(mkinstalldirs) $(DESTDIR)$(ccidtwindir)
|
||||
cp .libs/$(CCIDTWIN_LIB) $(DESTDIR)$(ccidtwindir)/$(CCIDTWIN_LIB)
|
||||
- $(mkinstalldirs) $(DESTDIR)/$(sysconfdir)/reader.conf.d ; \
|
||||
- perl -ne "s|TARGET|$(ccidtwindir)/$(CCIDTWIN_LIB)| ; print" $(srcdir)/reader.conf.in > $(DESTDIR)/$(sysconfdir)/reader.conf.d/libccidtwin
|
||||
+ $(mkinstalldirs) $(DESTDIR)$(datadir)/examples/ccid ; \
|
||||
+ perl -ne "s|TARGET|$(ccidtwindir)/$(CCIDTWIN_LIB)| ; print" $(srcdir)/reader.conf.in > $(DESTDIR)$(datadir)/examples/ccid/libccidtwin
|
||||
|
||||
# do not uninstall the serial driver by default
|
||||
# use explicitely 'make uninstall_ccidtwin'
|
4
security/ccid/pkg/DESCR
Normal file
4
security/ccid/pkg/DESCR
Normal file
@ -0,0 +1,4 @@
|
||||
ccid is a generic USB CCID (Chip/Smart Card Interface Devices)
|
||||
driver and ICCD (Integrated Circuit(s) Card Devices) driver.
|
||||
|
||||
See the USB CCID and ICCD specifications from the USB working group.
|
14
security/ccid/pkg/PLIST
Normal file
14
security/ccid/pkg/PLIST
Normal file
@ -0,0 +1,14 @@
|
||||
@comment $OpenBSD: PLIST,v 1.1.1.1 2012/08/06 13:20:48 dcoppa Exp $
|
||||
lib/pcsc/
|
||||
lib/pcsc/drivers/
|
||||
lib/pcsc/drivers/ifd-ccid.bundle/
|
||||
lib/pcsc/drivers/ifd-ccid.bundle/Contents/
|
||||
lib/pcsc/drivers/ifd-ccid.bundle/Contents/Info.plist
|
||||
lib/pcsc/drivers/ifd-ccid.bundle/Contents/OpenBSD/
|
||||
lib/pcsc/drivers/ifd-ccid.bundle/Contents/OpenBSD/libccid.so
|
||||
lib/pcsc/drivers/serial/
|
||||
lib/pcsc/drivers/serial/libccidtwin.so
|
||||
share/examples/ccid/
|
||||
@sample ${SYSCONFDIR}/ccid/
|
||||
share/examples/ccid/libccidtwin
|
||||
@sample ${SYSCONFDIR}/ccid/libccidtwin
|
Loading…
Reference in New Issue
Block a user