summaryrefslogtreecommitdiff
path: root/security/pakchois
diff options
context:
space:
mode:
authorbjs <bjs>2008-10-30 03:32:19 +0000
committerbjs <bjs>2008-10-30 03:32:19 +0000
commit8185653858c9b61ee2563aa46983d6beeffeda16 (patch)
tree427c3c05d6297e002682f44f45cf2e93ea2a46aa /security/pakchois
parent8550af8fa731479e9603d3b902773427ac300a58 (diff)
downloadpkgsrc-8185653858c9b61ee2563aa46983d6beeffeda16.tar.gz
Add pakchois-0.4. (upcoming new neon can use it)
-- pakchois is just another PKCS#11 wrapper library. pakchois aims to provide a thin wrapper over the PKCS#11 interface. The goals are: 1) to offer a modern* object-oriented C interface wrapper for PKCS#11. 2) to not hide or abstract away any details of the PKCS#11 interface itself except where absolutely necessary. 3) to handle the details of loading DSOs 4) to allow the caller to avoid caring about where on the system PKCS#11 modules might be stored, or exactly how they are named. 5) to avoid any dependency on a particular cryptography toolkit. Existing PKCS#11 wrapper libraries solutions differ in at least one of the above goals. *: "modern" being a euphemism for not using process-global state, having a sane symbol namespace, etc.
Diffstat (limited to 'security/pakchois')
-rw-r--r--security/pakchois/DESCR22
-rw-r--r--security/pakchois/Makefile32
-rw-r--r--security/pakchois/PLIST6
-rw-r--r--security/pakchois/buildlink3.mk22
-rw-r--r--security/pakchois/distinfo5
5 files changed, 87 insertions, 0 deletions
diff --git a/security/pakchois/DESCR b/security/pakchois/DESCR
new file mode 100644
index 00000000000..50a32edc0c4
--- /dev/null
+++ b/security/pakchois/DESCR
@@ -0,0 +1,22 @@
+pakchois is just another PKCS#11 wrapper library. pakchois aims to
+provide a thin wrapper over the PKCS#11 interface.
+
+The goals are:
+
+1) to offer a modern* object-oriented C interface wrapper for PKCS#11.
+
+2) to not hide or abstract away any details of the PKCS#11 interface
+itself except where absolutely necessary.
+
+3) to handle the details of loading DSOs
+
+4) to allow the caller to avoid caring about where on the system
+PKCS#11 modules might be stored, or exactly how they are named.
+
+5) to avoid any dependency on a particular cryptography toolkit.
+
+Existing PKCS#11 wrapper libraries solutions differ in at least one of
+the above goals.
+
+*: "modern" being a euphemism for not using process-global state,
+having a sane symbol namespace, etc.
diff --git a/security/pakchois/Makefile b/security/pakchois/Makefile
new file mode 100644
index 00000000000..59640cd0476
--- /dev/null
+++ b/security/pakchois/Makefile
@@ -0,0 +1,32 @@
+# $NetBSD: Makefile,v 1.1.1.1 2008/10/30 03:32:19 bjs Exp $
+#
+
+DISTNAME= pakchois-0.4
+CATEGORIES= security
+MASTER_SITES= http://www.manyfish.co.uk/pakchois/
+
+MAINTAINER= pkgsrc-users@NetBSD.org
+HOMEPAGE= http://www.manyfish.co.uk/pakchois/
+COMMENT= PKCS#11 wrapper library
+
+PKG_DESTDIR_SUPPORT= user-destdir
+
+GNU_CONFIGURE= yes
+USE_LIBTOOL= yes
+USE_TOOLS+= gmake pkg-config
+
+CONFIGURE_ARGS+= --enable-dlopen
+
+PKGCONFIG_OVERRIDE+= pakchois.pc.in
+
+PTHREAD_OPTS+= require
+PKG_PTHREAD_FLAGS= ${PTHREAD_LDFLAGS} ${PTHREAD_LIBS}
+
+BROKEN_GETTEXT_DETECTION= yes
+BUILDLINK_TRANSFORM+= opt:-ldl:${BUILDLINK_LDADD.dl:M*}
+BUILDLINK_TRANSFORM+= opt:-lpthread:${PKG_PTHREAD_FLAGS:M*}
+
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+.include "../../mk/pthread.buildlink3.mk"
+.include "../../mk/bsd.pkg.mk"
diff --git a/security/pakchois/PLIST b/security/pakchois/PLIST
new file mode 100644
index 00000000000..3c1bcdc5dce
--- /dev/null
+++ b/security/pakchois/PLIST
@@ -0,0 +1,6 @@
+@comment $NetBSD: PLIST,v 1.1.1.1 2008/10/30 03:32:19 bjs Exp $
+include/pakchois/pakchois.h
+include/pakchois/pakchois11.h
+lib/libpakchois.la
+lib/pkgconfig/pakchois.pc
+@dirrm include/pakchois
diff --git a/security/pakchois/buildlink3.mk b/security/pakchois/buildlink3.mk
new file mode 100644
index 00000000000..b2b505d783e
--- /dev/null
+++ b/security/pakchois/buildlink3.mk
@@ -0,0 +1,22 @@
+# $NetBSD: buildlink3.mk,v 1.1.1.1 2008/10/30 03:32:19 bjs Exp $
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH}+
+PAKCHOIS_BUILDLINK3_MK:= ${PAKCHOIS_BUILDLINK3_MK}+
+
+.if ${BUILDLINK_DEPTH} == "+"
+BUILDLINK_DEPENDS+= pakchois
+.endif
+
+BUILDLINK_PACKAGES:= ${BUILDLINK_PACKAGES:Npakchois}
+BUILDLINK_PACKAGES+= pakchois
+BUILDLINK_ORDER:= ${BUILDLINK_ORDER} ${BUILDLINK_DEPTH}pakchois
+
+.if ${PAKCHOIS_BUILDLINK3_MK} == "+"
+BUILDLINK_API_DEPENDS.pakchois+= pakchois>=0.4
+BUILDLINK_PKGSRCDIR.pakchois?= ../../security/pakchois
+.endif # PAKCHOIS_BUILDLINK3_MK
+
+.include "../../devel/gettext-lib/buildlink3.mk"
+.include "../../mk/dlopen.buildlink3.mk"
+
+BUILDLINK_DEPTH:= ${BUILDLINK_DEPTH:S/+$//}
diff --git a/security/pakchois/distinfo b/security/pakchois/distinfo
new file mode 100644
index 00000000000..4cc09b42f6f
--- /dev/null
+++ b/security/pakchois/distinfo
@@ -0,0 +1,5 @@
+$NetBSD: distinfo,v 1.1.1.1 2008/10/30 03:32:19 bjs Exp $
+
+SHA1 (pakchois-0.4.tar.gz) = dea8a9a50ec06595b498bdefd1daacdb86e9ceda
+RMD160 (pakchois-0.4.tar.gz) = 354c4bb62645c12349a441153a4979cae04a4403
+Size (pakchois-0.4.tar.gz) = 371126 bytes