blob: 24084eeaf43c3aa5976e8f756413a7fd96795199 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
|
PORTNAME= cascade
DISTVERSION= 0.1.0-RC1
CATEGORIES= dns net
MAINTAINER= bofh@FreeBSD.org
COMMENT= Friendly DNSSEC signing solution
WWW= https://github.com/NLnetLabs/cascade
#
LICENSE= BSD3CLAUSE
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= dnst:dns/dnst
USES= cargo cpe ssl
CPE_VENDOR= nlnetlabs
USE_GITHUB= yes
GH_ACCOUNT= NLnetLabs
GH_TAGNAME= e30aba3ed
USE_RC_SUBR= ${PORTNAME}
SUB_LIST= USERS=${USERS} \
GROUPS=${GROUPS} \
DBDIR=${DBDIR}
USERS= ${PORTNAME}
GROUPS= ${PORTNAME}
PLIST_SUB+= USERS=${USERS} \
GROUPS=${GROUPS}
DBDIR= /var/db/${PORTNAME}
post-patch:
@${REINPLACE_CMD} -e 's|%%ETCDIR%%|${ETCDIR}|g; \
s|%%DBDIR%%|${DBDIR}|g; \
s|%%LOCALBASE%%|${LOCALBASE}|g' \
${WRKSRC}/etc/config.template.toml
post-install:
${MKDIR} ${STAGEDIR}${ETCDIR}
${INSTALL_DATA} ${WRKSRC}/etc/policy.template.toml ${STAGEDIR}${ETCDIR}/policy.toml.sample
${INSTALL_DATA} ${WRKSRC}/etc/config.template.toml ${STAGEDIR}${ETCDIR}/config.toml.sample
.include <bsd.port.mk>
|