blob: 4e2f6289873a61dca1bc28417641663d0a01ebd4 (
plain)
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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
|
PORTNAME= dehydrated
DISTVERSIONPREFIX= v
DISTVERSION= 0.7.0
CATEGORIES= security
MAINTAINER= meta@FreeBSD.org
COMMENT= Pure BASH/ZSH Lets Encrypt client
LICENSE= MIT
LICENSE_FILE= ${WRKSRC}/LICENSE
RUN_DEPENDS= curl:ftp/curl
USES= shebangfix
USE_GITHUB= yes
GH_ACCOUNT= dehydrated-io
NO_BUILD= yes
NO_ARCH= yes
SHEBANG_FILES= docs/examples/hook.sh dehydrated
PERIODIC_DIRS= etc/periodic/weekly
PERIODIC_FILES= 000.dehydrated
SUB_FILES= 000.dehydrated pkg-message
SUB_LIST= PORTNAME=${PORTNAME}
OPTIONS_DEFINE= DOCS
OPTIONS_SINGLE= SHELL
OPTIONS_SINGLE_SHELL= BASH ZSH
OPTIONS_DEFAULT= BASH
BASH_DESC= Use the Bourne Again shell (BASH)
ZSH_DESC= Use the Z shell (ZSH)
BASH_RUN_DEPENDS= bash:shells/bash
ZSH_RUN_DEPENDS= zsh:shells/zsh
PORTDOCS= *
post-patch:
. for f in docs/examples/config dehydrated
@${REINPLACE_CMD} 's|/var/www/dehydrated|${PREFIX}/www/dehydrated|' \
${WRKSRC}/${f}
. endfor
post-patch-ZSH-on:
. for p in docs/examples/hook.sh dehydrated
@${REINPLACE_CMD} '1 s/bash/zsh/' ${WRKSRC}/${p}
. endfor
do-install:
@${MKDIR} ${STAGEDIR}${ETCDIR}/.acme-challenges ${STAGEDIR}${PREFIX}/${PERIODIC_DIRS}
${INSTALL_DATA} ${WRKSRC}/docs/examples/config ${STAGEDIR}${ETCDIR}/config.sample
${INSTALL_DATA} ${WRKSRC}/docs/examples/hook.sh ${STAGEDIR}${ETCDIR}/hook.sh.sample
${INSTALL_DATA} ${WRKSRC}/docs/examples/domains.txt ${STAGEDIR}${ETCDIR}/domains.txt.sample
${INSTALL_MAN} ${WRKSRC}/docs/man/dehydrated.1 ${STAGEDIR}${MANPREFIX}/man/man1
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
${INSTALL_SCRIPT} ${WRKDIR}/${PERIODIC_FILES} ${STAGEDIR}${PREFIX}/${PERIODIC_DIRS}/${PERIODIC_FILES}
@${MKDIR} ${STAGEDIR}${PREFIX}/www/dehydrated
do-install-DOCS-on:
@${MKDIR} ${STAGEDIR}${DOCSDIR}
${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
. for d in dns-verification domains_txt ecc hook_chain \
per-certificate-config staging tls-alpn troubleshooting wellknown
${INSTALL_DATA} ${WRKSRC}/docs/${d}.md ${STAGEDIR}${DOCSDIR}
. endfor
.include <bsd.port.mk>
|