summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorpettai <pettai>2010-03-13 17:47:56 +0000
committerpettai <pettai>2010-03-13 17:47:56 +0000
commit7468b11c348a742e3fe36822bd2facb9c0db88ed (patch)
tree17711e8bec85f92d0a3385df9eaf74fb945a4a9c /security
parenta49bfa1e2bee67caaa963a9eafe5e91a63a44fd0 (diff)
downloadpkgsrc-7468b11c348a742e3fe36822bd2facb9c0db88ed.tar.gz
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.
Diffstat (limited to 'security')
-rw-r--r--security/softhsm/DESCR4
-rw-r--r--security/softhsm/Makefile45
-rw-r--r--security/softhsm/PLIST9
-rw-r--r--security/softhsm/buildlink3.mk15
-rw-r--r--security/softhsm/distinfo6
-rw-r--r--security/softhsm/options.mk14
-rw-r--r--security/softhsm/patches/patch-aa29
7 files changed, 122 insertions, 0 deletions
diff --git a/security/softhsm/DESCR b/security/softhsm/DESCR
new file mode 100644
index 00000000000..5282e11fad9
--- /dev/null
+++ b/security/softhsm/DESCR
@@ -0,0 +1,4 @@
+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.
diff --git a/security/softhsm/Makefile b/security/softhsm/Makefile
new file mode 100644
index 00000000000..734630b064b
--- /dev/null
+++ b/security/softhsm/Makefile
@@ -0,0 +1,45 @@
+# $NetBSD: Makefile,v 1.1.1.1 2010/03/13 17:47:56 pettai Exp $
+#
+
+DISTNAME= softhsm-1.1.3
+CATEGORIES= security
+MASTER_SITES= http://www.opendnssec.org/files/source/
+
+MAINTAINER= pettai@nordu.net
+HOMEPAGE= http://www.opendnssec.se/wiki/SoftHSM/
+COMMENT= Cryptographic store accessible through a PKCS#11 interface
+LICENSE= 2-clause-bsd
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+BUILD_DEFS+= VARBASE
+
+USE_LANGUAGES= c c++
+USE_LIBTOOL= yes
+
+GNU_CONFIGURE= yes
+CONFIGURE_ARGS+= --prefix=${PREFIX:Q}
+CONFIGURE_ARGS+= --localstatedir=${VARBASE}
+
+EGDIR= ${PREFIX}/share/examples/softhsm
+
+SUBST_CLASSES+= paths
+SUBST_FILES.paths= ${WRKSRC}/Makefile.in
+SUBST_STAGE.paths= post-patch
+SUBST_SED.paths= -e 's,@EGDIR@,${EGDIR},'
+
+CXXFLAGS.NetBSD+= -D_NETBSD_SOURCE
+
+CONF_FILES= ${EGDIR}/softhsm.conf ${PKG_SYSCONFDIR}/softhsm.conf
+
+INSTALLATION_DIRS= ${EGDIR} ${VARBASE}/softhsm
+INSTALLATION_DIRS+= etc bin lib
+
+.include "options.mk"
+
+pre-install:
+ ${INSTALL_DATA} ${WRKSRC}/softhsm.conf ${DESTDIR}${EGDIR}
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../security/botan/buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/softhsm/PLIST b/security/softhsm/PLIST
new file mode 100644
index 00000000000..f5ef53bc4c3
--- /dev/null
+++ b/security/softhsm/PLIST
@@ -0,0 +1,9 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2010/03/13 17:47:56 pettai Exp $
+bin/softhsm
+bin/softhsm-keyconv
+lib/libsofthsm.la
+man/man1/softhsm-keyconv.1
+man/man1/softhsm.1
+man/man5/softhsm.conf.5
+share/examples/softhsm/softhsm.conf
+share/examples/softhsm/softhsm.conf.sample
diff --git a/security/softhsm/buildlink3.mk b/security/softhsm/buildlink3.mk
new file mode 100644
index 00000000000..6a7fd2574f0
--- /dev/null
+++ b/security/softhsm/buildlink3.mk
@@ -0,0 +1,15 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2010/03/13 17:47:56 pettai Exp $
+
+BUILDLINK_TREE+= softhsm
+
+.if !defined(SOFTHSM_BUILDLINK3_MK)
+SOFTHSM_BUILDLINK3_MK:=
+
+BUILDLINK_API_DEPENDS.softhsm+= softhsm>=1.1.1
+BUILDLINK_PKGSRCDIR.softhsm?= ../../wip/softhsm
+
+.include "../../databases/sqlite3/buildlink3.mk"
+.include "../../security/botan/buildlink3.mk"
+.endif # SOFTHSM_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -softhsm
diff --git a/security/softhsm/distinfo b/security/softhsm/distinfo
new file mode 100644
index 00000000000..ba0bde199cd
--- /dev/null
+++ b/security/softhsm/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1.1.1 2010/03/13 17:47:56 pettai Exp $
+
+SHA1 (softhsm-1.1.3.tar.gz) = 042deb3027262e8f890b92f5ad633f1ca0d84e5c
+RMD160 (softhsm-1.1.3.tar.gz) = b955d9fd3cfd03126108d12845df4d658ec236b8
+Size (softhsm-1.1.3.tar.gz) = 392508 bytes
+SHA1 (patch-aa) = 5277cf016704aad9b96e7a38b4432a59c9eadb73
diff --git a/security/softhsm/options.mk b/security/softhsm/options.mk
new file mode 100644
index 00000000000..3c307271ccc
--- /dev/null
+++ b/security/softhsm/options.mk
@@ -0,0 +1,14 @@
+# $NetBSD: options.mk,v 1.1.1.1 2010/03/13 17:47:56 pettai Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.softhsm
+PKG_SUPPORTED_OPTIONS= sigver
+PKG_SUGGESTED_OPTIONS=
+
+.include "../../mk/bsd.options.mk"
+
+###
+### Signature verification for debugging
+###
+.if !empty(PKG_OPTIONS:Msigver)
+CONFIGURE_ARGS+= --enable-sigver
+.endif
diff --git a/security/softhsm/patches/patch-aa b/security/softhsm/patches/patch-aa
new file mode 100644
index 00000000000..189791fc1e1
--- /dev/null
+++ b/security/softhsm/patches/patch-aa
@@ -0,0 +1,29 @@
+$NetBSD: patch-aa,v 1.1.1.1 2010/03/13 17:47:56 pettai Exp $
+
+--- Makefile.in.orig 2009-12-22 23:14:34.000000000 +0100
++++ Makefile.in 2009-12-22 23:16:23.000000000 +0100
+@@ -256,6 +256,7 @@
+ softhsmdbdir = @softhsmdbdir@
+ srcdir = @srcdir@
+ sysconfdir = @sysconfdir@
++EGDIR = @EGDIR@
+ target_alias = @target_alias@
+ top_build_prefix = @top_build_prefix@
+ top_builddir = @top_builddir@
+@@ -833,11 +834,11 @@
+
+
+ install-data-hook:
+- test -d ${sysconfdir} || \
+- ${INSTALL} -d ${DESTDIR}${sysconfdir}
+- test -f ${sysconfdir}/softhsm.conf || \
+- ${INSTALL_DATA} ${top_builddir}/softhsm.conf ${DESTDIR}${sysconfdir}
+- ${INSTALL_DATA} ${top_builddir}/softhsm.conf ${DESTDIR}${sysconfdir}/softhsm.conf.sample
++ test -d ${EGDIR} || \
++ ${INSTALL} -d ${DESTDIR}${EGDIR}
++ test -f ${EGDIR}/softhsm.conf || \
++ ${INSTALL_DATA} ${top_builddir}/softhsm.conf ${DESTDIR}${EGDIR}
++ ${INSTALL_DATA} ${top_builddir}/softhsm.conf ${DESTDIR}${EGDIR}/softhsm.conf.sample
+ test -d ${softhsmdbdir} || \
+ ${INSTALL} -d -m 700 ${DESTDIR}${softhsmdbdir}
+