Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F153073061
D11450.id30383.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
3 KB
Referenced Files
None
Subscribers
None
D11450.id30383.diff
View Options
Index: head/security/acme.sh/Makefile
===================================================================
--- head/security/acme.sh/Makefile
+++ head/security/acme.sh/Makefile
@@ -2,8 +2,8 @@
PORTNAME= acme.sh
PORTVERSION= 2.6.9
-PORTREVISION= 2
DISTVERSIONPREFIX= v
+PORTREVISION= 3
CATEGORIES= security
MAINTAINER= dvl@FreeBSD.org
@@ -34,11 +34,14 @@
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}
Index: head/security/acme.sh/files/acme.sh
===================================================================
--- head/security/acme.sh/files/acme.sh
+++ head/security/acme.sh/files/acme.sh
@@ -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
Index: head/security/acme.sh/files/pkg-install.in
===================================================================
--- head/security/acme.sh/files/pkg-install.in
+++ head/security/acme.sh/files/pkg-install.in
@@ -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
Index: head/security/acme.sh/files/pkg-message.in
===================================================================
--- head/security/acme.sh/files/pkg-message.in
+++ head/security/acme.sh/files/pkg-message.in
@@ -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/
+
+
Index: head/security/acme.sh/pkg-plist
===================================================================
--- head/security/acme.sh/pkg-plist
+++ head/security/acme.sh/pkg-plist
@@ -1,4 +1,5 @@
sbin/acme.sh
+%%EXAMPLESDIR%%/acme.sh
%%EXAMPLESDIR%%/deploy/README.md
%%EXAMPLESDIR%%/deploy/apache.sh
%%EXAMPLESDIR%%/deploy/cpanel.sh
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Apr 19, 11:27 PM (4 h, 32 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31807334
Default Alt Text
D11450.id30383.diff (3 KB)
Attached To
Mode
D11450: Create default dirs and symlink to dnsapi scripts
Attached
Detach File
Event Timeline
Log In to Comment