take wip/pkcs11-helper as generated by Daniel 'morr' Horecki <shinden@@linux.pl>

add options, DESTDIR, LICENSE and other small updates to pkgsrc-current
This commit is contained in:
spz 2009-09-15 20:03:47 +00:00
parent 0bab02efa0
commit bc674bdb1d
6 changed files with 110 additions and 0 deletions

View file

@ -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.

View file

@ -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"

View file

@ -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

View file

@ -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

View file

@ -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

View file

@ -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