Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Feb 2015 03:20:11 +0000 (UTC)
From:      Erwin Lansing <erwin@FreeBSD.org>
To:        ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org
Subject:   svn commit: r378708 - in head/security: . softhsm2
Message-ID:  <201502090320.t193KBIq083804@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: erwin
Date: Mon Feb  9 03:20:10 2015
New Revision: 378708
URL: https://svnweb.freebsd.org/changeset/ports/378708
QAT: https://qat.redports.org/buildarchive/r378708/

Log:
  Add beta version of softhsm2, Software implementation of a
  Hardware Security Module (HSM)
  
  PR:		196096
  Submitted by:	Jaap Akkerhuis <jaap@NLnetLabs.nl>

Added:
  head/security/softhsm2/
     - copied from r378707, head/security/softhsm/
Modified:
  head/security/Makefile
  head/security/softhsm2/Makefile
  head/security/softhsm2/distinfo
  head/security/softhsm2/pkg-descr
  head/security/softhsm2/pkg-plist

Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile	Mon Feb  9 02:28:38 2015	(r378707)
+++ head/security/Makefile	Mon Feb  9 03:20:10 2015	(r378708)
@@ -957,6 +957,7 @@
     SUBDIR += snortsam
     SUBDIR += snortsnarf
     SUBDIR += softhsm
+    SUBDIR += softhsm2
     SUBDIR += spass
     SUBDIR += spike-proxy
     SUBDIR += spybye

Modified: head/security/softhsm2/Makefile
==============================================================================
--- head/security/softhsm/Makefile	Mon Feb  9 02:28:38 2015	(r378707)
+++ head/security/softhsm2/Makefile	Mon Feb  9 03:20:10 2015	(r378708)
@@ -2,24 +2,51 @@
 # $FreeBSD$
 
 PORTNAME=	softhsm
-PORTVERSION=	1.3.7
-PORTREVISION=	2
+PORTVERSION=	2.0.0.b1
 CATEGORIES=	security
-MASTER_SITES=	http://dist.opendnssec.org/source/
+MASTER_SITES=	http://dist.opendnssec.org/source/ \
+		http://dist.opendnssec.org/source/testing/
+PKGNAMESUFFIX=	2
+DISTNAME=	softhsm-2.0.0b1
 
 MAINTAINER=	jaap@NLnetLabs.nl
 COMMENT=	Software implementation of a Hardware Security Module (HSM)
 
 LICENSE=	BSD2CLAUSE
 
-LIB_DEPENDS=	libbotan-1.10.so:${PORTSDIR}/security/botan110 \
-		libsqlite3.so:${PORTSDIR}/databases/sqlite3
+LIB_DEPENDS+=	libsqlite3.so:${PORTSDIR}/databases/sqlite3
 
 GNU_CONFIGURE=	yes
-CONFIGURE_ARGS=	--with-botan=${LOCALBASE} --with-sqlite3=${LOCALBASE} \
-		--localstatedir=/var
+
+CONFIGURE_ARGS+=	--with-sqlite3=${LOCALBASE}
 INSTALL_TARGET=	install-strip
 USES=		libtool
+
+CONFLICTS=	softhsm-1.*
+
 USE_LDCONFIG=	yes
+USE_SQLITE=	yes
+
+OPTIONS_SINGLE=		CRYP
+OPTIONS_SINGLE_CRYP=	CRYP_OPEN CRYP_BOTAN
+
+CRYP_OPEN_DESC=		Build with OpenSSL crypto library
+CRYP_BOTAN_DESC=	Build with Botan crypto library
+
+OPTIONS_DEFAULT=	CRYP_OPEN
+
+CRYP_BOTAN_CONFIGURE_WITH=	crypto-backend=botan
+
+.include <bsd.port.options.mk>
+
+.if ${PORT_OPTIONS:MCRYP_BOTAN}
+LIB_DEPENDS+=	libbotan-1.10.so:${PORTSDIR}/security/botan110
+.endif
+
+.if ${PORT_OPTIONS:MCRYP_OPEN}
+USE_OPENSSL=	yes
+WITH_OPENSSL_PORT=	yes
+CONFIGURE_ARGS+=	--with-crypto-backend=openssl
+.endif
 
 .include <bsd.port.mk>

Modified: head/security/softhsm2/distinfo
==============================================================================
--- head/security/softhsm/distinfo	Mon Feb  9 02:28:38 2015	(r378707)
+++ head/security/softhsm2/distinfo	Mon Feb  9 03:20:10 2015	(r378708)
@@ -1,2 +1,2 @@
-SHA256 (softhsm-1.3.7.tar.gz) = d12d6456a85561266d9da427565f3ee3746a35df6670d5e6be75de253c2810a4
-SIZE (softhsm-1.3.7.tar.gz) = 438437
+SHA256 (softhsm-2.0.0b1.tar.gz) = b72ffae3feadbc669eecb58f4da5dce7e5124e666173e816ae58f98824515ae6
+SIZE (softhsm-2.0.0b1.tar.gz) = 922134

Modified: head/security/softhsm2/pkg-descr
==============================================================================
--- head/security/softhsm/pkg-descr	Mon Feb  9 02:28:38 2015	(r378707)
+++ head/security/softhsm2/pkg-descr	Mon Feb  9 03:20:10 2015	(r378708)
@@ -1,7 +1,8 @@
 SoftHSM is an implementation of a cryptographic store accessible
 through a PKCS #11 interface. You can use it to explore PKCS #11
 without having a Hardware Security Module. It is being developed
-as a part of the OpenDNSSEC project. SoftHSM uses Botan for its
-cryptographic operations.
+as a part of the OpenDNSSEC project. SoftHSM Version 2 is using
+openssl for its cryptographic operations.
+
 
 WWW: http://www.opendnssec.org/

Modified: head/security/softhsm2/pkg-plist
==============================================================================
--- head/security/softhsm/pkg-plist	Mon Feb  9 02:28:38 2015	(r378707)
+++ head/security/softhsm2/pkg-plist	Mon Feb  9 03:20:10 2015	(r378708)
@@ -1,11 +1,17 @@
-bin/softhsm
-bin/softhsm-keyconv
-@sample etc/softhsm.conf.sample
-lib/softhsm/libsofthsm.a
-lib/softhsm/libsofthsm.so
-@dirrm lib/softhsm
-man/man1/softhsm-keyconv.1.gz
-man/man1/softhsm.1.gz
-man/man5/softhsm.conf.5.gz
-@dir(,,700) /var/lib/softhsm
-@dir /var/lib
+bin/softhsm2-dump-file
+bin/softhsm2-keyconv
+bin/softhsm2-util
+%%ETCDIR%%2.conf
+%%ETCDIR%%2.conf.sample
+lib/softhsm/libsofthsm2.a
+lib/softhsm/libsofthsm2.so
+man/man1/softhsm2-dump-db.1.gz
+man/man1/softhsm2-dump-file.1.gz
+man/man1/softhsm2-keyconv.1.gz
+man/man1/softhsm2-util.1.gz
+man/man5/softhsm2.conf.5.gz
+@dir lib/softhsm
+@dir var/lib/softhsm/tokens
+@dir var/lib/softhsm
+@dir var/lib
+@dir var



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201502090320.t193KBIq083804>