summaryrefslogtreecommitdiff
path: root/security
diff options
context:
space:
mode:
authorspz <spz>2009-09-15 20:03:47 +0000
committerspz <spz>2009-09-15 20:03:47 +0000
commit18bdf330551fb7d3f9d5b8b431f1ed67d5ad3a56 (patch)
tree8c9f254ee09469867eb9e6e4f25ad471bfae23f1 /security
parent65fe89597e4fcc2d40ae9bfa338967da343956b8 (diff)
downloadpkgsrc-18bdf330551fb7d3f9d5b8b431f1ed67d5ad3a56.tar.gz
take wip/pkcs11-helper as generated by Daniel 'morr' Horecki <shinden@@linux.pl>
add options, DESTDIR, LICENSE and other small updates to pkgsrc-current
Diffstat (limited to 'security')
-rw-r--r--security/pkcs11-helper/DESCR2
-rw-r--r--security/pkcs11-helper/Makefile26
-rw-r--r--security/pkcs11-helper/PLIST19
-rw-r--r--security/pkcs11-helper/buildlink3.mk27
-rw-r--r--security/pkcs11-helper/distinfo6
-rw-r--r--security/pkcs11-helper/options.mk30
6 files changed, 110 insertions, 0 deletions
diff --git a/security/pkcs11-helper/DESCR b/security/pkcs11-helper/DESCR
new file mode 100644
index 00000000000..df10d21ba56
--- /dev/null
+++ b/security/pkcs11-helper/DESCR
@@ -0,0 +1,2 @@
+Library that simplifies the interaction with PKCS#11 providers for end-user
+applications using a simple API and optional OpenSSL engine.
diff --git a/security/pkcs11-helper/Makefile b/security/pkcs11-helper/Makefile
new file mode 100644
index 00000000000..ef0c36c9c41
--- /dev/null
+++ b/security/pkcs11-helper/Makefile
@@ -0,0 +1,26 @@
+# $NetBSD: Makefile,v 1.1 2009/09/15 20:03:47 spz Exp $
+#
+
+DISTNAME= pkcs11-helper-1.06
+CATEGORIES= security
+MASTER_SITES= http://www.opensc-project.org/files/pkcs11-helper/
+EXTRACT_SUFX= .tar.bz2
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.opensc-project.org/pkcs11-helper/
+COMMENT= Library that simplifies the interaction with PKCS#11
+LICENSE= modified-bsd # OR gnu-gpl-v2
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= pkg-config autoconf gmake autoreconf
+
+PKGCONFIG_OVERRIDE+= lib/libpkcs11-helper-1.pc.in
+
+pre-configure:
+ cd ${WRKSRC} && autoreconf
+
+.include "options.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/pkcs11-helper/PLIST b/security/pkcs11-helper/PLIST
new file mode 100644
index 00000000000..b3dfe82886d
--- /dev/null
+++ b/security/pkcs11-helper/PLIST
@@ -0,0 +1,19 @@
+@comment $NetBSD: PLIST,v 1.1 2009/09/15 20:03:47 spz Exp $
+include/pkcs11-helper-1.0/pkcs11.h
+include/pkcs11-helper-1.0/pkcs11h-certificate.h
+include/pkcs11-helper-1.0/pkcs11h-core.h
+include/pkcs11-helper-1.0/pkcs11h-data.h
+include/pkcs11-helper-1.0/pkcs11h-def.h
+include/pkcs11-helper-1.0/pkcs11h-engines.h
+include/pkcs11-helper-1.0/pkcs11h-openssl.h
+include/pkcs11-helper-1.0/pkcs11h-token.h
+include/pkcs11-helper-1.0/pkcs11h-version.h
+lib/libpkcs11-helper.la
+lib/pkgconfig/libpkcs11-helper-1.pc
+man/man8/pkcs11-helper-1.8
+share/aclocal/pkcs11-helper-1.m4
+share/doc/pkcs11-helper/COPYING
+share/doc/pkcs11-helper/COPYING.BSD
+share/doc/pkcs11-helper/COPYING.GPL
+share/doc/pkcs11-helper/README
+@exec ${MKDIR} %D/share/doc/pkcs11-helper/api
diff --git a/security/pkcs11-helper/buildlink3.mk b/security/pkcs11-helper/buildlink3.mk
new file mode 100644
index 00000000000..06e81099832
--- /dev/null
+++ b/security/pkcs11-helper/buildlink3.mk
@@ -0,0 +1,27 @@
+# $NetBSD: buildlink3.mk,v 1.1 2009/09/15 20:03:47 spz Exp $
+
+BUILDLINK_TREE+= pkcs11-helper
+
+.if !defined(PKCS11_HELPER_BUILDLINK3_MK)
+PKCS11_HELPER_BUILDLINK3_MK:=
+
+BUILDLINK_DEPMETHOD.pkcs11-helper?= build
+BUILDLINK_API_DEPENDS.pkcs11-helper+= pkcs11-helper>=1.06
+BUILDLINK_PKGSRCDIR.pkcs11-helper?= ../../security/pkcs11-helper
+
+pkgbase := pkcs11-helper
+.include "../../mk/pkg-build-options.mk"
+
+.if !empty(PKG_BUILD_OPTIONS.pkcs11-helper:Mopenssl)
+. include "../../security/openssl/buildlink3.mk"
+.endif
+.if !empty(PKG_BUILD_OPTIONS.pkcs11-helper:Mgnutls)
+. include "../../security/gnutls/buildlink3.mk"
+.endif
+.if !empty(PKG_BUILD_OPTIONS.pkcs11-helper:Mnss)
+. include "../../devel/nss/buildlink3.mk"
+.endif
+
+.endif # PKCS11_HELPER_BUILDLINK3_MK
+
+BUILDLINK_TREE+= -pkcs11-helper
diff --git a/security/pkcs11-helper/distinfo b/security/pkcs11-helper/distinfo
new file mode 100644
index 00000000000..139c56e3785
--- /dev/null
+++ b/security/pkcs11-helper/distinfo
@@ -0,0 +1,6 @@
+$NetBSD: distinfo,v 1.1 2009/09/15 20:03:47 spz Exp $
+
+SHA1 (pkcs11-helper-1.06.tar.bz2) = 5bd56d4001c4d6e0d1f60b5a467ee2490cdaf9f2
+RMD160 (pkcs11-helper-1.06.tar.bz2) = 0f599b76379ce6e481d235f0ff82f2b2cfddbed5
+Size (pkcs11-helper-1.06.tar.bz2) = 338705 bytes
+SHA1 (patch-aa) = 05294e1f777717a54dc63425edd5cb8c13a70978
diff --git a/security/pkcs11-helper/options.mk b/security/pkcs11-helper/options.mk
new file mode 100644
index 00000000000..6de94fe682b
--- /dev/null
+++ b/security/pkcs11-helper/options.mk
@@ -0,0 +1,30 @@
+# $NetBSD: options.mk,v 1.1 2009/09/15 20:03:47 spz Exp $
+
+PKG_OPTIONS_VAR= PKG_OPTIONS.pkcs11-helper
+PKG_SUPPORTED_OPTIONS= openssl gnutls nss
+PKG_SUGGESTED_OPTIONS= openssl
+
+.include "../../mk/bsd.options.mk"
+
+# crypto engines to use
+
+.if !empty(PKG_OPTIONS:Mopenssl)
+.include "../../security/openssl/buildlink3.mk"
+CONFIGURE_ARGS+=--enable-crypto-engine-openssl
+.else
+CONFIGURE_ARGS+=--disable-crypto-engine-openssl
+.endif
+
+.if !empty(PKG_OPTIONS:Mgnutls)
+.include "../../security/gnutls/buildlink3.mk"
+CONFIGURE_ARGS+=--enable-crypto-engine-gnutls
+.else
+CONFIGURE_ARGS+=--disable-crypto-engine-gnutls
+.endif
+
+.if !empty(PKG_OPTIONS:Mnss)
+.include "../../devel/nss/buildlink3.mk"
+CONFIGURE_ARGS+=--enable-crypto-engine-nss
+.else
+CONFIGURE_ARGS+=--disable-crypto-engine-nss
+.endif