Index: head/security/acme.sh/Makefile =================================================================== --- head/security/acme.sh/Makefile (revision 462047) +++ head/security/acme.sh/Makefile (revision 462048) @@ -1,52 +1,52 @@ # $FreeBSD$ PORTNAME= acme.sh PORTVERSION= 2.7.6 -PORTREVISION= 1 +PORTREVISION= 2 CATEGORIES= security MAINTAINER= dvl@FreeBSD.org COMMENT= ACME protocol client written in shell LICENSE= GPLv3+ USE_GITHUB= yes GH_ACCOUNT= Neilpang USERS= acme GROUPS= acme OPTIONS_DEFINE= DOCS BINDTOOLS STANDALONE OPTIONS_SINGLE= HTTP OPTIONS_SINGLE_HTTP= CURL WGET OPTIONS_DEFAULT= CURL STANDALONE BINDTOOLS_DESC= Depend on bind-tools for nsupdate BINDTOOLS_RUN_DEPENDS= ${LOCALBASE}/bin/nsupdate:dns/bind-tools STANDALONE_DESC= Standalone mode requires SOCAT STANDALONE_RUN_DEPENDS= socat>0:net/socat CURL_DESC= Depend on cURL for HTTP(S) queries WGET_DESC= Depend on Wget for HTTP(S) queries NO_ARCH= yes NO_BUILD= yes CURL_RUN_DEPENDS= curl:ftp/curl WGET_RUN_DEPENDS= wget:ftp/wget PORTDOCS= README.md SUB_FILES= pkg-install pkg-message do-install: ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/sbin/${PORTNAME} ${MKDIR} ${STAGEDIR}${EXAMPLESDIR}/deploy ${STAGEDIR}${EXAMPLESDIR}/dnsapi ( cd ${WRKSRC} && ${COPYTREE_BIN} deploy ${STAGEDIR}${EXAMPLESDIR} ) ( cd ${WRKSRC} && ${COPYTREE_BIN} dnsapi ${STAGEDIR}${EXAMPLESDIR} ) ${INSTALL_DATA} ${FILESDIR}/acme.sh ${STAGEDIR}${EXAMPLESDIR} do-install-DOCS-on: ${MKDIR} ${STAGEDIR}${DOCSDIR} ${INSTALL_DATA} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} .include Index: head/security/acme.sh/files/pkg-install.in =================================================================== --- head/security/acme.sh/files/pkg-install.in (revision 462047) +++ head/security/acme.sh/files/pkg-install.in (revision 462048) @@ -1,29 +1,33 @@ #!/bin/sh # # $FreeBSD$ if [ "$2" = "POST-INSTALL" ]; then if [ ! -d ~acme/.acme.sh ]; then /usr/bin/install -d -o acme -g acme -m 750 ~acme/.acme.sh fi - if [ ! -d ~acme/certs ]; then + if [ ! -d ~acme/certs ]; then /usr/bin/install -d -o acme -g acme -m 750 ~acme/certs fi - + + if [ ! -d ~acme/.acme.sh/deploy ]; then + /bin/ln -sf %%EXAMPLESDIR%%/deploy ~acme/.acme.sh + fi + if [ ! -d ~acme/.acme.sh/dnsapi ]; then /bin/ln -sf %%EXAMPLESDIR%%/dnsapi ~acme/.acme.sh fi - + if [ ! -f ~acme/.acme.sh/account.conf.sample ]; then /bin/cat << EOF >> ~acme/.acme.sh/account.conf.sample NSUPDATE_SERVER="mydns.example.org" NSUPDATE_KEY="/var/db/acme/Kmydns.example.org.+165+59977.key" DEFAULT_DNS_SLEEP="10" CERT_HOME="/var/db/acme/certs" LOG_FILE='/var/log/acme.sh.log' EOF /bin/chmod 640 ~acme/.acme.sh/account.conf.sample fi fi