From 3b716ffb7be83c83aeefc9028eb8334da108d23b Mon Sep 17 00:00:00 2001 From: bjs Date: Thu, 30 Oct 2008 03:32:19 +0000 Subject: 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. --- security/pakchois/DESCR | 22 ++++++++++++++++++++++ security/pakchois/Makefile | 32 ++++++++++++++++++++++++++++++++ security/pakchois/PLIST | 6 ++++++ security/pakchois/buildlink3.mk | 22 ++++++++++++++++++++++ security/pakchois/distinfo | 5 +++++ 5 files changed, 87 insertions(+) create mode 100644 security/pakchois/DESCR create mode 100644 security/pakchois/Makefile create mode 100644 security/pakchois/PLIST create mode 100644 security/pakchois/buildlink3.mk create mode 100644 security/pakchois/distinfo (limited to 'security/pakchois') 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 -- cgit v1.2.3