Update to 5.0.1test.
Assign Maintainership to Jason E. Hale PR: 156471, 155200 Submitted by: Marcin Cieslak <saper@saper.info>,Jason E. Hale <bsdkaffee@gmail.com>
This commit is contained in:
parent
4d3b808ff8
commit
f25d8f00e8
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=274102
7 changed files with 149 additions and 103 deletions
|
@ -6,35 +6,36 @@
|
|||
#
|
||||
|
||||
PORTNAME= libchipcard
|
||||
PORTVERSION= 0.9.1
|
||||
DISTVERSION= 5.0.1test
|
||||
CATEGORIES= devel
|
||||
MASTER_SITES= SF
|
||||
MASTER_SITES= http://www.aquamaniac.de/sites/download/download.php?package=02&release=25&file=01&dummy=
|
||||
|
||||
MAINTAINER= martin@libchipcard.de
|
||||
MAINTAINER= bsdkaffee@gmail.com
|
||||
COMMENT= A library for easy access to chipcards
|
||||
|
||||
LIB_DEPENDS= pcsclite.1:${PORTSDIR}/devel/pcsc-lite
|
||||
LIB_DEPENDS= pcsclite.1:${PORTSDIR}/devel/pcsc-lite \
|
||||
gwenhywfar.60:${PORTSDIR}/devel/gwenhywfar
|
||||
|
||||
FETCH_ARGS+= -o ${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}
|
||||
USE_AUTOTOOLS= libtool
|
||||
USE_GMAKE= yes
|
||||
USE_OPENSSL= yes
|
||||
GNU_CONFIGURE= yes
|
||||
USE_LDCONFIG= yes
|
||||
CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}"
|
||||
CONFIGURE_ARGS+=--with-distri=freebsd
|
||||
CONFIGURE_ENV+= PTHREAD_LIBS="${PTHREAD_LIBS}" aq_distrib_name="FreeBSD"
|
||||
CONFIGURE_ARGS+=--with-pcsc-includes=${LOCALBASE}/include \
|
||||
--with-pcsc-libs=${LOCALBASE}/lib
|
||||
PLIST_SUB= GWEN_PLUGINS="${GWEN_PLUGINS}"
|
||||
USE_LDCONFIG= yes
|
||||
|
||||
MAN1= ctfstool.1 chipcardd.1 geldkarte.1 hbcicard.1 \
|
||||
kvkd.1 memcard.1 libchipcard-config.1 readertest.1
|
||||
|
||||
MAN5= libchipcard.conf.5 chipcardc.conf.5 chipcardd.conf.5
|
||||
GWEN_SHLIB_VER= 60
|
||||
GWEN_PLUGINS= ${LOCALBASE}/lib/gwenhywfar/plugins/${GWEN_SHLIB_VER}
|
||||
|
||||
post-patch:
|
||||
${REINPLACE_CMD} -e "s,LPCSTR,LPCTSTR," ${WRKSRC}/src/libchipcard/engine/reader/ctdriver_pcsc.h
|
||||
${REINPLACE_CMD} -e "s,libpcsclite.so.0,libpcsclite.so.1,; \
|
||||
s,/usr/local/pcsc/include,${LOCALBASE}/include/PCSC," ${WRKSRC}/configure
|
||||
${REINPLACE_CMD} -e 's|aq_endian\" ==|aq_endian\" =|g' \
|
||||
${WRKSRC}/configure
|
||||
|
||||
post-install:
|
||||
@${INSTALL_SCRIPT} ${WRKSRC}/freebsd/chipcardd.sh ${PREFIX}/etc/rc.d
|
||||
@${SED} -e 's,%%PREFIX%%,${PREFIX},' ${PKGMESSAGE}
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
MD5 (libchipcard-0.9.1.tar.gz) = 9de5833b693a5221a046d4fe7efcc4c6
|
||||
SHA256 (libchipcard-0.9.1.tar.gz) = 126284bc4aa2e931f84744210bb83163f13423d7a563d4fb8f5514983f597ad0
|
||||
SIZE (libchipcard-0.9.1.tar.gz) = 724733
|
||||
SHA256 (libchipcard-5.0.1test.tar.gz) = c4ea0408972bf906342a3f8d904a7ffa1f0f2df9f649377568fcbeef44ea02b7
|
||||
SIZE (libchipcard-5.0.1test.tar.gz) = 736433
|
||||
|
|
11
devel/libchipcard/files/patch-configure
Normal file
11
devel/libchipcard/files/patch-configure
Normal file
|
@ -0,0 +1,11 @@
|
|||
--- configure.orig 2010-11-13 18:14:47.000000000 +0100
|
||||
+++ configure 2011-04-07 01:28:50.000000000 +0200
|
||||
@@ -16388,7 +16388,7 @@
|
||||
$as_echo_n "checking if symbol visibility is supported... " >&6; }
|
||||
visibility_cflags=""
|
||||
case `basename $CC` in
|
||||
- gcc*)
|
||||
+ cc|gcc*)
|
||||
gccversion="` ${CC} --version | head -1 | ${SED} 's/.*\([0-9]\.[0-9]\.[0-9]*\).*/\1/' `"
|
||||
case $gccversion in
|
||||
4.*)
|
31
devel/libchipcard/files/patch-readerstate
Normal file
31
devel/libchipcard/files/patch-readerstate
Normal file
|
@ -0,0 +1,31 @@
|
|||
--- src/lib/client/base/client_p.h.orig 2011-04-18 13:47:27.000000000 +0200
|
||||
+++ src/lib/client/base/client_p.h 2011-04-18 13:47:49.000000000 +0200
|
||||
@@ -42,7 +42,7 @@
|
||||
SCARDCONTEXT scardContext;
|
||||
|
||||
int pnpAvailable;
|
||||
- SCARD_READERSTATE_A readerStates[MAX_READERS];
|
||||
+ SCARD_READERSTATE readerStates[MAX_READERS];
|
||||
int readerCount;
|
||||
int lastUsedReader;
|
||||
LPSTR readerList;
|
||||
--- src/lib/client/base/client.c.orig 2011-04-18 13:50:21.000000000 +0200
|
||||
+++ src/lib/client/base/client.c 2011-04-18 13:50:42.000000000 +0200
|
||||
@@ -872,7 +872,7 @@
|
||||
DBG_INFO(LC_LOGDOMAIN, "Creating reader \"%s\"", p);
|
||||
i=cl->readerCount;
|
||||
/* preset */
|
||||
- memset((void*) &(cl->readerStates[i]), 0, sizeof(SCARD_READERSTATE_A));
|
||||
+ memset((void*) &(cl->readerStates[i]), 0, sizeof(SCARD_READERSTATE));
|
||||
cl->readerStates[i].szReader=p;
|
||||
cl->readerStates[i].dwCurrentState=SCARD_STATE_UNAWARE;
|
||||
/* reader added */
|
||||
@@ -948,7 +948,7 @@
|
||||
assert(cl);
|
||||
|
||||
/* clear reader list and reader status list */
|
||||
- memset((void*) &cl->readerStates, 0, sizeof(SCARD_READERSTATE_A)*MAX_READERS);
|
||||
+ memset((void*) &cl->readerStates, 0, sizeof(SCARD_READERSTATE)*MAX_READERS);
|
||||
cl->readerCount=0;
|
||||
free(cl->readerList);
|
||||
cl->readerList=NULL;
|
|
@ -1,14 +0,0 @@
|
|||
--- src/libchipcard/cards/hbcicard.cpp.orig 2007-10-12 09:54:53.000000000 +0200
|
||||
+++ src/libchipcard/cards/hbcicard.cpp 2007-10-12 09:53:18.000000000 +0200
|
||||
@@ -684,8 +684,8 @@
|
||||
case k_HBCICARD_TYPE_1:
|
||||
return _hash2mac1(hash,mac);
|
||||
default:
|
||||
- DBG_INFO("LIBCHIPCARD: unknown chip card type (%8x) (%d).",
|
||||
- (unsigned int)this,
|
||||
+ DBG_INFO("LIBCHIPCARD: unknown chip card type (%p) (%d).",
|
||||
+ this,
|
||||
_type);
|
||||
return false;
|
||||
}
|
||||
|
|
@ -1,8 +1,7 @@
|
|||
*******************************************************************************
|
||||
* *
|
||||
* Example configurations have been installed to: *
|
||||
* Example configuration has been installed in: *
|
||||
* *
|
||||
* %%PREFIX%%/share/libchipcard/examples/chipcardc.conf (client configuration) *
|
||||
* %%PREFIX%%/share/libchipcard/examples/chipcardd.conf (daemon configuration) *
|
||||
* %%PREFIX%%/etc/chipcard/chipcardc.conf *
|
||||
* *
|
||||
*******************************************************************************
|
||||
|
|
|
@ -1,74 +1,93 @@
|
|||
bin/kvkcard
|
||||
bin/cardcommander
|
||||
bin/ctfstool
|
||||
bin/geldkarte
|
||||
bin/hbcicard
|
||||
bin/libchipcard-config
|
||||
bin/memcard
|
||||
bin/readertest
|
||||
etc/rc.d/chipcardd.sh
|
||||
include/chameleon/chameleon.h
|
||||
include/chameleon/conf.h
|
||||
include/chameleon/cryp.h
|
||||
include/chameleon/debug.h
|
||||
include/chameleon/directory.h
|
||||
include/chameleon/error.h
|
||||
include/chameleon/inetaddr.h
|
||||
include/chameleon/inetsocket.h
|
||||
include/chameleon/ipcmessage.h
|
||||
include/chameleon/ipcmessagelayer.h
|
||||
include/chameleon/ipcservicelayer.h
|
||||
include/chameleon/ipctransportlayer.h
|
||||
include/chameleon/libloader.h
|
||||
include/chameleon/logger.h
|
||||
include/chipcard.h
|
||||
include/chipcard/ctcard.h
|
||||
include/chipcard/ctcardbase.h
|
||||
include/chipcard/ctcardtrader.h
|
||||
include/chipcard/ctcommand.h
|
||||
include/chipcard/ctcore_public.h
|
||||
include/chipcard/ctdatacache.h
|
||||
include/chipcard/cterror.h
|
||||
include/chipcard/ctfilesystem2.h
|
||||
include/chipcard/ctgeldkarte.h
|
||||
include/chipcard/ctinitializer.h
|
||||
include/chipcard/ctkvkcard.h
|
||||
include/chipcard/ctmemorycard.h
|
||||
include/chipcard/ctmisc.h
|
||||
include/chipcard/ctpointer.h
|
||||
include/chipcard/ctprocessorcard.h
|
||||
include/chipcard/ctreadercontext.h
|
||||
include/chipcard/ctreadertrader.h
|
||||
include/chipcard/cttlv.h
|
||||
include/chipcard/ctversion.h
|
||||
include/chipcard/hbcicard.h
|
||||
include/chipcard/libchipcard.h
|
||||
include/chipcard/rsacard.h
|
||||
include/ctversion.h
|
||||
bin/geldkarte
|
||||
bin/chipcard-tool
|
||||
bin/chipcard-config
|
||||
etc/chipcard/chipcardc.conf.default
|
||||
etc/chipcard/chipcardc.conf.example
|
||||
include/libchipcard5/chipcard/card.h
|
||||
include/libchipcard5/chipcard/card_imp.h
|
||||
include/libchipcard5/chipcard/card_l.h
|
||||
include/libchipcard5/chipcard/cards/ddvcard.h
|
||||
include/libchipcard5/chipcard/cards/egkcard.h
|
||||
include/libchipcard5/chipcard/cards/geldkarte.h
|
||||
include/libchipcard5/chipcard/cards/geldkarte_blog.h
|
||||
include/libchipcard5/chipcard/cards/geldkarte_llog.h
|
||||
include/libchipcard5/chipcard/cards/geldkarte_values.h
|
||||
include/libchipcard5/chipcard/cards/hiinsurancedata.h
|
||||
include/libchipcard5/chipcard/cards/hipersonaldata.h
|
||||
include/libchipcard5/chipcard/cards/kvkcard.h
|
||||
include/libchipcard5/chipcard/cards/memorycard.h
|
||||
include/libchipcard5/chipcard/cards/processorcard.h
|
||||
include/libchipcard5/chipcard/cards/starcos.h
|
||||
include/libchipcard5/chipcard/cards/starcos_keydescr.h
|
||||
include/libchipcard5/chipcard/cards/zkacard.h
|
||||
include/libchipcard5/chipcard/chipcard.h
|
||||
include/libchipcard5/chipcard/client.h
|
||||
include/libchipcard5/chipcard/ct/ct_card.h
|
||||
include/libchipcard5/chipcard/sharedstuff/driverinfo.h
|
||||
include/libchipcard5/chipcard/sharedstuff/misc.h
|
||||
include/libchipcard5/chipcard/sharedstuff/msgengine.h
|
||||
include/libchipcard5/chipcard/sharedstuff/pininfo.h
|
||||
include/libchipcard5/chipcard/tlv.h
|
||||
include/libchipcard5/chipcard/version.h
|
||||
lib/libchipcard.a
|
||||
lib/libchipcard.la
|
||||
lib/libchipcard.so
|
||||
lib/libchipcard.so.20
|
||||
sbin/chipcardd
|
||||
sbin/kvkd
|
||||
share/aclocal/libchipcard.m4
|
||||
share/libchipcard/commands/ctcard.cmd
|
||||
share/libchipcard/commands/ctgeldkarte.cmd
|
||||
share/libchipcard/commands/ctkvkcard.cmd
|
||||
share/libchipcard/commands/ctmemorycard.cmd
|
||||
share/libchipcard/commands/ctprocessorcard.cmd
|
||||
share/libchipcard/commands/hbcicard.cmd
|
||||
share/libchipcard/commands/rsacard.cmd
|
||||
share/libchipcard/drivers/README
|
||||
share/libchipcard/drivers/ctapi-fake.dsc
|
||||
share/libchipcard/drivers/cyberjack.dsc
|
||||
share/libchipcard/drivers/kobil.dsc
|
||||
share/libchipcard/drivers/orga.dsc
|
||||
share/libchipcard/drivers/towitoko.dsc
|
||||
share/libchipcard/examples/chipcardc.conf
|
||||
share/libchipcard/examples/chipcardd.conf
|
||||
@dirrm share/libchipcard/examples
|
||||
@dirrm share/libchipcard/drivers
|
||||
@dirrm share/libchipcard/commands
|
||||
@dirrm share/libchipcard
|
||||
@dirrm include/chipcard
|
||||
@dirrm include/chameleon
|
||||
lib/libchipcard.so.6
|
||||
share/aclocal/chipcard.m4
|
||||
share/chipcard/apps/README
|
||||
share/chipcard/apps/ddv.xml
|
||||
share/chipcard/apps/ddv0.xml
|
||||
share/chipcard/apps/ddv1.xml
|
||||
share/chipcard/apps/egk.xml
|
||||
share/chipcard/apps/examplecard.xml
|
||||
share/chipcard/apps/geldkarte.xml
|
||||
share/chipcard/apps/kvkcard.xml
|
||||
share/chipcard/apps/memorycard.xml
|
||||
share/chipcard/apps/processorcard.xml
|
||||
share/chipcard/apps/starcoscard-hvb.xml
|
||||
share/chipcard/apps/starcoscard-vr.xml
|
||||
share/chipcard/apps/starcoscard.xml
|
||||
share/chipcard/apps/zkacard.xml
|
||||
share/chipcard/cards/README
|
||||
share/chipcard/cards/card.xml
|
||||
share/chipcard/cards/cyberjack_pcsc/card.xml
|
||||
share/chipcard/cards/cyberjack_pcsc/kvk.xml
|
||||
share/chipcard/cards/cyberjack_pcsc/processorcard.xml
|
||||
share/chipcard/cards/ddv0.xml
|
||||
share/chipcard/cards/ddv1.xml
|
||||
share/chipcard/cards/egk.xml
|
||||
share/chipcard/cards/geldkarte.xml
|
||||
share/chipcard/cards/generic_pcsc/card.xml
|
||||
share/chipcard/cards/generic_pcsc/kvk.xml
|
||||
share/chipcard/cards/generic_pcsc/processorcard.xml
|
||||
share/chipcard/cards/kvkcard.xml
|
||||
share/chipcard/cards/memorycard.xml
|
||||
share/chipcard/cards/processorcard.xml
|
||||
share/chipcard/cards/starcoscard.xml
|
||||
share/chipcard/cards/zkacard.xml
|
||||
share/chipcard/drivers/cyberjack_pcsc.xml
|
||||
share/chipcard/drivers/generic_pcsc.xml
|
||||
@dirrmtry share/chipcard/drivers
|
||||
@dirrmtry share/chipcard/cards/generic_pcsc
|
||||
@dirrmtry share/chipcard/cards/cyberjack_pcsc
|
||||
@dirrmtry share/chipcard/cards
|
||||
@dirrmtry share/chipcard/apps
|
||||
@dirrmtry share/chipcard
|
||||
@dirrmtry include/libchipcard5/chipcard/sharedstuff
|
||||
@dirrmtry include/libchipcard5/chipcard/ct
|
||||
@dirrmtry include/libchipcard5/chipcard/cards
|
||||
@dirrmtry include/libchipcard5/chipcard
|
||||
@dirrmtry include/libchipcard5
|
||||
@dirrmtry etc/chipcard
|
||||
@cwd %%GWEN_PLUGINS%%
|
||||
ct/ddvcard.a
|
||||
ct/ddvcard.la
|
||||
ct/ddvcard.so
|
||||
ct/ddvcard.xml
|
||||
ct/starcoscard.a
|
||||
ct/starcoscard.la
|
||||
ct/starcoscard.so
|
||||
ct/starcoscard.xml
|
||||
|
|
Loading…
Reference in a new issue