Import softhsm-1.3.7, ok sthen@

Work done by Patrick Lundin (maintainer), p11-kit tweaks by sthen@.

DESCR:
SoftHSM is an implementation of a cryptographic store accessible through a
PKCS#11 interface, using Botan for its cryptographic operations. You can use
it to explore PKCS#11 without having a Hardware Security Module.
This commit is contained in:
jca 2015-06-23 11:26:05 +00:00
parent 3253635e41
commit c8c2d1510d
6 changed files with 87 additions and 0 deletions

37
security/softhsm/Makefile Normal file
View File

@ -0,0 +1,37 @@
# $OpenBSD: Makefile,v 1.1.1.1 2015/06/23 11:26:05 jca Exp $
SHARED_ONLY= Yes
COMMENT= software PKCS\#11 cryptographic token
DISTNAME= softhsm-1.3.7
CATEGORIES= security
HOMEPAGE= http://www.opendnssec.org/softhsm/
MAINTAINER= Patrik Lundin <patrik@sigterm.se>
# BSD
PERMIT_PACKAGE_CDROM= Yes
WANTLIB += botan-1.10 bz2 c crypto gmp m pthread sqlite3 stdc++ z
MASTER_SITES= http://dist.opendnssec.org/source/
LIB_DEPENDS= security/botan
FAKE_FLAGS= sysconfdir=${PREFIX}/share/examples/softhsm
SEPARATE_BUILD= Yes
CONFIGURE_STYLE= gnu
CONFIGURE_ARGS= --with-botan="${LOCALBASE}"
post-install:
${INSTALL_DATA_DIR} ${PREFIX}/share/doc/softhsm
cd ${WRKSRC}; ${INSTALL_DATA} LICENSE ${PREFIX}/share/doc/softhsm
rm ${PREFIX}/lib/softhsm/libsofthsm.*a
${INSTALL_DATA} ${FILESDIR}/softhsm.module \
${PREFIX}/share/examples/softhsm
.include <bsd.port.mk>

View File

@ -0,0 +1,2 @@
SHA256 (softhsm-1.3.7.tar.gz) = 0S1kVqhVYSZtnaQnVl8+43RqNd9mcNXmvnXeJTwoEKQ=
SIZE (softhsm-1.3.7.tar.gz) = 438437

View File

@ -0,0 +1,3 @@
# $OpenBSD: softhsm.module,v 1.1.1.1 2015/06/23 11:26:05 jca Exp $
module: ../softhsm/libsofthsm.so

View File

@ -0,0 +1,23 @@
$OpenBSD: patch-configure,v 1.1.1.1 2015/06/23 11:26:05 jca Exp $
--- configure.orig Wed May 28 08:03:56 2014
+++ configure Mon Jun 22 13:16:45 2015
@@ -4351,8 +4351,8 @@ else
fi
- BOTAN_INCLUDES="-I$BOTAN_PATH/include/botan-1.10"
- BOTAN_LIBS="-L$BOTAN_PATH/lib -lbotan-1.10"
+ BOTAN_INCLUDES=`botan-config-1.10 --cflags`
+ BOTAN_LIBS=`botan-config-1.10 --libs`
tmp_CPPFLAGS=$CPPFLAGS
tmp_LIBS=$LIBS
CPPFLAGS="$CPPFLAGS $BOTAN_INCLUDES"
@@ -16255,7 +16255,7 @@ CFLAGS=$lt_save_CFLAGS
-softhsmdbdir=${full_localstatedir}/lib/softhsm
+softhsmdbdir=${full_localstatedir}/db/softhsm

View File

@ -0,0 +1,3 @@
SoftHSM is an implementation of a cryptographic store accessible through a
PKCS#11 interface, using Botan for its cryptographic operations. You can use
it to explore PKCS#11 without having a Hardware Security Module.

View File

@ -0,0 +1,19 @@
@comment $OpenBSD: PLIST,v 1.1.1.1 2015/06/23 11:26:05 jca Exp $
@bin bin/softhsm
@bin bin/softhsm-keyconv
lib/softhsm/
lib/softhsm/libsofthsm.so
@man man/man1/softhsm-keyconv.1
@man man/man1/softhsm.1
@man man/man5/softhsm.conf.5
share/doc/softhsm/
share/doc/softhsm/LICENSE
share/examples/softhsm/
share/examples/softhsm/softhsm.conf
@sample ${SYSCONFDIR}/softhsm.conf
@comment share/examples/softhsm/softhsm.conf.sample
share/examples/softhsm/softhsm.module
@sample ${SYSCONFDIR}/pkcs11/
@sample ${SYSCONFDIR}/pkcs11/modules/
@sample ${SYSCONFDIR}/pkcs11/modules/softhsm.module
@sample ${LOCALSTATEDIR}/db/softhsm/