Index: head/security/acme.sh/Makefile =================================================================== --- head/security/acme.sh/Makefile (revision 444989) +++ head/security/acme.sh/Makefile (revision 444990) @@ -1,47 +1,50 @@ # $FreeBSD$ PORTNAME= acme.sh PORTVERSION= 2.6.9 -PORTREVISION= 2 DISTVERSIONPREFIX= v +PORTREVISION= 3 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/acme.sh =================================================================== --- head/security/acme.sh/files/acme.sh (nonexistent) +++ head/security/acme.sh/files/acme.sh (revision 444990) @@ -0,0 +1,6 @@ +# acme.sh configuration file for newsyslog.conf +# +# see newsyslog.conf(5) for details +# +# logfilename [owner:group] mode count size when flags [/pid_file] [sig_num] +/var/log/acme.sh.log acme:acme 640 90 * @T00 B Property changes on: head/security/acme.sh/files/acme.sh ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/acme.sh/files/pkg-install.in =================================================================== --- head/security/acme.sh/files/pkg-install.in (nonexistent) +++ head/security/acme.sh/files/pkg-install.in (revision 444990) @@ -0,0 +1,29 @@ +#!/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 + /usr/bin/install -d -o acme -g acme -m 750 ~acme/certs + 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 Property changes on: head/security/acme.sh/files/pkg-install.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/acme.sh/files/pkg-message.in =================================================================== --- head/security/acme.sh/files/pkg-message.in (nonexistent) +++ head/security/acme.sh/files/pkg-message.in (revision 444990) @@ -0,0 +1,19 @@ + + +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/ + + Property changes on: head/security/acme.sh/files/pkg-message.in ___________________________________________________________________ Added: fbsd:nokeywords ## -0,0 +1 ## +yes \ No newline at end of property Added: svn:eol-style ## -0,0 +1 ## +native \ No newline at end of property Added: svn:mime-type ## -0,0 +1 ## +text/plain \ No newline at end of property Index: head/security/acme.sh/pkg-plist =================================================================== --- head/security/acme.sh/pkg-plist (revision 444989) +++ head/security/acme.sh/pkg-plist (revision 444990) @@ -1,44 +1,45 @@ sbin/acme.sh +%%EXAMPLESDIR%%/acme.sh %%EXAMPLESDIR%%/deploy/README.md %%EXAMPLESDIR%%/deploy/apache.sh %%EXAMPLESDIR%%/deploy/cpanel.sh %%EXAMPLESDIR%%/deploy/dovecot.sh %%EXAMPLESDIR%%/deploy/exim4.sh %%EXAMPLESDIR%%/deploy/haproxy.sh %%EXAMPLESDIR%%/deploy/keychain.sh %%EXAMPLESDIR%%/deploy/kong.sh %%EXAMPLESDIR%%/deploy/myapi.sh %%EXAMPLESDIR%%/deploy/mysqld.sh %%EXAMPLESDIR%%/deploy/nginx.sh %%EXAMPLESDIR%%/deploy/opensshd.sh %%EXAMPLESDIR%%/deploy/pureftpd.sh %%EXAMPLESDIR%%/deploy/vsftpd.sh %%EXAMPLESDIR%%/dnsapi/README.md %%EXAMPLESDIR%%/dnsapi/dns_ad.sh %%EXAMPLESDIR%%/dnsapi/dns_ali.sh %%EXAMPLESDIR%%/dnsapi/dns_aws.sh %%EXAMPLESDIR%%/dnsapi/dns_cf.sh %%EXAMPLESDIR%%/dnsapi/dns_cloudns.sh %%EXAMPLESDIR%%/dnsapi/dns_cx.sh %%EXAMPLESDIR%%/dnsapi/dns_cyon.sh %%EXAMPLESDIR%%/dnsapi/dns_dgon.sh %%EXAMPLESDIR%%/dnsapi/dns_dnsimple.sh %%EXAMPLESDIR%%/dnsapi/dns_do.sh %%EXAMPLESDIR%%/dnsapi/dns_dp.sh %%EXAMPLESDIR%%/dnsapi/dns_dynu.sh %%EXAMPLESDIR%%/dnsapi/dns_freedns.sh %%EXAMPLESDIR%%/dnsapi/dns_gandi_livedns.sh %%EXAMPLESDIR%%/dnsapi/dns_gd.sh %%EXAMPLESDIR%%/dnsapi/dns_infoblox.sh %%EXAMPLESDIR%%/dnsapi/dns_ispconfig.sh %%EXAMPLESDIR%%/dnsapi/dns_knot.sh %%EXAMPLESDIR%%/dnsapi/dns_lexicon.sh %%EXAMPLESDIR%%/dnsapi/dns_linode.sh %%EXAMPLESDIR%%/dnsapi/dns_lua.sh %%EXAMPLESDIR%%/dnsapi/dns_me.sh %%EXAMPLESDIR%%/dnsapi/dns_myapi.sh %%EXAMPLESDIR%%/dnsapi/dns_nsone.sh %%EXAMPLESDIR%%/dnsapi/dns_nsupdate.sh %%EXAMPLESDIR%%/dnsapi/dns_ovh.sh %%EXAMPLESDIR%%/dnsapi/dns_pdns.sh %%EXAMPLESDIR%%/dnsapi/dns_vscale.sh