freebsd-ports/security/opencryptoki/Makefile
Tijl Coosemans 6d324c1f70 - Remove inclusion of bsd.default-versions.mk from ftp/curl/Makefile so
bsd.default-versions.mk can rely on ARCH being defined.
- In bsd.port.mk move inclusion of bsd.default-versions.mk from the
  pre-makefile section to the options section so the variables can be used
  earlier.  Also put the bit of code sitting between the options section and
  the pre-makefile section into the options section.
- Remove last few cases where ports set WITH_OPENSSL_PORT.  This variable is
  handled in bsd.default-versions.mk and some ports were setting it after
  including bsd.port.options.mk.  After FreeBSD 9 EoL all but a few ports,
  and then only when setting non-default options, work without setting that
  variable.

PR:		215996
Exp-run by:	antoine
Approved by:	portmgr (antoine)
2017-02-05 21:20:24 +00:00

55 lines
1.5 KiB
Makefile

# Created by: Ralf Meister
# $FreeBSD$
PORTNAME= opencryptoki
PORTVERSION= 3.6
CATEGORIES= security
MASTER_SITES= SF
MAINTAINER= hrs@FreeBSD.org
COMMENT= Open PKCS\#11 implementation library
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
USES= alias autoreconf gmake libtool ssl tar:tgz
USE_LDCONFIG= ${PREFIX}/lib/opencryptoki
WRKSRC= ${WRKDIR}/${PORTNAME}
INSTALL_TARGET= install-strip
GNU_CONFIGURE= yes
CONFIGURE_ARGS= --enable-swtok --enable-tpmtok \
--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
CFLAGS+= -I${LOCALBASE}/include
LDFLAGS+= -L${LOCALBASE}/lib
USE_RC_SUBR= pkcsslotd
SUB_FILES= pkg-message
SUB_LIST= USERS="${USERS}" GROUPS="${GROUPS}"
PLIST_SUB= USERS="${USERS}" GROUPS="${GROUPS}"
USERS= _pkcs11
GROUPS= _pkcs11
OPTIONS_DEFINE= LDAP
OPTIONS_SUB= yes
LDAP_CONFIGURE_ENABLE= icsf
LDAP_USE= OPENLDAP=yes
post-install:
${MV} ${STAGEDIR}${ETCDIR}/opencryptoki.conf \
${STAGEDIR}${ETCDIR}/opencryptoki.conf.sample
${RMDIR} ${STAGEDIR}/var/run/opencryptoki/* \
${STAGEDIR}/var/run/opencryptoki
.include <bsd.port.mk>