Mk/Uses/alias.mk was an attempt for compat with DPorts, but has rotted. This feature was never documented in the PHB, so there is no work to be done by the docs@ team. Nothing against DragonFly, but if DPorts still needs FreeBSD 9 support, they really should work that out with upstream projects. Ultimately, we don't need to keep carrying this outdated feature that doesn't affect us.
68 lines
1.8 KiB
Makefile
68 lines
1.8 KiB
Makefile
PORTNAME= opencryptoki
|
|
PORTVERSION= 3.19.0
|
|
DISTVERSIONPREFIX= v
|
|
PORTREVISION= 1
|
|
CATEGORIES= security
|
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
|
COMMENT= Open PKCS\#11 implementation library
|
|
WWW= https://sourceforge.net/projects/opencryptoki/
|
|
|
|
LICENSE= CPL
|
|
LICENSE_NAME= Common Public License
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
LIB_DEPENDS= libtspi.so:security/trousers \
|
|
libepoll-shim.so:devel/libepoll-shim
|
|
|
|
USES= autoreconf bison gmake ldap libtool localbase ssl tar:tgz
|
|
USE_LDCONFIG= ${PREFIX}/lib/opencryptoki
|
|
USE_GITHUB= yes
|
|
GNU_CONFIGURE= yes
|
|
GNU_CONFIGURE_MANPREFIX= ${PREFIX}/share
|
|
CONFIGURE_ENV= LOCALBASE=${LOCALBASE}
|
|
CONFIGURE_ARGS= --enable-swtok \
|
|
--enable-tpmtok \
|
|
--enable-icsftok \
|
|
--disable-crtok \
|
|
--disable-aeptok \
|
|
--disable-ccatok \
|
|
--disable-bcomtok \
|
|
--disable-pkcscca_migrate \
|
|
--with-lockdir=/var/run/opencryptoki \
|
|
--with-logdir=/var/log/opencryptoki \
|
|
--localstatedir=/var \
|
|
--with-openssl=${OPENSSLBASE} \
|
|
--with-pkcs11user=${USERS} \
|
|
--with-pkcs11group=${GROUPS} \
|
|
ac_cv_path_CHGRP=true
|
|
INSTALL_TARGET= install-strip
|
|
USE_RC_SUBR= pkcsslotd
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= USERS="${USERS}" GROUPS="${GROUPS}"
|
|
PLIST_SUB= USERS="${USERS}" GROUPS="${GROUPS}"
|
|
USERS= _pkcs11
|
|
GROUPS= _pkcs11
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${OPSYS} == FreeBSD
|
|
CFLAGS+= -Wno-error=int-conversion
|
|
.endif
|
|
|
|
post-patch:
|
|
cd ${WRKSRC} && \
|
|
${REINPLACE_CMD} 's,%%DLLDIR%%,${PREFIX}/lib/opencryptoki/stdll,' \
|
|
usr/sbin/pkcsslotd/opencryptoki.conf
|
|
|
|
post-install:
|
|
${MV} ${STAGEDIR}${DOCSDIR}/strength-example.conf \
|
|
${STAGEDIR}${ETCDIR}/strength.conf.sample
|
|
${MV} ${STAGEDIR}${DOCSDIR}/policy-example.conf \
|
|
${STAGEDIR}${ETCDIR}/policy.conf.sample
|
|
${RMDIR} ${STAGEDIR}/var/run/opencryptoki/* \
|
|
${STAGEDIR}/var/run/opencryptoki
|
|
|
|
.include <bsd.port.post.mk>
|