diff options
Diffstat (limited to 'package/openssl-pkcs11')
-rw-r--r-- | package/openssl-pkcs11/Config.in | 7 | ||||
-rw-r--r-- | package/openssl-pkcs11/Makefile | 31 | ||||
-rw-r--r-- | package/openssl-pkcs11/ipkg/openssl-pkcs11.control | 4 | ||||
-rw-r--r-- | package/openssl-pkcs11/patches/patch-configure | 60 |
4 files changed, 102 insertions, 0 deletions
diff --git a/package/openssl-pkcs11/Config.in b/package/openssl-pkcs11/Config.in new file mode 100644 index 000000000..67431160d --- /dev/null +++ b/package/openssl-pkcs11/Config.in @@ -0,0 +1,7 @@ +config ADK_PACKAGE_OPENSSL_PKCS11 + prompt "openssl-pkcs11.................... openssl pkcs11 engine" + tristate + default n + select ADK_PACKAGE_LIBP11 + help + openssl pkcs11 engine diff --git a/package/openssl-pkcs11/Makefile b/package/openssl-pkcs11/Makefile new file mode 100644 index 000000000..37d4ffe51 --- /dev/null +++ b/package/openssl-pkcs11/Makefile @@ -0,0 +1,31 @@ +# $Id$ +#- +# 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:= openssl-pkcs11 +PKG_VERSION:= 0.1.3 +PKG_RELEASE:= 1 +PKG_MD5SUM:= 26eb84950a10b7d869e41a50620ebf09 +DISTFILES:= engine_pkcs11-${PKG_VERSION}.tar.gz +MASTER_SITES:= http://www.opensc-project.org/files/engine_pkcs11/ +WRKDIST= ${WRKDIR}/engine_pkcs11-${PKG_VERSION} + +include ${TOPDIR}/mk/package.mk + +$(eval $(call PKG_template,OPENSSL_PKCS11,openssl-pkcs11,${PKG_VERSION}-${PKG_RELEASE},${ARCH})) + +CONFIGURE_STYLE:= gnu +CONFIGURE_ENV+= cross_compiling=yes +CONFIGURE_ARGS+= --with-openssl="${STAGING_DIR}/usr" +BUILD_STYLE:= auto +INSTALL_STYLE:= auto + +post-install: + ${INSTALL_DIR} ${IDIR_OPENSSL_PKCS11}/usr/lib/engines + ${INSTALL_DATA} ${WRKINST}/usr/lib/engines/engine_pkcs11.so \ + ${IDIR_OPENSSL_PKCS11}/usr/lib/engines + +include ${TOPDIR}/mk/pkg-bottom.mk diff --git a/package/openssl-pkcs11/ipkg/openssl-pkcs11.control b/package/openssl-pkcs11/ipkg/openssl-pkcs11.control new file mode 100644 index 000000000..3e7c3ae5b --- /dev/null +++ b/package/openssl-pkcs11/ipkg/openssl-pkcs11.control @@ -0,0 +1,4 @@ +Package: openssl-pkcs11 +Priority: optional +Section: crypto +Description: pkcs11 engine for openssl diff --git a/package/openssl-pkcs11/patches/patch-configure b/package/openssl-pkcs11/patches/patch-configure new file mode 100644 index 000000000..7527e4904 --- /dev/null +++ b/package/openssl-pkcs11/patches/patch-configure @@ -0,0 +1,60 @@ +$Id$ +--- engine_pkcs11-0.1.3.orig/configure 2005-11-23 21:44:23.000000000 +0100 ++++ engine_pkcs11-0.1.3/configure 2007-04-08 14:22:29.000000000 +0200 +@@ -20061,56 +20061,6 @@ if test "${with_openssl+set}" = set; the + fi + CPPFLAGS="-I$withval/include $saved_CPPFLAGS" + +- if test "$cross_compiling" = yes; then +- { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling +-See \`config.log' for more details." >&5 +-echo "$as_me: error: cannot run test program while cross compiling +-See \`config.log' for more details." >&2;} +- { (exit 1); exit 1; }; } +-else +- cat >conftest.$ac_ext <<_ACEOF +-/* confdefs.h. */ +-_ACEOF +-cat confdefs.h >>conftest.$ac_ext +-cat >>conftest.$ac_ext <<_ACEOF +-/* end confdefs.h. */ +- +-#include <string.h> +-#include <openssl/rand.h> +-int main(void) +-{ +- char a[2048]; +- memset(a, 0, sizeof(a)); +- RAND_add(a, sizeof(a), sizeof(a)); +- return(RAND_status() <= 0); +-} +- +-_ACEOF +-rm -f conftest$ac_exeext +-if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 +- (eval $ac_link) 2>&5 +- ac_status=$? +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); } && { ac_try='./conftest$ac_exeext' +- { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 +- (eval $ac_try) 2>&5 +- ac_status=$? +- echo "$as_me:$LINENO: \$? = $ac_status" >&5 +- (exit $ac_status); }; }; then +- +- SSL_MSG="yes" +- ssldir="$withval" +- break +- +-else +- echo "$as_me: program exited with status $ac_status" >&5 +-echo "$as_me: failed program was:" >&5 +-sed 's/^/| /' conftest.$ac_ext >&5 +- +-fi +-rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext +-fi +- + else + + |