blob: 9d713d28f8c0e557c12deedaad914062a1e56823 (
plain) (
tree)
|
|
PORTNAME= pkcs11-gateway
PORTVERSION= 1.4
CATEGORIES= security devel linux
MASTER_SITES= LOCAL/ale
MAINTAINER= ale@FreeBSD.org
COMMENT= Wrapper Cryptoki library to use Linux PKCS\#11 modules
LICENSE= LGPL20
ONLY_FOR_ARCHS= amd64 i386
USES= linux
OPTIONS_DEFINE= DOCS
USE_LDCONFIG= yes
USE_LINUX= base:run devtools:build
.include <bsd.port.pre.mk>
PKCS11_BINS= pkcs11-gateway32
.if ${ARCH} == "amd64"
PKCS11_BINS+= pkcs11-gateway64
.endif
PKCS11_LIB= libpkcs11-gateway.so
PLIST_FILES= ${PKCS11_BINS:S,^,bin/,} \
${PKCS11_LIB:S,^,lib/,}
PORTDOCS= README
do-build:
@(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} Makefile.Linuxulator ${PKCS11_BINS})
@(cd ${BUILD_WRKSRC} && ${SETENV} ${MAKE_ENV} ${MAKE_CMD} ${MAKE_FLAGS} Makefile.FreeBSD ${PKCS11_LIB})
do-install:
.for b in ${PKCS11_BINS}
${INSTALL_PROGRAM} ${WRKSRC}/${b} ${STAGEDIR}${PREFIX}/bin/
.endfor
${INSTALL_LIB} ${WRKSRC}/libpkcs11-gateway.so ${STAGEDIR}${PREFIX}/lib
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README ${STAGEDIR}${DOCSDIR}
.include <bsd.port.post.mk>
|