Lines 1-7
Link Here
|
1 |
# $FreeBSD: head/security/letsencrypt.sh/Makefile 418767 2016-07-19 11:04:13Z mat $ |
1 |
# $FreeBSD: head/security/letsencrypt.sh/Makefile 418767 2016-07-19 11:04:13Z mat $ |
2 |
|
2 |
|
3 |
PORTNAME= letsencrypt.sh |
3 |
PORTNAME= letsencrypt.sh |
4 |
PORTVERSION= 0.2.0 |
4 |
PORTVERSION= 0.3.0 |
5 |
DISTVERSIONPREFIX= v |
5 |
DISTVERSIONPREFIX= v |
6 |
CATEGORIES= security |
6 |
CATEGORIES= security |
7 |
|
7 |
|
Lines 33-41
Link Here
|
33 |
PERIODIC_DIRS= etc/periodic/weekly |
33 |
PERIODIC_DIRS= etc/periodic/weekly |
34 |
PERIODIC_FILES= 000.letsencrypt.sh |
34 |
PERIODIC_FILES= 000.letsencrypt.sh |
35 |
|
35 |
|
36 |
PLIST_DIRS= %%ETCDIR%%/.acme-challenges |
36 |
PLIST_DIRS= %%ETCDIR%%/.acme-challenges \ |
|
|
37 |
www/letsencrypt |
37 |
PLIST_FILES= bin/letsencrypt.sh \ |
38 |
PLIST_FILES= bin/letsencrypt.sh \ |
38 |
%%ETCDIR%%/config.sh.example \ |
39 |
%%ETCDIR%%/config.example \ |
39 |
%%ETCDIR%%/hook.sh.example \ |
40 |
%%ETCDIR%%/hook.sh.example \ |
40 |
%%ETCDIR%%/domains.txt.example \ |
41 |
%%ETCDIR%%/domains.txt.example \ |
41 |
${PERIODIC_DIRS}/000.letsencrypt.sh |
42 |
${PERIODIC_DIRS}/000.letsencrypt.sh |
Lines 44-71
Link Here
|
44 |
SUB_FILES= 000.letsencrypt.sh pkg-message |
45 |
SUB_FILES= 000.letsencrypt.sh pkg-message |
45 |
SUB_LIST= PORTNAME=${PORTNAME} |
46 |
SUB_LIST= PORTNAME=${PORTNAME} |
46 |
PORTDOCS= README.md dns-verification.md domains_txt.md ecc.md hook_chain.md \ |
47 |
PORTDOCS= README.md dns-verification.md domains_txt.md ecc.md hook_chain.md \ |
47 |
import-from-official-client.md staging.md troubleshooting.md wellknown.md |
48 |
import-from-official-client.md per-certificate-config.md staging.md \ |
|
|
49 |
troubleshooting.md wellknown.md |
48 |
|
50 |
|
49 |
SHEBANG_FILES= docs/examples/config.sh.example docs/examples/hook.sh.example letsencrypt.sh |
51 |
SHEBANG_FILES= docs/examples/hook.sh letsencrypt.sh |
|
|
52 |
|
53 |
post-patch: |
54 |
. for f in docs/examples/config letsencrypt.sh |
55 |
${REINPLACE_CMD} 's|/var/www/letsencrypt|${PREFIX}/www/letsencrypt|' \ |
56 |
${WRKSRC}/${f} |
57 |
. endfor |
50 |
|
58 |
|
51 |
post-patch-ZSH-on: |
59 |
post-patch-ZSH-on: |
52 |
. for p in docs/examples/config.sh.example docs/examples/hook.sh.example letsencrypt.sh |
60 |
. for p in docs/examples/config docs/examples/hook.sh letsencrypt.sh |
53 |
${REINPLACE_CMD} '1 s/bash/zsh/' ${WRKSRC}/${p} |
61 |
${REINPLACE_CMD} '1 s/bash/zsh/' ${WRKSRC}/${p} |
54 |
. endfor |
62 |
. endfor |
55 |
|
63 |
|
56 |
do-install: |
64 |
do-install: |
57 |
@${MKDIR} ${STAGEDIR}${ETCDIR}/.acme-challenges ${STAGEDIR}${PREFIX}/${PERIODIC_DIRS} |
65 |
@${MKDIR} ${STAGEDIR}${ETCDIR}/.acme-challenges ${STAGEDIR}${PREFIX}/${PERIODIC_DIRS} |
58 |
${INSTALL_DATA} ${WRKSRC}/docs/examples/config.sh.example ${STAGEDIR}${ETCDIR}/config.sh.example |
66 |
${INSTALL_DATA} ${WRKSRC}/docs/examples/config ${STAGEDIR}${ETCDIR}/config.example |
59 |
${INSTALL_DATA} ${WRKSRC}/docs/examples/hook.sh.example ${STAGEDIR}${ETCDIR}/hook.sh.example |
67 |
${INSTALL_DATA} ${WRKSRC}/docs/examples/hook.sh ${STAGEDIR}${ETCDIR}/hook.sh.example |
60 |
${INSTALL_DATA} ${WRKSRC}/docs/examples/domains.txt.example ${STAGEDIR}${ETCDIR}/domains.txt.example |
68 |
${INSTALL_DATA} ${WRKSRC}/docs/examples/domains.txt ${STAGEDIR}${ETCDIR}/domains.txt.example |
61 |
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
69 |
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME} |
62 |
${INSTALL_SCRIPT} ${WRKDIR}/${PERIODIC_FILES} ${STAGEDIR}${PREFIX}/${PERIODIC_DIRS}/${PERIODIC_FILES} |
70 |
${INSTALL_SCRIPT} ${WRKDIR}/${PERIODIC_FILES} ${STAGEDIR}${PREFIX}/${PERIODIC_DIRS}/${PERIODIC_FILES} |
63 |
|
71 |
|
64 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
72 |
${MKDIR} ${STAGEDIR}${DOCSDIR} |
65 |
${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} |
73 |
${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} |
66 |
. for d in dns-verification domains_txt ecc hook_chain import-from-official-client \ |
74 |
. for d in dns-verification domains_txt ecc hook_chain import-from-official-client \ |
67 |
staging troubleshooting wellknown |
75 |
per-certificate-config staging troubleshooting wellknown |
68 |
${INSTALL_MAN} ${WRKSRC}/docs/${d}.md ${STAGEDIR}${DOCSDIR} |
76 |
${INSTALL_MAN} ${WRKSRC}/docs/${d}.md ${STAGEDIR}${DOCSDIR} |
69 |
. endfor |
77 |
. endfor |
70 |
|
78 |
|
|
|
79 |
post-stage: |
80 |
${MKDIR} ${STAGEDIR}${PREFIX}/www/letsencrypt |
81 |
|
71 |
.include <bsd.port.mk> |
82 |
.include <bsd.port.mk> |