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> |