aboutsummaryrefslogtreecommitdiff
path: root/security/opencryptoki/Makefile
diff options
context:
space:
mode:
authorHiroki Sato <hrs@FreeBSD.org>2016-05-18 17:22:59 +0000
committerHiroki Sato <hrs@FreeBSD.org>2016-05-18 17:22:59 +0000
commit8c8d2c3d81fac5c01075447b436c4fe1cb4c8d22 (patch)
treef93cc66ba1590fe367a4281fcf04cf8541a60583 /security/opencryptoki/Makefile
parent10c3aa0757d552917cab78b7f314f748b8268be8 (diff)
downloadports-8c8d2c3d81fac5c01075447b436c4fe1cb4c8d22.tar.gz
ports-8c8d2c3d81fac5c01075447b436c4fe1cb4c8d22.zip
Notes
Diffstat (limited to 'security/opencryptoki/Makefile')
-rw-r--r--security/opencryptoki/Makefile21
1 files changed, 16 insertions, 5 deletions
diff --git a/security/opencryptoki/Makefile b/security/opencryptoki/Makefile
index b26dd480b92b..8a139cbb6c9d 100644
--- a/security/opencryptoki/Makefile
+++ b/security/opencryptoki/Makefile
@@ -2,8 +2,7 @@
# $FreeBSD$
PORTNAME= opencryptoki
-PORTVERSION= 2.3.2
-PORTREVISION= 8
+PORTVERSION= 3.5
CATEGORIES= security
MASTER_SITES= SF
@@ -17,23 +16,35 @@ LICENSE_PERMS= dist-mirror dist-sell pkg-mirror pkg-sell auto-accept
LIB_DEPENDS= libtspi.so:security/trousers
-USES= alias autoreconf gmake libtool tar:bzip2
+USES= alias autoreconf gmake libtool 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-pkcs11user=${USERS} \
- --with-pkcs11group=${GROUPS}
+ --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}
+SUB_LIST= USERS="${USERS}" GROUPS="${GROUPS}"
+PLIST_SUB= USERS="${USERS}" GROUPS="${GROUPS}"
USERS= _pkcs11
GROUPS= _pkcs11
+post-install:
+ ${MV} ${STAGEDIR}${ETCDIR}/opencryptoki.conf \
+ ${STAGEDIR}${ETCDIR}/opencryptoki.conf.sample
+ ${RMDIR} ${STAGEDIR}/var/run/opencryptoki/swtok \
+ ${STAGEDIR}/var/run/opencryptoki/tpm \
+ ${STAGEDIR}/var/run/opencryptoki
+
.include <bsd.port.mk>