security/tpm2-pkcs11: New port
Sponsored by: Serenity Cybersecurity, LLC
This commit is contained in:
parent
b228375db2
commit
e94d07c580
|
@ -1327,6 +1327,7 @@
|
|||
SUBDIR += tpm-quote-tools
|
||||
SUBDIR += tpm-tools
|
||||
SUBDIR += tpm2-abrmd
|
||||
SUBDIR += tpm2-pkcs11
|
||||
SUBDIR += tpm2-tools
|
||||
SUBDIR += tpm2-tss
|
||||
SUBDIR += transcrypt
|
||||
|
|
|
@ -0,0 +1,29 @@
|
|||
PORTNAME= tpm2-pkcs11
|
||||
PORTVERSION= 1.9.0
|
||||
CATEGORIES= security
|
||||
MASTER_SITES= https://github.com/tpm2-software/tpm2-pkcs11/releases/download/${PORTVERSION}/
|
||||
|
||||
MAINTAINER= arrowd@FreeBSD.org
|
||||
COMMENT= PKCS\#11 interface for TPM2 hardware
|
||||
WWW= https://tpm2-software.github.io/software/
|
||||
|
||||
LICENSE= BSD2CLAUSE
|
||||
LICENSE_FILE= ${WRKSRC}/LICENSE
|
||||
|
||||
LIB_DEPENDS= libyaml.so:textproc/libyaml \
|
||||
libtss2-esys.so:security/tpm2-tss
|
||||
|
||||
USES= libtool pkgconfig sqlite:3 ssl
|
||||
|
||||
GNU_CONFIGURE= yes
|
||||
INSTALL_TARGET= install-strip
|
||||
TEST_TARGET= check-TESTS
|
||||
|
||||
OPTIONS_DEFINE= TEST
|
||||
|
||||
TEST_USES= python:3.9+
|
||||
TEST_CONFIGURE_ENABLE= ptool-checks unit
|
||||
TEST_LIB_DEPENDS= libcmocka.so:sysutils/cmocka
|
||||
TEST_RUN_DEPENDS= dbus-run-session:devel/dbus
|
||||
|
||||
.include <bsd.port.mk>
|
|
@ -0,0 +1,3 @@
|
|||
TIMESTAMP = 1704652212
|
||||
SHA256 (tpm2-pkcs11-1.9.0.tar.gz) = 35bf06c30cfa76fc0eba2c5f503cf7dd0d34a66afb2d292fee896b90362f633b
|
||||
SIZE (tpm2-pkcs11-1.9.0.tar.gz) = 1396590
|
|
@ -0,0 +1,11 @@
|
|||
--- src/lib/db.c.orig 2023-01-20 15:32:09 UTC
|
||||
+++ src/lib/db.c
|
||||
@@ -12,8 +12,6 @@
|
||||
#include <libgen.h>
|
||||
#include <unistd.h>
|
||||
|
||||
-#include <linux/limits.h>
|
||||
-
|
||||
#include <sys/file.h>
|
||||
#include <sys/stat.h>
|
||||
#include <sys/types.h>
|
|
@ -0,0 +1,10 @@
|
|||
--- src/lib/twist.c.orig 2021-09-29 17:04:30 UTC
|
||||
+++ src/lib/twist.c
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
#include <config.h>
|
||||
|
||||
-#include <alloca.h>
|
||||
#include <ctype.h>
|
||||
#include <stdint.h>
|
||||
#include <stdarg.h>
|
|
@ -0,0 +1,3 @@
|
|||
PKCS #11 is a Public-Key Cryptography Standard that defines a standard method to
|
||||
access cryptographic services from tokens/devices. This package allows to use
|
||||
a TPM2 device as the cryptographic token.
|
|
@ -0,0 +1,4 @@
|
|||
lib/libtpm2_pkcs11.so
|
||||
lib/libtpm2_pkcs11.so.0
|
||||
lib/libtpm2_pkcs11.so.0.0.0
|
||||
libdata/pkgconfig/tpm2-pkcs11.pc
|
Loading…
Reference in New Issue