Index: head/sysutils/anvil/Makefile =================================================================== --- head/sysutils/anvil/Makefile (revision 451385) +++ head/sysutils/anvil/Makefile (revision 451386) @@ -1,44 +1,45 @@ # $FreeBSD$ PORTNAME= anvil PORTVERSION= 0.0.11 +PORTREVISION= 1 CATEGORIES= sysutils MAINTAINER= dvl@FreeBSD.org COMMENT= Tools for distributing ssl certificates LICENSE= BSD2CLAUSE USE_GITHUB= yes GH_ACCOUNT= dlangille USERS= anvil GROUPS= anvil SUB_FILES+= cert-shifter.conf.sample cert-puller.conf.sample pkg-install pkg-message NO_BUILD= yes OPTIONS_SINGLE= SG1 OPTIONS_SINGLE_SG1= FETCH CURL WGET OPTIONS_DEFAULT= FETCH FETCH_DESC= Use fetch CURL_DESC= Use curl, not fetch WGET_DESC= Use wget, not fetch CURL_RUN_DEPENDS= curl:ftp/curl WGET_RUN_DEPENDS= wget:ftp/wget FETCH_FETCH_TOOL= fetch CURL_FETCH_TOOL= curl WGET_FETCH_TOOL= wget do-install: ${MKDIR} ${STAGEDIR}${ETCDIR} ${MKDIR} ${STAGEDIR}/var/db/anvil ${INSTALL_DATA} ${WRKDIR}/cert-shifter.conf.sample ${STAGEDIR}${ETCDIR} ${INSTALL_DATA} ${WRKDIR}/cert-puller.conf.sample ${STAGEDIR}${ETCDIR} ${INSTALL_SCRIPT} ${WRKSRC}/cert-shifter ${STAGEDIR}${PREFIX}/bin ${INSTALL_SCRIPT} ${WRKSRC}/cert-puller ${STAGEDIR}${PREFIX}/bin .include Index: head/sysutils/anvil/files/cert-puller.conf.sample.in =================================================================== --- head/sysutils/anvil/files/cert-puller.conf.sample.in (revision 451385) +++ head/sysutils/anvil/files/cert-puller.conf.sample.in (revision 451386) @@ -1,4 +1,3 @@ CERT_SERVER="https://certs.example.org/certs" MYCERTS="services.example.org" SERVICES="nginx" -FETCH_TOOL="%%FETCH_TOOL%%" Index: head/sysutils/anvil/files/pkg-message.in =================================================================== --- head/sysutils/anvil/files/pkg-message.in (revision 451385) +++ head/sysutils/anvil/files/pkg-message.in (revision 451386) @@ -1,54 +1,48 @@ **************************************************************************** After installing anvil, this is a short checklist of things to do, depending on which tools are using. For cert-puller: * adjust /usr/local/etc/anvil/cert-puller.conf * run 'cert-puller -s' to see the visudo settings you need * adjust the service configuration files (e.g. httpd.conf) if cert filenames are different from defaults. By default, anvil uses: * example.org.fullchain.cer * example.org.key * anvil does not distribute .key files. Do that manually. * install the crontab for anvil: sudo crontab -u anvil -e ### # 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=you@example.org 7 13 * * * /usr/local/bin/cert-puller ### For cert-shifter: * adjust /usr/local/etc/anvil/cert-shifter.conf * install the crontab for anvil: sudo crontab -u anvil -e ### # 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=you@example.org 19 20 * * * /usr/local/bin/cert-shifter ### -To use wget, set FETCH_TOOL="wget" in cert-puller.conf -To use curl, set FETCH_TOOL="curl" in cert-puller.conf - -The default argments to fetch, curl, and wget can be overridden -in cert-puller.conf. See the website for details. - ****************************************************************************