From owner-svn-ports-all@freebsd.org Wed Feb 3 20:54:53 2016 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B8DBEA9A403; Wed, 3 Feb 2016 20:54:53 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mx1.freebsd.org (Postfix) with ESMTPS id 4F88E10BA; Wed, 3 Feb 2016 20:54:53 +0000 (UTC) (envelope-from sunpoet@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id u13KsqKU088748; Wed, 3 Feb 2016 20:54:52 GMT (envelope-from sunpoet@FreeBSD.org) Received: (from sunpoet@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id u13Ksptj088742; Wed, 3 Feb 2016 20:54:51 GMT (envelope-from sunpoet@FreeBSD.org) Message-Id: <201602032054.u13Ksptj088742@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: sunpoet set sender to sunpoet@FreeBSD.org using -f From: Sunpoet Po-Chuan Hsieh Date: Wed, 3 Feb 2016 20:54:51 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-head@freebsd.org Subject: svn commit: r407982 - in head/security: . letsencrypt.sh letsencrypt.sh/files X-SVN-Group: ports-head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 03 Feb 2016 20:54:53 -0000 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 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@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 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