Set _BSD_SOURCE for issetugid(2) and friends. Fix time_t format string. Install ${SYSCONFDIR}/pkcs11/pkcs11.conf.example.
47 lines
1.0 KiB
Makefile
Executable File
47 lines
1.0 KiB
Makefile
Executable File
# $OpenBSD: Makefile,v 1.59 2020/12/14 07:59:31 ajacoutot Exp $
|
|
|
|
COMMENT= library for loading and enumerating PKCS\#11 modules
|
|
|
|
GH_PROJECT= p11-kit
|
|
GH_ACCOUNT= p11-glue
|
|
GH_TAGNAME= 0.23.22
|
|
REVISION= 0
|
|
|
|
CATEGORIES= security
|
|
|
|
SHARED_LIBS += p11-kit 3.0 # 0.3.0
|
|
|
|
HOMEPAGE= http://p11-glue.freedesktop.org/
|
|
|
|
MAINTAINER= Antoine Jacoutot <ajacoutot@openbsd.org>
|
|
|
|
# BSD-like
|
|
PERMIT_PACKAGE= Yes
|
|
|
|
WANTLIB += c ffi pthread tasn1
|
|
|
|
MODULES= devel/meson
|
|
|
|
CFLAGS += -pthread
|
|
|
|
BUILD_DEPENDS= devel/gettext,-tools \
|
|
shells/bash-completion
|
|
|
|
LIB_DEPENDS= devel/libffi \
|
|
security/libtasn1
|
|
|
|
CONFIGURE_ARGS= -Dmodule_path=${PREFIX}/lib/pkcs11 \
|
|
-Dtrust_paths=/etc/ssl/cert.pem \
|
|
-Dsystemd=disabled
|
|
|
|
DEBUG_PACKAGES= ${BUILD_PACKAGES}
|
|
|
|
post-install:
|
|
${INSTALL_DATA_DIR} ${PREFIX}/share/examples/p11-kit/
|
|
mv ${WRKINST}${SYSCONFDIR}/pkcs11 \
|
|
${PREFIX}/share/examples/p11-kit/
|
|
# see the install-exec-hook target in p11-kit/Makefile.am
|
|
ln -sf libp11-kit.so.${LIBp11-kit_VERSION} ${PREFIX}/lib/p11-kit-proxy.so
|
|
|
|
.include <bsd.port.mk>
|