From nobody Thu Jul 21 08:48:32 2022 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 4LpR751jn7z4X4mw; Thu, 21 Jul 2022 08:48:33 +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 4LpR7518sNz3bqh; Thu, 21 Jul 2022 08:48:33 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658393313; 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=F9Eg61nFFhloLIV+q4RnA64yinrFkSh88OEnNEC+sZ8=; b=L5KrgRlaxRDSBBLWWJrCF+YAlNYZLSvhut4nHhowPu+BuxnpHOaGWrCeyZfF2Q8+cPJHHL zCarLF+UoDBe0a3qm7/Q9tV/RIXsSg3/UlmXzYO+IX53zMU0GW3WHbVQtbOLCI0HmgI0Vr 5J9pvZeLxLrDz9RJnD8olgsPAZ6Gtxm3hIeP+mjBiJ/4o7r+9c/wS8eJgvP/9kXJLSnMSM TVgNq3fOqdzGXtMXeWuWNTFWe4ovdDX9EitTuvmc9zNIZN7oNnvGVtWDbipSb7tCMm1dfX +RgdpEpBqmgS98H3RqMPqg5/tGcGF9djYkDzRlCsnGgJtSwcg1gyjdTXIP4QAg== 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 4LpR750BNhzGHL; Thu, 21 Jul 2022 08:48:33 +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 26L8mWlH096589; Thu, 21 Jul 2022 08:48:32 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 26L8mWIg096588; Thu, 21 Jul 2022 08:48:32 GMT (envelope-from git) Date: Thu, 21 Jul 2022 08:48:32 GMT Message-Id: <202207210848.26L8mWIg096588@gitrepo.freebsd.org> To: ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org From: Nuno Teixeira Subject: git: e0fac7248904 - main - =?utf-8?Q?security/openca-ocspd:=20New=20port:=20OpenCA=E2=80=99s=20OCSP=20responder?= 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: eduardo X-Git-Repository: ports X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: e0fac7248904fc89d82ba4b064ca8a61410b1133 Auto-Submitted: auto-generated ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1658393313; 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=F9Eg61nFFhloLIV+q4RnA64yinrFkSh88OEnNEC+sZ8=; b=e+nZkdq6mDIZ5/yn15iIPfZfuZ6BDJbgJACIPRt5PBtCLXeDiMx9OYFmD63jGQnEoodcpP R5BlOxog7sOuo9Wnx/U/MTVVw7r5iatMGUtQ5+hh9uhLid6sxDuCxyO5BcTIOTpn2ayQ8c 4woFUd9y4IOo6RhFCE+HqyuA4Etje2c7bV8UThPm6ejFzE6ffTiSdyI/hvKQrQBw2yjEXx AqVM5KXbn5fmCUk7z45UXrlqK71pwtvHm6lbv9nvDfTWjGnyhs/xP4a4Bzf+fBKdYL+gjr rDKurpJEDxzlmKU1O4zUyRVdXj81tqV7nn5TvQUhZZBH2H4zo83max95+rs4dg== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1658393313; a=rsa-sha256; cv=none; b=XQWpVTlLZSGLC08loziYnN9akoGLlTw9vjJsCC6apu5m3z1zZPH7Q1Eepe1IDo1bYeZFTX Z12rI0t3k59w71eAcQ2X898IskYtIpSARbP6ezy4FGGsaNA5+bujx81/7oELyT/ptd0oQ5 0ke+2Y9zRdhH1/HVkRiOeDp7RyuPnd58MnnYkMYwWaP7F75eFGdcBCHThB//YDhX63fWUm SVDscFS31MQWSdE2izIXltcmJJcOizRjT+CsMYqSG+hG8SrI2M0u5nAaY/yspBtS7pmIyu NKsvKHtZfDyj+Bx8rbEi+h7FUiz0mWFpg/MepudZKUsbKxudMCBliAwBOU3K7Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by eduardo: URL: https://cgit.FreeBSD.org/ports/commit/?id=e0fac7248904fc89d82ba4b064ca8a61410b1133 commit e0fac7248904fc89d82ba4b064ca8a61410b1133 Author: Bruno Damour AuthorDate: 2022-07-21 08:45:31 +0000 Commit: Nuno Teixeira CommitDate: 2022-07-21 08:47:59 +0000 security/openca-ocspd: New port: OpenCA’s OCSP responder - submitter becomes maintainer OpenCA OCSP Responder is an rfc2560 compliant OCSPD responder. The server is a stand-alone application and can be integrated into many different PKI solutions as it does not depend on specific database scheme. Furthermore it can be used as a responder for multiple CAs. WWW: https://www.openca.org/projects/ocspd PR: 264475 --- security/Makefile | 1 + security/openca-ocspd/Makefile | 52 ++++++++++++++++++++++++++++++++++++ security/openca-ocspd/distinfo | 3 +++ security/openca-ocspd/files/ocspd.in | 21 +++++++++++++++ security/openca-ocspd/pkg-descr | 6 +++++ security/openca-ocspd/pkg-message | 18 +++++++++++++ security/openca-ocspd/pkg-plist | 18 +++++++++++++ 7 files changed, 119 insertions(+) diff --git a/security/Makefile b/security/Makefile index 5c0317e122fd..bb1715d19967 100644 --- a/security/Makefile +++ b/security/Makefile @@ -379,6 +379,7 @@ SUBDIR += onionscan SUBDIR += op SUBDIR += openbsm + SUBDIR += openca-ocspd SUBDIR += openconnect SUBDIR += openconnect-freebsd-daemon SUBDIR += openconnect-gui diff --git a/security/openca-ocspd/Makefile b/security/openca-ocspd/Makefile new file mode 100644 index 000000000000..45795272cce3 --- /dev/null +++ b/security/openca-ocspd/Makefile @@ -0,0 +1,52 @@ +PORTNAME= openca-ocspd +DISTVERSIONPREFIX= v +DISTVERSION= 3.1.3 +CATEGORIES= security + +MAINTAINER= bruno@ruomad.net +COMMENT= OpenCA OCSP responder + +LICENSE= APACHE20 +LICENSE_FILE= ${WRKSRC}/COPYING + +NOT_FOR_ARCHS= arm64 + +LIB_DEPENDS= libpki.so:security/libpki + +USES= autoreconf gnome libtool shebangfix ssl +USE_GITHUB= yes +GH_ACCOUNT= openca +USE_GNOME= libxml2 +# Add a rc script to start the OCSP daemon +USE_RC_SUBR= ocspd + +SHEBANG_FILES= etc/ocspd.in scripts/ocspd-genreq.sh.in + +GNU_CONFIGURE= yes +CONFIGURE_ARGS= --with-libpki-prefix=${PREFIX} + +# Rename installed configuration files to samples +post-stage: + ${MKDIR} ${STAGEDIR}${PREFIX}/share/openca-ocspd/etc; \ + ${MKDIR} ${STAGEDIR}${PREFIX}/share/openca-ocspd/etc/ocspd; \ + ${MKDIR} ${STAGEDIR}${PREFIX}/share/openca-ocspd/etc/ocspd/ca.d; \ + ${MKDIR} ${STAGEDIR}${PREFIX}/share/openca-ocspd/etc/ocspd/pki; \ + ${MKDIR} ${STAGEDIR}${PREFIX}/share/openca-ocspd/etc/ocspd/pki/token.d; \ + cd ${STAGEDIR}${PREFIX}/etc/ocspd/pki; \ + for f in $$(find * -type f); do \ + ${MV} ${STAGEDIR}${PREFIX}/etc/ocspd/pki/$$f ${STAGEDIR}${PREFIX}/share/openca-ocspd/etc/ocspd/pki/$$f.sample; \ + done; \ + cd ${STAGEDIR}${PREFIX}/etc/ocspd/ca.d; \ + for f in $$(find * -type f); do \ + ${MV} ${STAGEDIR}${PREFIX}/etc/ocspd/ca.d/$$f ${STAGEDIR}${PREFIX}/share/openca-ocspd/etc/ocspd/ca.d/$$f.sample; \ + done; \ + for f in $$(find ${STAGEDIR}${PREFIX}/etc/ocspd -type f); do \ + ${MV} $$f $$f.sample; \ + done; \ + ${RM} ${STAGEDIR}${PREFIX}/bin/test.sh; \ + ${RM} ${STAGEDIR}${PREFIX}/etc/init.d/ocspd; \ + ${RMDIR} ${STAGEDIR}${PREFIX}/etc/init.d + ${RMDIR} ${STAGEDIR}${PREFIX}/var/run + ${RMDIR} ${STAGEDIR}${PREFIX}/var + +.include diff --git a/security/openca-ocspd/distinfo b/security/openca-ocspd/distinfo new file mode 100644 index 000000000000..5a94844ad10d --- /dev/null +++ b/security/openca-ocspd/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1654414248 +SHA256 (openca-openca-ocspd-v3.1.3_GH0.tar.gz) = 59a0054bee22ba72b23263ead6a8458e2086f1996111608a2a2aafbd9e30f591 +SIZE (openca-openca-ocspd-v3.1.3_GH0.tar.gz) = 592190 diff --git a/security/openca-ocspd/files/ocspd.in b/security/openca-ocspd/files/ocspd.in new file mode 100755 index 000000000000..dc813fc1fe86 --- /dev/null +++ b/security/openca-ocspd/files/ocspd.in @@ -0,0 +1,21 @@ +#!/bin/sh + +# PROVIDE: ocspd +# REQUIRE: NETWORK + +. /etc/rc.subr + +name=ocspd +rcvar=ocspd_enable + +pidfile="/var/run/${name}.pid" + +command="%%PREFIX%%/sbin/ocspd" +command_args="-c %%PREFIX%%/etc/ocspd/ocspd.xml -d -v" + +load_rc_config ${name} +: ${ocspd_enable:=no} +: ${ocspd_msg="Nothing started."} + + +run_rc_command "$1" diff --git a/security/openca-ocspd/pkg-descr b/security/openca-ocspd/pkg-descr new file mode 100644 index 000000000000..f4fd28e1a48e --- /dev/null +++ b/security/openca-ocspd/pkg-descr @@ -0,0 +1,6 @@ +OpenCA OCSP Responder is an rfc2560 compliant OCSPD responder. +The server is a stand-alone application and can be integrated into many +different PKI solutions as it does not depend on specific database scheme. +Furthermore it can be used as a responder for multiple CAs. + +WWW: https://www.openca.org/projects/ocspd diff --git a/security/openca-ocspd/pkg-message b/security/openca-ocspd/pkg-message new file mode 100644 index 000000000000..3b13ccc58dfb --- /dev/null +++ b/security/openca-ocspd/pkg-message @@ -0,0 +1,18 @@ +[ +{ type: install + message: <