diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2015-06-04 11:06:55 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2015-06-04 12:18:46 +0200 |
commit | 4df74acc09cf0a8a886068fbe3a28188bbfe7965 (patch) | |
tree | 63e62e873bdc6c0c6c76033087e61f73138897fe | |
parent | c99bdc228038be764e5c58d84a8dacb4102efe12 (diff) |
update opensc to latest stable version
-rw-r--r-- | package/opensc/Makefile | 16 | ||||
-rw-r--r-- | package/opensc/patches/patch-etc_Makefile_am | 10 | ||||
-rw-r--r-- | package/opensc/patches/patch-src_libopensc_internal-winscard_h | 31 | ||||
-rw-r--r-- | package/opensc/patches/patch-src_libopensc_reader-pcsc_c | 29 | ||||
-rw-r--r-- | package/opensc/patches/patch-src_pkcs11_Makefile_am | 10 | ||||
-rw-r--r-- | package/opensc/patches/patch-src_tools_pkcs11-tool_c | 18 |
6 files changed, 6 insertions, 108 deletions
diff --git a/package/opensc/Makefile b/package/opensc/Makefile index 4e47d36ca..289f732f8 100644 --- a/package/opensc/Makefile +++ b/package/opensc/Makefile @@ -4,15 +4,15 @@ include ${ADK_TOPDIR}/rules.mk PKG_NAME:= opensc -PKG_VERSION:= 0.11.13 -PKG_RELEASE:= 5 -PKG_HASH:= a9a42d6d51fb500f34248fcd0d4083c99d25bc5e74df60fe4efa19b5b4e6d890 +PKG_VERSION:= 0.15.0 +PKG_RELEASE:= 1 +PKG_HASH:= 399b2107a69e3f67e4e76dc2dbd951dbced8e534b1e0f919e176aea9b85970d7 PKG_DESCR:= utilities to access smart cards PKG_SECTION:= app/crypto PKG_BUILDDEP:= openct pcsc-lite openssl readline PKG_DEPENDS:= libopensc libopenct pcsc-lite libopenssl libreadline -PKG_URL:= http://www.opensc-project.org/opensc/ -PKG_SITES:= http://www.opensc-project.org/files/opensc/ +PKG_URL:= https://github.com/OpenSC/OpenSC/wiki +PKG_SITES:= ${MASTER_SITE_SOURCEFORGE:=opensc/} PKG_LIBNAME:= libopensc PKG_OPTS:= dev @@ -32,7 +32,7 @@ $(eval $(call PKG_template,LIBOPENSC,libopensc,${PKG_VERSION}-${PKG_RELEASE},${P AUTOTOOL_STYLE:= autoreconf CONFIGURE_ARGS+= --disable-man \ --disable-iconv \ - --enable-pcsc \ + --disable-pcsc \ --enable-openct opensc-install: @@ -55,10 +55,6 @@ libopensc-install: ${INSTALL_DIR} ${IDIR_LIBOPENSC}/usr/lib ${CP} ${WRKINST}/usr/lib/libopensc.so* \ ${IDIR_LIBOPENSC}/usr/lib - ${CP} ${WRKINST}/usr/lib/libpkcs15init.so* \ - ${IDIR_LIBOPENSC}/usr/lib - ${CP} ${WRKINST}/usr/lib/libscconf.so* \ - ${IDIR_LIBOPENSC}/usr/lib ${CP} ${WRKINST}/usr/lib/opensc-pkcs11.so \ ${IDIR_LIBOPENSC}/usr/lib diff --git a/package/opensc/patches/patch-etc_Makefile_am b/package/opensc/patches/patch-etc_Makefile_am deleted file mode 100644 index 71d96fa42..000000000 --- a/package/opensc/patches/patch-etc_Makefile_am +++ /dev/null @@ -1,10 +0,0 @@ ---- opensc-0.11.13.orig/etc/Makefile.am 2009-12-13 10:14:28.000000000 +0100 -+++ opensc-0.11.13/etc/Makefile.am 2013-10-31 16:21:04.000000000 +0100 -@@ -20,6 +20,7 @@ opensc.conf: opensc.conf.in force - - sysconf_DATA=#required in order to create dir - install-exec-hook: install-sysconfDATA opensc.conf -+ $(MKDIR_P) "$(DESTDIR)$(sysconfdir)" - if [ -f "$(DESTDIR)$(sysconfdir)/opensc.conf" ]; then \ - $(INSTALL_DATA) opensc.conf "$(DESTDIR)$(sysconfdir)/opensc.conf.new"; \ - else \ diff --git a/package/opensc/patches/patch-src_libopensc_internal-winscard_h b/package/opensc/patches/patch-src_libopensc_internal-winscard_h deleted file mode 100644 index 462100356..000000000 --- a/package/opensc/patches/patch-src_libopensc_internal-winscard_h +++ /dev/null @@ -1,31 +0,0 @@ ---- opensc-0.11.13.orig/src/libopensc/internal-winscard.h 2010-02-16 10:03:28.000000000 +0100 -+++ opensc-0.11.13/src/libopensc/internal-winscard.h 2010-12-15 21:47:38.000000000 +0100 -@@ -77,7 +77,7 @@ typedef struct - unsigned long cbAtr; - unsigned char rgbAtr[MAX_ATR_SIZE]; - } --SCARD_READERSTATE_A; -+SCARD_READERSTATE; - - typedef struct _SCARD_IO_REQUEST - { -@@ -87,8 +87,8 @@ typedef struct _SCARD_IO_REQUEST - SCARD_IO_REQUEST, *PSCARD_IO_REQUEST, *LPSCARD_IO_REQUEST; - - typedef const SCARD_IO_REQUEST *LPCSCARD_IO_REQUEST; --typedef SCARD_READERSTATE_A SCARD_READERSTATE, *PSCARD_READERSTATE_A, -- *LPSCARD_READERSTATE_A; -+typedef SCARD_READERSTATE SCARD_READERSTATE, *PSCARD_READERSTATE, -+ *SCARD_READERSTATE; - - #endif /* HAVE_SCARD_H */ - -@@ -113,7 +113,7 @@ typedef LONG (PCSC_API *SCardEndTransact - typedef LONG (PCSC_API *SCardStatus_t)(SCARDHANDLE hCard, LPSTR mszReaderNames, LPDWORD pcchReaderLen, - LPDWORD pdwState, LPDWORD pdwProtocol, LPBYTE pbAtr, LPDWORD pcbAtrLen); - typedef LONG (PCSC_API *SCardGetStatusChange_t)(SCARDCONTEXT hContext, DWORD dwTimeout, -- LPSCARD_READERSTATE_A rgReaderStates, DWORD cReaders); -+ SCARD_READERSTATE *rgReaderStates, DWORD cReaders); - typedef LONG (PCSC_API *SCardControlOLD_t)(SCARDHANDLE hCard, LPCVOID pbSendBuffer, DWORD cbSendLength, - LPVOID pbRecvBuffer, LPDWORD lpBytesReturned); - typedef LONG (PCSC_API *SCardControl_t)(SCARDHANDLE hCard, DWORD dwControlCode, LPCVOID pbSendBuffer, diff --git a/package/opensc/patches/patch-src_libopensc_reader-pcsc_c b/package/opensc/patches/patch-src_libopensc_reader-pcsc_c deleted file mode 100644 index cd4123a16..000000000 --- a/package/opensc/patches/patch-src_libopensc_reader-pcsc_c +++ /dev/null @@ -1,29 +0,0 @@ ---- opensc-0.11.13.orig/src/libopensc/reader-pcsc.c 2010-02-16 10:03:28.000000000 +0100 -+++ opensc-0.11.13/src/libopensc/reader-pcsc.c 2010-12-15 21:44:53.000000000 +0100 -@@ -80,7 +80,7 @@ struct pcsc_private_data { - - struct pcsc_slot_data { - SCARDHANDLE pcsc_card; -- SCARD_READERSTATE_A reader_state; -+ SCARD_READERSTATE reader_state; - DWORD verify_ioctl; - DWORD verify_ioctl_start; - DWORD verify_ioctl_finish; -@@ -353,7 +353,7 @@ static int pcsc_wait_for_event(sc_reader - sc_context_t *ctx; - SCARDCONTEXT pcsc_ctx; - LONG ret; -- SCARD_READERSTATE_A rgReaderStates[SC_MAX_READERS]; -+ SCARD_READERSTATE rgReaderStates[SC_MAX_READERS]; - unsigned long on_bits, off_bits; - time_t end_time, now, delta; - size_t i; -@@ -401,7 +401,7 @@ static int pcsc_wait_for_event(sc_reader - /* Wait for a status change and return if it's a card insert/removal - */ - for( ; ; ) { -- SCARD_READERSTATE_A *rsp; -+ SCARD_READERSTATE *rsp; - - /* Scan the current state of all readers to see if they - * match any of the events we're polling for */ diff --git a/package/opensc/patches/patch-src_pkcs11_Makefile_am b/package/opensc/patches/patch-src_pkcs11_Makefile_am deleted file mode 100644 index b09de08c6..000000000 --- a/package/opensc/patches/patch-src_pkcs11_Makefile_am +++ /dev/null @@ -1,10 +0,0 @@ ---- opensc-0.11.13.orig/src/pkcs11/Makefile.am 2010-02-16 10:03:25.000000000 +0100 -+++ opensc-0.11.13/src/pkcs11/Makefile.am 2013-10-31 17:40:22.000000000 +0100 -@@ -73,6 +73,7 @@ else - PKCS11_SUFFIX=.so - endif - install-exec-hook: install-pkcs11DATA -+ $(MKDIR_P) "$(DESTDIR)$(pkcs11dir)" - for l in opensc-pkcs11$(PKCS11_SUFFIX) onepin-opensc-pkcs11$(PKCS11_SUFFIX) pkcs11-spy$(PKCS11_SUFFIX); do \ - rm -f "$(DESTDIR)$(pkcs11dir)/$$l"; \ - $(LN_S) ../$$l "$(DESTDIR)$(pkcs11dir)/$$l"; \ diff --git a/package/opensc/patches/patch-src_tools_pkcs11-tool_c b/package/opensc/patches/patch-src_tools_pkcs11-tool_c deleted file mode 100644 index aa83f09f7..000000000 --- a/package/opensc/patches/patch-src_tools_pkcs11-tool_c +++ /dev/null @@ -1,18 +0,0 @@ ---- opensc-0.11.13.orig/src/tools/pkcs11-tool.c 2010-02-16 10:03:25.000000000 +0100 -+++ opensc-0.11.13/src/tools/pkcs11-tool.c 2013-10-31 16:04:07.000000000 +0100 -@@ -2235,7 +2235,6 @@ static int sign_verify_openssl(CK_SLOT_I - EVP_sha1(), - EVP_sha1(), - EVP_md5(), -- EVP_ripemd160(), - }; - #endif - -@@ -2820,7 +2819,6 @@ static int test_unwrap(CK_SLOT_ID slot, - errors += wrap_unwrap(slot, sess, EVP_des_cbc(), privKeyObject); - errors += wrap_unwrap(slot, sess, EVP_des_ede3_cbc(), privKeyObject); - errors += wrap_unwrap(slot, sess, EVP_bf_cbc(), privKeyObject); -- errors += wrap_unwrap(slot, sess, EVP_cast5_cfb(), privKeyObject); - #endif - } - |