From owner-svn-ports-all@freebsd.org Sat Jun 27 20:12:09 2020 Return-Path: Delivered-To: svn-ports-all@mailman.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.nyi.freebsd.org (Postfix) with ESMTP id 8B9B735B78E; Sat, 27 Jun 2020 20:12:09 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 49vPzs3Fhkz4PZw; Sat, 27 Jun 2020 20:12:09 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 6AEC3AB33; Sat, 27 Jun 2020 20:12:09 +0000 (UTC) (envelope-from ale@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id 05RKC9sq088616; Sat, 27 Jun 2020 20:12:09 GMT (envelope-from ale@FreeBSD.org) Received: (from ale@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id 05RKC8mZ088520; Sat, 27 Jun 2020 20:12:08 GMT (envelope-from ale@FreeBSD.org) Message-Id: <202006272012.05RKC8mZ088520@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: ale set sender to ale@FreeBSD.org using -f From: Alex Dupre Date: Sat, 27 Jun 2020 20:12:08 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r540634 - head/security/pkcs11-gateway X-SVN-Group: ports-head X-SVN-Commit-Author: ale X-SVN-Commit-Paths: head/security/pkcs11-gateway X-SVN-Commit-Revision: 540634 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.33 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 27 Jun 2020 20:12:09 -0000 Author: ale Date: Sat Jun 27 20:12:08 2020 New Revision: 540634 URL: https://svnweb.freebsd.org/changeset/ports/540634 Log: Update to 1.4 release: - add support for linux 64-bit pkcs#11 modules (on amd64) - build linux binaries via linuxulator instead of shipping prebuilt binaries Tested by: grembo (thanks for your support!) Modified: head/security/pkcs11-gateway/Makefile head/security/pkcs11-gateway/distinfo head/security/pkcs11-gateway/pkg-descr Modified: head/security/pkcs11-gateway/Makefile ============================================================================== --- head/security/pkcs11-gateway/Makefile Sat Jun 27 19:42:17 2020 (r540633) +++ head/security/pkcs11-gateway/Makefile Sat Jun 27 20:12:08 2020 (r540634) @@ -2,7 +2,7 @@ # $FreeBSD$ PORTNAME= pkcs11-gateway -PORTVERSION= 1.2 +PORTVERSION= 1.4 CATEGORIES= security devel linux MASTER_SITES= LOCAL/ale @@ -11,23 +11,37 @@ COMMENT= Wrapper Cryptoki library to use Linux PKCS\#1 LICENSE= LGPL20 -MAKEFILE= Makefile.FreeBSD -USE_LDCONFIG= yes USES= linux -PLIST_FILES= bin/pkcs11-gateway lib/libpkcs11-gateway.so \ - lib/libpkcs11-gateway.so.1 +OPTIONS_DEFINE= DOCS +USE_LDCONFIG= yes +USE_LINUX= base:run devtools:build + +.include + +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 -OPTIONS_DEFINE= DOCS +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: - ${INSTALL_PROGRAM} ${WRKSRC}/pkcs11-gateway ${STAGEDIR}${PREFIX}/bin - ${INSTALL_LIB} ${WRKSRC}/libpkcs11-gateway.so.1 ${STAGEDIR}${PREFIX}/lib - cd ${STAGEDIR}${PREFIX}/lib && ${LN} -sf libpkcs11-gateway.so.1 \ - libpkcs11-gateway.so +.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 +.include Modified: head/security/pkcs11-gateway/distinfo ============================================================================== --- head/security/pkcs11-gateway/distinfo Sat Jun 27 19:42:17 2020 (r540633) +++ head/security/pkcs11-gateway/distinfo Sat Jun 27 20:12:08 2020 (r540634) @@ -1,2 +1,3 @@ -SHA256 (pkcs11-gateway-1.2.tar.gz) = e8da2f77b23c7180f2d48b601ea5059013b6e2039cddc7e5c2140fa0917054ea -SIZE (pkcs11-gateway-1.2.tar.gz) = 70175 +TIMESTAMP = 1593078368 +SHA256 (pkcs11-gateway-1.4.tar.gz) = 9b93b795ebd7d5809c045a1e2dccb02f20cd0fee629b8954b7083117aaf7bd1b +SIZE (pkcs11-gateway-1.4.tar.gz) = 49258 Modified: head/security/pkcs11-gateway/pkg-descr ============================================================================== --- head/security/pkcs11-gateway/pkg-descr Sat Jun 27 19:42:17 2020 (r540633) +++ head/security/pkcs11-gateway/pkg-descr Sat Jun 27 20:12:08 2020 (r540634) @@ -1,5 +1,5 @@ -pkcs11-gateway is a software that allows you to use a Linux 32-bit PKCS#11 -module on FreeBSD i386/amd64. +pkcs11-gateway is a software that allows you to use a Linux PKCS#11 module +on FreeBSD i386/amd64. It consists of a FreeBSD Cryptoki wrapper library that serializes and forwards PKCS#11 function calls to a Linux server program that dlopen() and use the real module. The communication between the two components is via a UNIX socket.