View | Details | Raw Unified | Return to bug 264475 | Differences between
and this patch

Collapse All | Expand All

(-)b/security/Makefile (+1 lines)
Lines 380-385 Link Here
380
    SUBDIR += onionscan
380
    SUBDIR += onionscan
381
    SUBDIR += op
381
    SUBDIR += op
382
    SUBDIR += openbsm
382
    SUBDIR += openbsm
383
    SUBDIR += openca-ocspd
383
    SUBDIR += openconnect
384
    SUBDIR += openconnect
384
    SUBDIR += openconnect-freebsd-daemon
385
    SUBDIR += openconnect-freebsd-daemon
385
    SUBDIR += openconnect-gui
386
    SUBDIR += openconnect-gui
(-)b/security/openca-ocspd/Makefile (+52 lines)
Added Link Here
1
PORTNAME=		openca-ocspd
2
DISTVERSIONPREFIX=	v
3
DISTVERSION=		3.1.3
4
PORTREVISION=		1
5
CATEGORIES=		security
6
7
MAINTAINER=		bruno@ruomad.net
8
COMMENT=		OpenCA OCSP responder
9
10
LICENSE=		APACHE20
11
LICENSE_FILE=		${WRKSRC}/COPYING
12
13
NOT_FOR_ARCHS=		arm64
14
15
LIB_DEPENDS=		libpki.so:security/libpki
16
17
USES=			ssl gnome autoreconf libtool shebangfix
18
USE_GITHUB=		yes
19
GH_ACCOUNT=		openca
20
USE_GNOME=		libxml2
21
# Add a rc script to start the OCSP daemon
22
USE_RC_SUBR=		ocspd
23
24
SHEBANG_FILES=		etc/ocspd.in scripts/ocspd-genreq.sh.in
25
26
GNU_CONFIGURE=		yes
27
CONFIGURE_ARGS=		--with-libpki-prefix=${PREFIX}
28
29
# Rename installed configuration files to samples
30
post-stage:
31
	${MKDIR} ${STAGEDIR}${PREFIX}/share/openca-ocspd/etc; \
32
	${MKDIR} ${STAGEDIR}${PREFIX}/share/openca-ocspd/etc/ocspd; \
33
	${MKDIR} ${STAGEDIR}${PREFIX}/share/openca-ocspd/etc/ocspd/ca.d; \
34
	${MKDIR} ${STAGEDIR}${PREFIX}/share/openca-ocspd/etc/ocspd/pki; \
35
	${MKDIR} ${STAGEDIR}${PREFIX}/share/openca-ocspd/etc/ocspd/pki/token.d; \
36
	cd ${STAGEDIR}${PREFIX}/etc/ocspd/pki; \
37
	for f in $$(find * -type f); do \
38
		${MV} ${STAGEDIR}${PREFIX}/etc/ocspd/pki/$$f ${STAGEDIR}${PREFIX}/share/openca-ocspd/etc/ocspd/pki/$$f.sample; \
39
	done; \
40
	cd ${STAGEDIR}${PREFIX}/etc/ocspd/ca.d; \
41
	for f in $$(find * -type f); do \
42
		${MV} ${STAGEDIR}${PREFIX}/etc/ocspd/ca.d/$$f ${STAGEDIR}${PREFIX}/share/openca-ocspd/etc/ocspd/ca.d/$$f.sample; \
43
	done; \
44
	for f in $$(find ${STAGEDIR}${PREFIX}/etc/ocspd -type f); do \
45
		${MV} $$f $$f.sample; \
46
	done; \
47
	${RM} ${STAGEDIR}${PREFIX}/bin/test.sh; \
48
	${RM} ${STAGEDIR}${PREFIX}/etc/init.d/ocspd; \
49
	${RMDIR} ${STAGEDIR}${PREFIX}/etc/init.d
50
	${RMDIR} ${STAGEDIR}${PREFIX}/var/run
51
52
.include <bsd.port.mk>
(-)b/security/openca-ocspd/distinfo (+3 lines)
Added Link Here
1
TIMESTAMP = 1654414248
2
SHA256 (openca-openca-ocspd-v3.1.3_GH0.tar.gz) = 59a0054bee22ba72b23263ead6a8458e2086f1996111608a2a2aafbd9e30f591
3
SIZE (openca-openca-ocspd-v3.1.3_GH0.tar.gz) = 592190
(-)b/security/openca-ocspd/files/ocspd.in (+21 lines)
Added Link Here
1
#!/bin/sh
2
3
# PROVIDE: ocspd
4
# REQUIRE: NETWORK
5
6
. /etc/rc.subr
7
8
name=ocspd
9
rcvar=ocspd_enable
10
11
pidfile="/var/run/${name}.pid"
12
13
command="%%PREFIX%%/sbin/ocspd"
14
command_args="-c %%PREFIX%%/etc/ocspd/ocspd.xml -d -v"
15
16
load_rc_config ${name}
17
: ${ocspd_enable:=no}
18
: ${ocspd_msg="Nothing started."}
19
20
21
run_rc_command "$1"
(-)b/security/openca-ocspd/pkg-descr (+6 lines)
Added Link Here
1
OpenCA OCSP Responder is an rfc2560 compliant OCSPD responder.
2
The server is a stand-alone application and can be integrated into many
3
different PKI solutions as it does not depend on specific database scheme.
4
Furthermore it can be used as a responder for multiple CAs.
5
6
WWW: https://www.openca.org/projects/ocspd
(-)b/security/openca-ocspd/pkg-message (+18 lines)
Added Link Here
1
[
2
{ type: install,
3
  message: <<EOM
4
  Sample Configuration files have been installed in
5
  $PREFIX/share/openca-ocspd/etc, in a hierachy that mimics the one created in
6
  $PREFIX/etc.
7
  They may be used as templates to be copied into the corresponding subdirectory
8
  under $PREFIX/etc and customized according to user context.
9
  EOM
10
}
11
{
12
  type: remove
13
  message: <<EOM
14
  User-installed configuration files under $PREFIX/etc/ocspd have been preserved and
15
  must be removed manually if needed, as well as this directory. 
16
  EOM"
17
}
18
]
(-)b/security/openca-ocspd/pkg-plist (-1 / +18 lines)
Added Link Here
0
- 
1
bin/ocspd-genreq.sh
2
@sample etc/ocspd/ocspd.xml.sample
3
libdata/pkgconfig/openca-ocspd.pc
4
sbin/ocspd
5
share/man/man3/ocspd.3.gz
6
share/man/man3/ocspd.conf.3.gz
7
%%DATADIR%%/etc/ocspd/pki/token.d/etoken.xml.sample
8
%%DATADIR%%/etc/ocspd/pki/token.d/software.xml.sample
9
%%DATADIR%%/etc/ocspd/pki/token.d/eracom.xml.sample
10
%%DATADIR%%/etc/ocspd/ca.d/collegeca.xml.sample
11
%%DATADIR%%/etc/ocspd/ca.d/self-certs.xml.sample
12
@dir etc/ocspd/ca.d
13
@dir etc/ocspd/certs
14
@dir etc/ocspd/crls
15
@dir etc/ocspd/pki/hsm.d
16
@dir etc/ocspd/pki/profile.d
17
@dir etc/ocspd/pki/token.d
18
@dir etc/ocspd/private

Return to bug 264475