mirror of
https://git.FreeBSD.org/ports.git
synced 2024-12-23 04:23:08 +00:00
33649ac2c2
While I'm here, pet portlint: WARN: Makefile: extra item placed in the USES/USE_x section, for example, "NO_BUILD". Changelog: https://github.com/lukas2511/dehydrated/blob/v0.6.5/CHANGELOG PR: 238918 Submitted by: Sascha Holzleiter <sascha root-login org> (maintainer) MFH: 2019Q2 (blanket: bugfix release)
72 lines
2.0 KiB
Makefile
72 lines
2.0 KiB
Makefile
# $FreeBSD$
|
|
|
|
PORTNAME= dehydrated
|
|
DISTVERSIONPREFIX= v
|
|
DISTVERSION= 0.6.5
|
|
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
|
|
|
|
USES= shebangfix
|
|
USE_GITHUB= yes
|
|
|
|
GH_ACCOUNT= lukas2511
|
|
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_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 import-from-official-client \
|
|
per-certificate-config staging troubleshooting wellknown
|
|
${INSTALL_DATA} ${WRKSRC}/docs/${d}.md ${STAGEDIR}${DOCSDIR}
|
|
. endfor
|
|
|
|
.include <bsd.port.mk>
|