32773ba201
* Fix incorrect path in pkg-message * Fix quoting error in periodic script PR: 212727 Submitted by: Sascha Holzleiter <sascha@root-login.org> (maintainer) MFH: 2016Q3
83 lines
2.4 KiB
Makefile
83 lines
2.4 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= dehydrated
|
|
PORTVERSION= 0.3.1
|
|
DISTVERSIONPREFIX= v
|
|
PORTREVISION= 1
|
|
CATEGORIES= security
|
|
|
|
MAINTAINER= sascha@root-login.org
|
|
COMMENT= Pure BASH/ZSH Lets Encrypt client
|
|
|
|
LICENSE= MIT
|
|
LICENSE_FILE= ${WRKSRC}/LICENSE
|
|
|
|
RUN_DEPENDS= curl:ftp/curl
|
|
|
|
USE_GITHUB= yes
|
|
GH_ACCOUNT= lukas2511
|
|
|
|
OPTIONS_SINGLE= SHELL
|
|
OPTIONS_SINGLE_SHELL= BASH ZSH
|
|
BASH_DESC= Use the Bourne Again shell (BASH)
|
|
ZSH_DESC= Use the Z shell (ZSH)
|
|
|
|
OPTIONS_DEFAULT= BASH
|
|
|
|
NO_ARCH= yes
|
|
NO_BUILD= yes
|
|
USES= shebangfix
|
|
|
|
BASH_RUN_DEPENDS= bash:shells/bash
|
|
ZSH_RUN_DEPENDS= zsh:shells/zsh
|
|
|
|
PERIODIC_DIRS= etc/periodic/weekly
|
|
PERIODIC_FILES= 000.dehydrated
|
|
|
|
PLIST_DIRS= %%ETCDIR%%/.acme-challenges \
|
|
www/dehydrated
|
|
PLIST_FILES= bin/dehydrated \
|
|
%%ETCDIR%%/config.example \
|
|
%%ETCDIR%%/hook.sh.example \
|
|
%%ETCDIR%%/domains.txt.example \
|
|
${PERIODIC_DIRS}/000.dehydrated
|
|
PORTDOCS_PLIST_FILES= %%PORTDOCS%%%%DOCSDIR%%/README.md
|
|
|
|
SUB_FILES= 000.dehydrated pkg-message
|
|
SUB_LIST= PORTNAME=${PORTNAME}
|
|
PORTDOCS= README.md dns-verification.md domains_txt.md ecc.md hook_chain.md \
|
|
import-from-official-client.md per-certificate-config.md staging.md \
|
|
troubleshooting.md wellknown.md
|
|
|
|
SHEBANG_FILES= docs/examples/hook.sh dehydrated
|
|
|
|
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/config 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.example
|
|
${INSTALL_DATA} ${WRKSRC}/docs/examples/hook.sh ${STAGEDIR}${ETCDIR}/hook.sh.example
|
|
${INSTALL_DATA} ${WRKSRC}/docs/examples/domains.txt ${STAGEDIR}${ETCDIR}/domains.txt.example
|
|
${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
|
|
${INSTALL_SCRIPT} ${WRKDIR}/${PERIODIC_FILES} ${STAGEDIR}${PREFIX}/${PERIODIC_DIRS}/${PERIODIC_FILES}
|
|
|
|
${MKDIR} ${STAGEDIR}${DOCSDIR}
|
|
${INSTALL_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR}
|
|
. for d in dns-verification domains_txt ecc hook_chain import-from-official-client \
|
|
per-certificate-config staging troubleshooting wellknown
|
|
${INSTALL_MAN} ${WRKSRC}/docs/${d}.md ${STAGEDIR}${DOCSDIR}
|
|
. endfor
|
|
|
|
post-stage:
|
|
${MKDIR} ${STAGEDIR}${PREFIX}/www/dehydrated
|
|
|
|
.include <bsd.port.mk>
|