Index: head/security/Makefile =================================================================== --- head/security/Makefile +++ head/security/Makefile @@ -287,6 +287,7 @@ SUBDIR += lasso SUBDIR += lastpass-cli SUBDIR += letsencrypt.sh + SUBDIR += letskencrypt SUBDIR += libadacrypt SUBDIR += libassuan SUBDIR += libbeid Index: head/security/letskencrypt/Makefile =================================================================== --- head/security/letskencrypt/Makefile +++ head/security/letskencrypt/Makefile @@ -0,0 +1,41 @@ +# Created by: Bernard Spil +# $FreeBSD$ + +PORTNAME= letskencrypt +PORTVERSION= 0.1.5 +CATEGORIES= security + +MAINTAINER= brnrd@FreeBSD.org +COMMENT= Native C client for Let's Encrypt, designed for security + +LICENSE= ISCL + +USES= gmake +USE_GITHUB= yes +USE_OPENSSL= yes + +GH_ACCOUNT= kristapsdz +GH_PROJECT= ${PORTNAME}-portable +GH_TAGNAME= VERSION_${PORTVERSION:S/./_/g} + +MAKEFILE= GNUmakefile +MAKE_ARGS= PREFIX=${STAGEDIR}/${PREFIX} + +WITH_OPENSSL_PORT= yes +OPENSSL_PORT= security/libressl + +WWWDIR= ${PREFIX}/www/letsencrypt + +post-patch: + ${REINPLACE_CMD} -e "s|/etc/|${PREFIX}/etc/|" \ + -e "s|/var/www/letsencrypt|${WWWDIR}|" \ + ${WRKSRC}/main.c ${WRKSRC}/letskencrypt.1 + +post-stage: + ${STRIP_CMD} ${STAGEDIR}${PREFIX}/bin/letskencrypt +. for d in etc/ssl/letsencrypt etc/ssl/letsencrypt/private \ + etc/letsencrypt www/letsencrypt + ${MKDIR} ${STAGEDIR}${PREFIX}/${d} +. endfor + +.include Index: head/security/letskencrypt/distinfo =================================================================== --- head/security/letskencrypt/distinfo +++ head/security/letskencrypt/distinfo @@ -0,0 +1,3 @@ +TIMESTAMP = 1464616584 +SHA256 (kristapsdz-letskencrypt-portable-0.1.5-VERSION_0_1_5_GH0.tar.gz) = 046b46711202beb7a012b81aabacf4407434a655857eacedd9f76d0306c4867a +SIZE (kristapsdz-letskencrypt-portable-0.1.5-VERSION_0_1_5_GH0.tar.gz) = 39307 Index: head/security/letskencrypt/pkg-descr =================================================================== --- head/security/letskencrypt/pkg-descr +++ head/security/letskencrypt/pkg-descr @@ -0,0 +1,5 @@ +letskencrypt is a client for Let's Encrypt users, but one designed for +security. No Python. No Ruby. No Bash. A straightforward, open source +implementation in C that isolates each step of the sequence. + +WWW: https://kristaps.bsd.lv/letskencrypt/ Index: head/security/letskencrypt/pkg-plist =================================================================== --- head/security/letskencrypt/pkg-plist +++ head/security/letskencrypt/pkg-plist @@ -0,0 +1,7 @@ +bin/letskencrypt +man/man1/letskencrypt.1.gz +@dir(,,0700) etc/letsencrypt +@dir(,,0755) etc/ssl +@dir(,,0755) etc/ssl/letsencrypt +@dir(,,0700) etc/ssl/letsencrypt/private +@dir(,www,) %%WWWDIR%%