From nobody Sun Feb 19 11:02:25 2023 X-Original-To: dev-commits-ports-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4PKN1F62Mwz3kl70; Sun, 19 Feb 2023 11:02:25 +0000 (UTC) (envelope-from git@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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4PKN1F4l0Vz47mm; Sun, 19 Feb 2023 11:02:25 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676804545; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wKWhuR5GfbNbAwLu7EvUyqIenlPh0Fp0KJLkCgdyqU4=; b=ScQPx5TMnLI+KWUi1xr8JCbISUHnNG45A+um+8pt/SgEJxqeILM4MRwCbyJYSzjyw25nyf 5NmEu6q0v1O4gbZfk89il+EWuQvxhQkl1S3WHyHDJ/JU4KarvnvqMN+Q+VRTfUV9CLg1r0 veo/eEo0FSa2ZGb4Kf3NOfgh/2nsTF+ADbyxL86TKUGqWj8wC93Qtt/JL7WRYI9RM5IZ6H 7vGYOah2KLVr6LEU1Pgns1ZbC9pMJeP3ZpMB6FbmsRrbqi7OEp5zKmU8+WUQ1YXE+pPeiJ oZNVAnM6/nS/qd8ldKRtJaa7Jb4qzt9YLa7T96Q9NszUCDdXHVcH3N+SJVi8wg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1676804545; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=wKWhuR5GfbNbAwLu7EvUyqIenlPh0Fp0KJLkCgdyqU4=; b=n1Ep/2es77o0F7Y5Ro0yhsFonKlCazP2+hGWvOLki3z37m2TO1QGZfJjQt0UrDLtYyRRor PY8dwyDCS9VMF3cJ7z659WzgBKZ0Z4Tzm+SMRDBfkDbdunTtRd80Ha4sonfg/dhK597MrP mJVjltLhqbpWOPMFRzTGzRfr80f4rBKYxZoopZEoKF7muD/xuN4QnqePn9zfMEi/xk5IQj wTAflD0Lo6SzsICDctEzsJh/8a2UV/E+rv122YYrCMhOAubZBQgiky4+TM9H8xQx3URFr4 QL0vjFouaoRP2KsE/U7brSWA5RYr4So+2IwQdqx+f2eN+GuMebvmEqmJkQjkZQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1676804545; a=rsa-sha256; cv=none; b=FZ/fAsaFxJfwqk5As6XJWiFxpoYHQJMzr1QPnccZb673/JCqUWXjDwfKZh815ACP3ArAGN IDn1ZBl7gLTKAndXkML1h28XQbYl5iFEe6m4hNVwO1tjCHUFUXLa/Ss9o4TEQDmpkOv3XZ CxtWXxvgoJtze6WCPw8DrNqXMxpvj0H0ppsR6bPJKIiv99HpN5fsoP25wcX3DtW1fZ+Izw Myu1HWajwwt819L3C/qMEM0T6h/wBhlZU60ZIkgyN5KuLxQ58gY7JT7+4Mtl1rhiKcZlh2 +Yp5XyLqJT0bhBsem0/TSw7w4c1GPysDzMDoxlBu60Nxbac6wlxt267yk6I1gg== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4PKN1F3rBdz10L7; Sun, 19 Feb 2023 11:02:25 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 31JB2PCV052654; Sun, 19 Feb 2023 11:02:25 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 31JB2P0j052653; Sun, 19 Feb 2023 11:02:25 GMT (envelope-from git) Date: Sun, 19 Feb 2023 11:02:25 GMT Message-Id: <202302191102.31JB2P0j052653@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Robert Clausecker Subject: git: b6a335155d72 - main - security/openssl-agent: New port: OpenSSL key agent and client utils List-Id: Commit messages for all branches of the ports repository List-Archive: https://lists.freebsd.org/archives/dev-commits-ports-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-ports-all@freebsd.org X-BeenThere: dev-commits-ports-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: fuz X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: b6a335155d72ff60a890fb75d31ad4607d49470a Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by fuz: URL: https://cgit.FreeBSD.org/ports/commit/?id=b6a335155d72ff60a890fb75d31ad4607d49470a commit b6a335155d72ff60a890fb75d31ad4607d49470a Author: Robert Clausecker AuthorDate: 2023-02-09 16:53:16 +0000 Commit: Robert Clausecker CommitDate: 2023-02-19 11:01:39 +0000 security/openssl-agent: New port: OpenSSL key agent and client utils OpenSSL key agent and client utilities. The aim of these utilities is to provide an openssl-rsautl(1) drop-in replacement for performing cryptographic operations using a private key that is unlocked for the session, similar to OpenSSH's ssh-agent(1). The port's author is known to the maintainer but wishes not to be named. WWW: https://git.build2.org/cgit/openssl-agent/tree/README Obtained from: anonymous author Approved by: flo (mentor) Differential Revision: https://reviews.freebsd.org/D38630 --- security/Makefile | 1 + security/openssl-agent/Makefile | 31 ++++++++++++++++++++++ security/openssl-agent/distinfo | 3 +++ .../files/patch-openssl_agent_pkcs11_agent.cxx | 12 +++++++++ security/openssl-agent/pkg-descr | 5 ++++ 5 files changed, 52 insertions(+) diff --git a/security/Makefile b/security/Makefile index 5bb9cf5b9256..69b5f64d9011 100644 --- a/security/Makefile +++ b/security/Makefile @@ -408,6 +408,7 @@ SUBDIR += openssh-askpass SUBDIR += openssh-portable SUBDIR += openssl + SUBDIR += openssl-agent SUBDIR += openssl-devel SUBDIR += openssl-quictls SUBDIR += openssl-unsafe diff --git a/security/openssl-agent/Makefile b/security/openssl-agent/Makefile new file mode 100644 index 000000000000..6757befbda70 --- /dev/null +++ b/security/openssl-agent/Makefile @@ -0,0 +1,31 @@ +PORTNAME= openssl-agent +PORTVERSION= 0.15.0 +CATEGORIES= security +MASTER_SITES= https://pkg.cppget.org/1/alpha/build2/ + +MAINTAINER= fuz@FreeBSD.org +COMMENT= OpenSSL key agent and client utilities +WWW= https://git.build2.org/cgit/openssl-agent/tree/README + +LICENSE= MIT +LICENSE_FILE= ${WRKSRC}/LICENSE + +BUILD_DEPENDS= build2>=0:devel/build2 +LIB_DEPENDS= libbutl.so:devel/build2 + +PLIST_FILES= bin/openssl-agent-pkcs11 \ + bin/openssl-client + +do-build: + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} b configure \ + config.cxx=${CXX} \ + config.cxx.coptions="${CXXFLAGS}" \ + config.cxx.loptions="${LDFLAGS} ${STRIP}" \ + config.bin.lib=shared \ + config.bin.rpath=${PREFIX}/lib \ + config.install.chroot=${STAGEDIR} \ + config.install.root=${PREFIX} +do-install: + cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} b install -V -j ${MAKE_JOBS_NUMBER} -J ${MAKE_JOBS_NUMBER} + +.include diff --git a/security/openssl-agent/distinfo b/security/openssl-agent/distinfo new file mode 100644 index 000000000000..424a342235e9 --- /dev/null +++ b/security/openssl-agent/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1675956504 +SHA256 (openssl-agent-0.15.0.tar.gz) = cad582c8e0bf3dd4fb55aedf502e6b83573a7097eee400fa785ed196c7ddcf42 +SIZE (openssl-agent-0.15.0.tar.gz) = 49819 diff --git a/security/openssl-agent/files/patch-openssl_agent_pkcs11_agent.cxx b/security/openssl-agent/files/patch-openssl_agent_pkcs11_agent.cxx new file mode 100644 index 000000000000..fb3961fda878 --- /dev/null +++ b/security/openssl-agent/files/patch-openssl_agent_pkcs11_agent.cxx @@ -0,0 +1,12 @@ +--- openssl/agent/pkcs11/agent.cxx.orig 2023-02-09 15:36:17 UTC ++++ openssl/agent/pkcs11/agent.cxx +@@ -24,6 +24,9 @@ + #include + #include + ++#include ++#define _NSIG NSIG ++ + namespace openssl + { + namespace agent diff --git a/security/openssl-agent/pkg-descr b/security/openssl-agent/pkg-descr new file mode 100644 index 000000000000..d69128603307 --- /dev/null +++ b/security/openssl-agent/pkg-descr @@ -0,0 +1,5 @@ +OpenSSL key agent and client utilities + +The aim of these utilities is to provide an openssl-rsautl(1) drop-in +replacement for performing cryptographic operations using a private key +that is unlocked for the session, similar to OpenSSH's ssh-agent(1).