Skip to content

Instantly share code, notes, and snippets.

@swills
Last active February 9, 2023 16:14
Show Gist options
  • Save swills/d4644f6ffd66efe352630af40003d0a9 to your computer and use it in GitHub Desktop.
Save swills/d4644f6ffd66efe352630af40003d0a9 to your computer and use it in GitHub Desktop.
security/openssl-agent
TIMESTAMP = 1675956504
SHA256 (openssl-agent-0.15.0.tar.gz) = cad582c8e0bf3dd4fb55aedf502e6b83573a7097eee400fa785ed196c7ddcf42
SIZE (openssl-agent-0.15.0.tar.gz) = 49819
PORTNAME= openssl-agent
PORTVERSION= 0.15.0
CATEGORIES= security
MASTER_SITES= https://pkg.cppget.org/1/alpha/build2/
MAINTAINER= swills@FreeBSD.org
COMMENT= OpenSSL key agent and client utilities
WWW= https://git.build2.org/cgit/openssl-agent/tree/README
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} -s" \
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 <bsd.port.mk>
--- openssl/agent/pkcs11/agent.cxx.orig 2023-02-09 15:36:17 UTC
+++ openssl/agent/pkcs11/agent.cxx
@@ -24,6 +24,9 @@
#include <openssl/agent/pkcs11/options.hxx>
#include <openssl/agent/pkcs11/private-key.hxx>
+#include <sys/signal.h>
+#define _NSIG NSIG
+
namespace openssl
{
namespace agent
OpenSSL key agent and client utilities
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment