svn commit: r407982 - in head/security: . letsencrypt.sh letsencrypt.sh/files
Sunpoet Po-Chuan Hsieh
sunpoet at FreeBSD.org
Wed Feb 3 20:54:53 UTC 2016
Author: sunpoet
Date: Wed Feb 3 20:54:51 2016
New Revision: 407982
URL: https://svnweb.freebsd.org/changeset/ports/407982
Log:
- Add letsencrypt.sh
- While I'm here:
- Remove LOCALBASE/bin from RUN_DEPENDS
- Use USES=shebangfix
- Use ETCDIR
- Add 000.letsencrypt.sh to SUB_FILES
- Remove GH_PROJECT
- Simplify Makefile
Letencrypt.sh is a pure BASH implementation of the ACME
protocol used by Lets Encrypt.
WWW: https://github.com/lukas2511/letsencrypt.sh
PR: 206375
Submitted by: Sascha Holzleiter <sascha at root-login.org>
Added:
head/security/letsencrypt.sh/
head/security/letsencrypt.sh/Makefile (contents, props changed)
head/security/letsencrypt.sh/distinfo (contents, props changed)
head/security/letsencrypt.sh/files/
head/security/letsencrypt.sh/files/000.letsencrypt.sh.in (contents, props changed)
head/security/letsencrypt.sh/files/pkg-message.in (contents, props changed)
head/security/letsencrypt.sh/pkg-descr (contents, props changed)
Modified:
head/security/Makefile
Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile Wed Feb 3 20:54:46 2016 (r407981)
+++ head/security/Makefile Wed Feb 3 20:54:51 2016 (r407982)
@@ -283,6 +283,7 @@
SUBDIR += l5
SUBDIR += lasso
SUBDIR += lastpass-cli
+ SUBDIR += letsencrypt.sh
SUBDIR += libassuan
SUBDIR += libbeid
SUBDIR += libbf
Added: head/security/letsencrypt.sh/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/letsencrypt.sh/Makefile Wed Feb 3 20:54:51 2016 (r407982)
@@ -0,0 +1,45 @@
+# $FreeBSD$
+
+PORTNAME= letsencrypt.sh
+PORTVERSION= 0.0.0.20160116
+CATEGORIES= security
+
+MAINTAINER= sascha at root-login.org
+COMMENT= Pure BASH Lets Encrypt client
+
+LICENSE= MIT
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+RUN_DEPENDS= bash:${PORTSDIR}/shells/bash \
+ curl:${PORTSDIR}/ftp/curl
+
+USE_GITHUB= yes
+GH_ACCOUNT= lukas2511
+GH_TAGNAME= 23b0ef5
+
+NO_ARCH= yes
+NO_BUILD= yes
+USES= shebangfix
+
+PERIODIC_DIRS= etc/periodic/monthly
+PERIODIC_FILES= 000.letsencrypt.sh
+
+PLIST_DIRS= %%ETCDIR%%/.acme-challenges
+PLIST_FILES= bin/letsencrypt.sh \
+ %%ETCDIR%%/config.sh.example \
+ %%ETCDIR%%/domains.txt.example \
+ etc/periodic/monthly/000.letsencrypt.sh
+
+SUB_FILES= 000.letsencrypt.sh pkg-message
+SUB_LIST= PORTNAME=${PORTNAME}
+
+SHEBANG_FILES= config.sh.example
+
+do-install:
+ @${MKDIR} ${STAGEDIR}${ETCDIR}/.acme-challenges ${STAGEDIR}${PREFIX}/${PERIODIC_DIRS}
+ ${INSTALL_DATA} ${WRKSRC}/config.sh.example ${STAGEDIR}${ETCDIR}/config.sh.example
+ ${INSTALL_DATA} ${WRKSRC}/domains.txt.example ${STAGEDIR}${ETCDIR}/domains.txt.example
+ ${INSTALL_SCRIPT} ${WRKSRC}/${PORTNAME} ${STAGEDIR}${PREFIX}/bin/${PORTNAME}
+ ${INSTALL_SCRIPT} ${WRKDIR}/${PERIODIC_FILES} ${STAGEDIR}${PREFIX}/${PERIODIC_DIRS}/${PERIODIC_FILES}
+
+.include <bsd.port.mk>
Added: head/security/letsencrypt.sh/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/letsencrypt.sh/distinfo Wed Feb 3 20:54:51 2016 (r407982)
@@ -0,0 +1,2 @@
+SHA256 (lukas2511-letsencrypt.sh-0.0.0.20160116-23b0ef5_GH0.tar.gz) = bac41812abec6ff36e13b72bf8c84de20a7e3d5568a0fdae848a693c08973683
+SIZE (lukas2511-letsencrypt.sh-0.0.0.20160116-23b0ef5_GH0.tar.gz) = 12190
Added: head/security/letsencrypt.sh/files/000.letsencrypt.sh.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/letsencrypt.sh/files/000.letsencrypt.sh.in Wed Feb 3 20:54:51 2016 (r407982)
@@ -0,0 +1,18 @@
+#!/bin/sh
+
+# If there is a global system configuration file, suck it in.
+#
+if [ -r /etc/defaults/periodic.conf ]
+then
+ . /etc/defaults/periodic.conf
+ source_periodic_confs
+fi
+
+case "$monthly_letsencrypt_enable" in
+ [Yy][Ee][Ss])
+ %%PREFIX%%/bin/letsencrypt.sh -c
+ ;;
+ *)
+ ;;
+esac
+
Added: head/security/letsencrypt.sh/files/pkg-message.in
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/letsencrypt.sh/files/pkg-message.in Wed Feb 3 20:54:51 2016 (r407982)
@@ -0,0 +1,14 @@
+
+To use this script you should copy the examples in
+%%PREFIX%%/etc/%%PORTNAME%%/ and at least add a
+domain and a contact mail address.
+
+You should also copy the openssl.cnf.sample file in
+%%PREFIX%%/openssl so you won't get warnings about
+it missing.
+
+In order to run the script regularly to update
+the certificates add this line to /etc/periodic.conf
+
+monthly_letsencrypt_enable="YES"
+
Added: head/security/letsencrypt.sh/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/letsencrypt.sh/pkg-descr Wed Feb 3 20:54:51 2016 (r407982)
@@ -0,0 +1,4 @@
+Letencrypt.sh is a pure BASH implementation of the ACME
+protocol used by Lets Encrypt.
+
+WWW: https://github.com/lukas2511/letsencrypt.sh
More information about the svn-ports-all
mailing list