Index: head/www/caddy/Makefile =================================================================== --- head/www/caddy/Makefile +++ head/www/caddy/Makefile @@ -2,8 +2,8 @@ # $FreeBSD$ PORTNAME= caddy -PORTVERSION= 0.10.10 DISTVERSIONPREFIX= v +DISTVERSION= 0.10.11 CATEGORIES= www MAINTAINER= fabian.freyer@physik.tu-berlin.de @@ -18,12 +18,11 @@ GO_PKGNAME= github.com/${GH_ACCOUNT}/${PORTNAME} +SUB_FILES= pkg-message PLIST_FILES= bin/caddy etc/rc.d/caddy -STRIP= # stripping can break go binaries - do-build: - @(cd ${GO_WRKSRC}/${PORTNAME}; ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} build) + @cd ${GO_WRKSRC}/${PORTNAME} && ${SETENV} ${MAKE_ENV} ${GO_ENV} ${GO_CMD} build do-install: ${INSTALL_PROGRAM} ${GO_WRKSRC}/${PORTNAME}/${PORTNAME} \ Index: head/www/caddy/distinfo =================================================================== --- head/www/caddy/distinfo +++ head/www/caddy/distinfo @@ -1,3 +1,3 @@ -TIMESTAMP = 1507749383 -SHA256 (mholt-caddy-v0.10.10_GH0.tar.gz) = aafaeb092e7b1bcff8ec31f19a1ded1253ff95cfdd4441378e5a530508614e8d -SIZE (mholt-caddy-v0.10.10_GH0.tar.gz) = 2706112 +TIMESTAMP = 1519337935 +SHA256 (mholt-caddy-v0.10.11_GH0.tar.gz) = c473121840532dfbe8e98b2663442c4a6602b684a5dc234081fdc41d98e0ae95 +SIZE (mholt-caddy-v0.10.11_GH0.tar.gz) = 2860871 Index: head/www/caddy/files/pkg-message.in =================================================================== --- head/www/caddy/files/pkg-message.in +++ head/www/caddy/files/pkg-message.in @@ -0,0 +1,34 @@ +***************************************************************** + +www/caddy does not ship with any in-tree documentation. Online +documentation can be found at https://caddyserver.com/docs. + +To use www/caddy, create a configuration file in the Caddyfile +format in %%PREFIX%%/www/Caddyfile and enable caddy in your +rc.conf: + +# sysrc caddy_enable="YES" +# service caddy start + +Example Caddyfile +================= +mysite.com { + root %%PREFIX%%/www/mysite.com +} + +sub.mysite.com { + root %%PREFIX%%/www/sub.mysite.com + gzip + log /var/log/sub.mysite.com/access.log +} + +Automatic HTTPS using letsencrypt.org +===================================== + +Provide an SSL certificate issuer email in your rc.conf. By +providing an email address you automatically agree to +letsencrypt.org's general terms and conditions: + +caddy_cert_email="your.email@example.org" + +*****************************************************************