FreeBSD Bugzilla – Attachment 234483 Details for
Bug 264475
[NEW PORT] security/openca-ocspd : OpenCA’s OCSP responder
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch against current ports tree
openca-ocspd.patch (text/plain), 6.40 KB, created by
Bruno Damour
on 2022-06-06 08:32:05 UTC
(
hide
)
Description:
Patch against current ports tree
Filename:
MIME Type:
Creator:
Bruno Damour
Created:
2022-06-06 08:32:05 UTC
Size:
6.40 KB
patch
obsolete
>From 9215c05b6c593a966b7876388e24dbed0dcdaa26 Mon Sep 17 00:00:00 2001 >From: Bruno Damour <freebsd@ruomad.net> >Date: Mon, 6 Jun 2022 10:03:14 +0200 >Subject: [PATCH] OpenCA's OCSP responder > >--- > security/openca-ocspd/Makefile | 42 +++++++++++++++++++ > security/openca-ocspd/distinfo | 3 ++ > security/openca-ocspd/files/ocspd.in | 21 ++++++++++ > .../openca-ocspd/files/patch-configure.ac | 11 +++++ > .../openca-ocspd/files/patch-global-vars.in | 10 +++++ > .../files/patch-includes_general.h | 11 +++++ > security/openca-ocspd/pkg-descr | 6 +++ > security/openca-ocspd/pkg-plist | 20 +++++++++ > 8 files changed, 124 insertions(+) > create mode 100644 security/openca-ocspd/Makefile > create mode 100644 security/openca-ocspd/distinfo > create mode 100755 security/openca-ocspd/files/ocspd.in > create mode 100644 security/openca-ocspd/files/patch-configure.ac > create mode 100644 security/openca-ocspd/files/patch-global-vars.in > create mode 100644 security/openca-ocspd/files/patch-includes_general.h > create mode 100644 security/openca-ocspd/pkg-descr > create mode 100644 security/openca-ocspd/pkg-plist > >diff --git a/security/openca-ocspd/Makefile b/security/openca-ocspd/Makefile >new file mode 100644 >index 000000000000..e4ac7954cfad >--- /dev/null >+++ b/security/openca-ocspd/Makefile >@@ -0,0 +1,42 @@ >+# Created by Bruno Damour <bruno@ruomad.net> >+# >+ >+PORTNAME= openca-ocspd >+DISTVERSION= 3.1.3 >+DISTVERSIONPREFIX= v >+CATEGORIES= security >+DISTNAME= openca-ocspd-3.1.3 >+ >+MAINTAINER= bruno@ruomad.net >+COMMENT= OpenCA OCSP responder >+ >+LICENSE= APACHE20 >+ >+LIB_DEPENDS= libpki.so:security/libpki \ >+ libxml2.so:textproc/libxml2 >+ >+USES= ssl autoreconf libtool shebangfix >+USE_GITHUB= yes >+GH_ACCOUNT= openca >+#GH_TAGNAME= v3.1.1-81-g99b7613 >+SHEBANG_FILES= etc/ocspd.in scripts/ocspd-genreq.sh.in test/test.sh >+ >+# Add a rc script to start the OCSP daemon >+USE_RC_SUBR= ocspd >+ >+# Provided patches fix : >+# - src/global-vars.in to add localrootdir (new autoconf versions) >+# - configure.ac to detect the presence of socket.h : >+# hence the need to autoreconf >+PATCH_STRIP= -p0 >+ >+GNU_CONFIGURE= yes >+CONFIGURE_ARGS= --with-libpki-prefix=${PREFIX} >+ >+# Rename installed configuration files to samples >+post-stage: >+ for f in $$(find ${STAGEDIR}${PREFIX}/etc/ocspd -type f); do \ >+ ${MV} $$f $$f.sample; \ >+ done >+ >+.include <bsd.port.mk> >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/files/patch-configure.ac b/security/openca-ocspd/files/patch-configure.ac >new file mode 100644 >index 000000000000..55f26b945a2a >--- /dev/null >+++ b/security/openca-ocspd/files/patch-configure.ac >@@ -0,0 +1,11 @@ >+--- configure.ac.orig 2020-01-08 20:28:11.000000000 +0100 >++++ configure.ac 2021-08-25 14:58:50.324390000 +0200 >+@@ -147,7 +147,7 @@ >+ dnl Checks for programs. >+ dnl AC_CONFIG_HEADERS >+ AC_STDC_HEADERS >+-AC_HAVE_HEADERS(string.h stdio.h stdlib.h fcntl.h sys/file.h sys/param.h sys/sem.h sys/ipc.h) >++AC_HAVE_HEADERS(string.h stdio.h stdlib.h fcntl.h sys/file.h sys/param.h sys/sem.h sys/ipc.h sys/socket.h) >+ >+ AC_CONFIG_HEADERS(src/ocspd/includes/config.h) >+ >diff --git a/security/openca-ocspd/files/patch-global-vars.in b/security/openca-ocspd/files/patch-global-vars.in >new file mode 100644 >index 000000000000..ece98ae81142 >--- /dev/null >+++ b/security/openca-ocspd/files/patch-global-vars.in >@@ -0,0 +1,10 @@ >+--- src/global-vars.in.orig 2020-01-08 19:28:11 UTC >++++ src/global-vars.in >+@@ -12,6 +12,7 @@ doc_prefix = $(DESTDIR)${datadir}/openca-prqpd >+ DEST_SBINDIR = $(DESTDIR)@sbindir@ >+ DEST_BINDIR = $(DESTDIR)@bindir@ >+ DEST_LIBDIR = $(DESTDIR)@libdir@ >++DEST_DATADIR = @datarootdir@ >+ DEST_DATADIR = @datadir@ >+ DEST_INFODIR = @infodir@ >+ DEST_MANDIR = @mandir@ >diff --git a/security/openca-ocspd/files/patch-includes_general.h b/security/openca-ocspd/files/patch-includes_general.h >new file mode 100644 >index 000000000000..1fe5daa39abd >--- /dev/null >+++ b/security/openca-ocspd/files/patch-includes_general.h >@@ -0,0 +1,11 @@ >+--- src/ocspd/includes/general.h.orig 2020-01-08 19:28:11 UTC >++++ src/ocspd/includes/general.h >+@@ -15,6 +15,8 @@ >+ # define ATTRIBUTE_NO_SANITIZE_ADDRESS >+ #endif >+ >++#include "config.h" >++ >+ #include <libpki/pki.h> >+ #include <libpki/libpkiv.h> >+ >diff --git a/security/openca-ocspd/pkg-descr b/security/openca-ocspd/pkg-descr >new file mode 100644 >index 000000000000..b00121b12c47 >--- /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-plist b/security/openca-ocspd/pkg-plist >new file mode 100644 >index 000000000000..9f1b2eaea61b >--- /dev/null >+++ b/security/openca-ocspd/pkg-plist >@@ -0,0 +1,20 @@ >+bin/ocspd-genreq.sh >+@comment bin/test.sh >+@comment etc/init.d/ocspd >+etc/ocspd/ocspd.xml.sample >+etc/ocspd/pki/token.d/etoken.xml.sample >+etc/ocspd/pki/token.d/software.xml.sample >+etc/ocspd/pki/token.d/eracom.xml.sample >+etc/ocspd/ca.d/collegeca.xml.sample >+etc/ocspd/ca.d/self-certs.xml.sample >+libdata/pkgconfig/openca-ocspd.pc >+sbin/ocspd >+share/man/man3/ocspd.3.gz >+share/man/man3/ocspd.conf.3.gz >+@dir etc/ocspd/ca.d >+@dir etc/ocspd/certs >+@dir etc/ocspd/crls >+@dir etc/ocspd/pki/hsm.d >+@dir etc/ocspd/pki/profile.d >+@dir etc/ocspd/private >+@dir var/run >-- >2.36.1 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 264475
:
234464
|
234483
|
234504
|
234693
|
234911
|
235251
|
235281
|
235307
|
235313