Files
ports/security/p11-kit/Makefile
T
Tijl Coosemans 8672992ef7 security/p11-kit: Use base system CA certificates
Drop dependency on ca_root_nss and use base system root certificates
instead.  This allows users to add their own certificates.

trust_paths now points to a directory and that directory contains
"anchors" and "blocklist" symlinks pointing to the base system
certificate directories.  This is based on the documentation from
https://p11-glue.github.io/p11-glue/p11-kit/manual/trust-module.html.
The list of certificates known to p11-kit can be verified by running
"trust list".

PR:		268841
Approved by:	novel (maintainer)
2023-02-01 12:05:18 +01:00

59 lines
1.6 KiB
Makefile

PORTNAME= p11-kit
DISTVERSION= 0.24.1
PORTREVISION= 2
CATEGORIES= security devel
MASTER_SITES= https://github.com/p11-glue/p11-kit/releases/download/${DISTVERSION}/
MAINTAINER= novel@FreeBSD.org
COMMENT= Library for loading and enumerating of PKCS\#11 modules
WWW= https://p11-glue.freedesktop.org/p11-kit.html
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/COPYING
BUILD_DEPENDS= bash-completion>=0:shells/bash-completion
LIB_DEPENDS= libffi.so:devel/libffi \
libtasn1.so:security/libtasn1
USES= cpe localbase meson pkgconfig tar:xz
USE_LDCONFIG= yes
CPE_VENDOR= p11-kit_project
MESON_ARGS= -Dbash_completion=enabled \
-Dlibffi=enabled \
-Dnls=false \
-Dtrust_module=enabled \
-Dtrust_paths=${DATADIR}/certs
OPTIONS_DEFINE= DOCS MANPAGES TEST
OPTIONS_SUB= yes
MANPAGES_IMPLIES= DOCS
OPTIONS_DEFAULT= MANPAGES
DOCS_BUILD_DEPENDS= gtkdoc-scan:textproc/gtk-doc
DOCS_USES= gnome
DOCS_USE= GNOME=glib20
DOCS_MESON_TRUE= gtk_doc
MANPAGES_BUILD_DEPENDS= xsltproc:textproc/libxslt
MANPAGES_MESON_TRUE= man
TEST_MESON_TRUE= test
.include <bsd.port.options.mk>
post-install:
${MKDIR} ${STAGEDIR}${EXAMPLESDIR}
${MV} ${STAGEDIR}${PREFIX}/etc/pkcs11/pkcs11.conf.example ${STAGEDIR}${EXAMPLESDIR}
${RMDIR} ${STAGEDIR}${PREFIX}/etc/pkcs11
${MKDIR} ${STAGEDIR}${DATADIR}/certs
${LN} -s /usr/share/certs/trusted ${STAGEDIR}${DATADIR}/certs/anchors
.if ${OPSYS} == FreeBSD && ${OSVERSION} < 1400024
${LN} -s /usr/share/certs/blacklisted ${STAGEDIR}${DATADIR}/certs/blocklist
.else
${LN} -s /usr/share/certs/untrusted ${STAGEDIR}${DATADIR}/certs/blocklist
.endif
.include <bsd.port.mk>