Index: head/security/acme.sh/Makefile =================================================================== --- head/security/acme.sh/Makefile (revision 449798) +++ head/security/acme.sh/Makefile (revision 449799) @@ -1,48 +1,49 @@ # $FreeBSD$ PORTNAME= acme.sh PORTVERSION= 2.7.4 +PORTREVISION= 1 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 OPTIONS_SINGLE= HTTP OPTIONS_SINGLE_HTTP= CURL WGET OPTIONS_DEFAULT= CURL BINDTOOLS_DESC= Depend on bind-tools for nsupdate BINDTOOLS_RUN_DEPENDS= ${LOCALBASE}/bin/nsupdate:dns/bind-tools 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_MAN} ${WRKSRC}/README.md ${STAGEDIR}${DOCSDIR} .include Index: head/security/acme.sh/files/pkg-message.in =================================================================== --- head/security/acme.sh/files/pkg-message.in (revision 449798) +++ head/security/acme.sh/files/pkg-message.in (revision 449799) @@ -1,19 +1,32 @@ This script will create the following directories if they do not exist: ~acme/.acme.sh ~acme/certs The script will also install ~acme/.acme.sh/account.conf.sample which has sane defaults. Copy this to ~acme/.acme.sh/account.conf and edit contents to suit. In the %%EXAMPLESDIR%% directory, you can find the dnsapi scripts which will be useful if you decide to use dns-01 challenges. Also included are the deploy scripts. A newsyslog.conf sample file is provided at %%EXAMPLESDIR%%/acme.sh and you could create a symlink from that to %%PREFIX%%/etc/newsyslog.conf.d/ +Your sample cronjob looks like this: + +############################################################################ +$ sudo crontab -l -u acme +# use /bin/sh to run commands, overriding the default set by cron +SHELL=/bin/sh +# mail any output to here, no matter whose crontab this is +MAILTO=dan@example.org + +7 22 * * * /usr/local/sbin/acme.sh --cron --home /var/db/acme/.acme.sh > /dev/null +############################################################################ + +Change x & y to some minute and hour of the day.