mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-29 01:13:08 +00:00
2a7ea8db0c
- Add STAGEDIR support. - Bump PORTREVISION because of pkg-plist change.
53 lines
1.4 KiB
Makefile
53 lines
1.4 KiB
Makefile
# Created by: Ralf Meister
|
|
# $FreeBSD$
|
|
|
|
PORTNAME= opencryptoki
|
|
PORTVERSION= 2.3.2
|
|
PORTREVISION= 6
|
|
CATEGORIES= security
|
|
MASTER_SITES= SF/${PORTNAME}/${PORTNAME}/${PORTVERSION}
|
|
|
|
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:${PORTSDIR}/security/trousers
|
|
|
|
USES= gmake
|
|
USE_BZIP2= YES
|
|
USE_LDCONFIG= YES
|
|
USE_AUTOTOOLS= autoconf libtool automake
|
|
HAS_CONFIGURE= YES
|
|
CONFIGURE_ARGS= --enable-swtok --enable-tpmtok \
|
|
--disable-crtok --disable-aeptok \
|
|
--disable-ccatok --disable-bcomtok \
|
|
--disable-pkcscca_migrate \
|
|
--libdir=${PREFIX}/lib \
|
|
--sbindir=${PREFIX}/sbin \
|
|
--localstatedir=${PREFIX}/var \
|
|
--with-pkcs11user=${USERS} \
|
|
--with-pkcs11group=${GROUPS}
|
|
CFLAGS+= -I${LOCALBASE}/include
|
|
LDFLAGS+= -L${LOCALBASE}/lib
|
|
USE_RC_SUBR= pkcsslotd
|
|
SUB_FILES= pkg-message
|
|
SUB_LIST= USERS=${USERS} GROUPS=${GROUPS}
|
|
USERS= _pkcs11
|
|
GROUPS= _pkcs11
|
|
|
|
run-autotools: run-autotools-autoreconf
|
|
|
|
run-autotools-autoreconf:
|
|
@cd ${CONFIGURE_WRKSRC} && ${SETENV} ${AUTOTOOLS_ENV} ${AUTORECONF} -i
|
|
|
|
post-install:
|
|
cd ${STAGEDIR}${PREFIX}/lib && ${LN} -s opencryptoki/libopencryptoki* .
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/var/lib/opencryptoki/swtok \
|
|
${STAGEDIR}${PREFIX}/var/lib/opencryptoki/tpm
|
|
|
|
.include <bsd.port.mk>
|