2013-03-29 20:33:41 +01:00
|
|
|
# Created by: Ralf Meister
|
2010-11-07 13:07:17 +01:00
|
|
|
# $FreeBSD$
|
|
|
|
|
|
|
|
PORTNAME= opencryptoki
|
2016-11-06 22:28:51 +01:00
|
|
|
PORTVERSION= 3.6
|
2018-03-14 08:54:36 +01:00
|
|
|
PORTREVISION= 1
|
2010-11-07 13:07:17 +01:00
|
|
|
CATEGORIES= security
|
2016-05-18 16:11:33 +02:00
|
|
|
MASTER_SITES= SF
|
2010-11-07 13:07:17 +01:00
|
|
|
|
2013-07-31 17:45:20 +02:00
|
|
|
MAINTAINER= hrs@FreeBSD.org
|
2013-03-29 20:33:41 +01:00
|
|
|
COMMENT= Open PKCS\#11 implementation library
|
2010-11-07 13:07:17 +01:00
|
|
|
|
2013-07-31 13:48:47 +02:00
|
|
|
LICENSE= CPL
|
|
|
|
LICENSE_NAME= Common Public License
|
|
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
|
|
|
|
|
2016-04-01 16:25:16 +02:00
|
|
|
LIB_DEPENDS= libtspi.so:security/trousers
|
2010-11-07 13:07:17 +01:00
|
|
|
|
2016-09-13 03:28:20 +02:00
|
|
|
USES= alias autoreconf gmake libtool ssl tar:tgz
|
2014-07-06 20:06:59 +02:00
|
|
|
USE_LDCONFIG= ${PREFIX}/lib/opencryptoki
|
2016-05-18 19:22:59 +02:00
|
|
|
WRKSRC= ${WRKDIR}/${PORTNAME}
|
2014-09-23 12:26:29 +02:00
|
|
|
INSTALL_TARGET= install-strip
|
2015-04-18 14:58:34 +02:00
|
|
|
GNU_CONFIGURE= yes
|
2010-11-07 13:07:17 +01:00
|
|
|
CONFIGURE_ARGS= --enable-swtok --enable-tpmtok \
|
|
|
|
--disable-crtok --disable-aeptok \
|
|
|
|
--disable-ccatok --disable-bcomtok \
|
|
|
|
--disable-pkcscca_migrate \
|
2016-05-18 19:22:59 +02:00
|
|
|
--with-lockdir=/var/run/opencryptoki \
|
|
|
|
--with-logdir=/var/log/opencryptoki \
|
2014-07-06 20:06:59 +02:00
|
|
|
--localstatedir=/var \
|
2016-06-12 00:39:06 +02:00
|
|
|
--with-openssl=${OPENSSLBASE} \
|
2010-11-07 13:07:17 +01:00
|
|
|
--with-pkcs11user=${USERS} \
|
2016-05-18 19:22:59 +02:00
|
|
|
--with-pkcs11group=${GROUPS} \
|
|
|
|
ac_cv_path_CHGRP=true
|
2013-07-31 17:45:20 +02:00
|
|
|
CFLAGS+= -I${LOCALBASE}/include
|
2011-09-24 00:26:39 +02:00
|
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
2013-07-31 17:45:20 +02:00
|
|
|
USE_RC_SUBR= pkcsslotd
|
|
|
|
SUB_FILES= pkg-message
|
2016-05-18 19:22:59 +02:00
|
|
|
SUB_LIST= USERS="${USERS}" GROUPS="${GROUPS}"
|
|
|
|
PLIST_SUB= USERS="${USERS}" GROUPS="${GROUPS}"
|
2013-07-31 17:45:20 +02:00
|
|
|
USERS= _pkcs11
|
|
|
|
GROUPS= _pkcs11
|
2010-11-07 13:07:17 +01:00
|
|
|
|
2016-06-10 20:24:09 +02:00
|
|
|
OPTIONS_DEFINE= LDAP
|
|
|
|
OPTIONS_SUB= yes
|
|
|
|
LDAP_CONFIGURE_ENABLE= icsf
|
|
|
|
LDAP_USE= OPENLDAP=yes
|
|
|
|
|
2016-05-18 19:22:59 +02:00
|
|
|
post-install:
|
|
|
|
${MV} ${STAGEDIR}${ETCDIR}/opencryptoki.conf \
|
|
|
|
${STAGEDIR}${ETCDIR}/opencryptoki.conf.sample
|
2016-06-10 20:24:09 +02:00
|
|
|
${RMDIR} ${STAGEDIR}/var/run/opencryptoki/* \
|
2016-05-18 19:22:59 +02:00
|
|
|
${STAGEDIR}/var/run/opencryptoki
|
|
|
|
|
2013-07-31 17:45:20 +02:00
|
|
|
.include <bsd.port.mk>
|