summaryrefslogtreecommitdiff
path: root/www/caddy/Makefile
diff options
context:
space:
mode:
authorbsiegert <bsiegert@pkgsrc.org>2017-07-11 20:26:41 +0000
committerbsiegert <bsiegert@pkgsrc.org>2017-07-11 20:26:41 +0000
commitf08ed7e4a714feda204ce74c29c70fc9ae578251 (patch)
tree6a709a544bbc11e22c701bd38dfec684f9ead9c5 /www/caddy/Makefile
parent3bbf4efc45e6f0498651bfdb44c266137501e33b (diff)
downloadpkgsrc-f08ed7e4a714feda204ce74c29c70fc9ae578251.tar.gz
Import caddy-0.10.4 from wip/caddy.
Caddy is a HTTP/2 web server with automatic HTTPS. Caddy was born out of the need for a "batteries-included" web server that runs anywhere and doesn't have to take its configuration with it. Caddy took inspiration from spark, nginx, lighttpd, Websocketd and Vagrant, which provides a pleasant mixture of features from each of them.
Diffstat (limited to 'www/caddy/Makefile')
-rw-r--r--www/caddy/Makefile28
1 files changed, 28 insertions, 0 deletions
diff --git a/www/caddy/Makefile b/www/caddy/Makefile
new file mode 100644
index 00000000000..edfdb40f02f
--- /dev/null
+++ b/www/caddy/Makefile
@@ -0,0 +1,28 @@
+# $NetBSD: Makefile,v 1.1 2017/07/11 20:26:41 bsiegert Exp $
+
+DISTNAME= caddy-${GITHUB_TAG:S/v//}
+CATEGORIES= www
+MASTER_SITES= ${MASTER_SITE_GITHUB:=mholt/}
+GITHUB_TAG= v0.10.4
+
+MAINTAINER= bsiegert@NetBSD.org
+HOMEPAGE= ${MASTER_SITE_GITHUB:=mholt/caddy/}
+COMMENT= General-purpose web server
+LICENSE= apache-2.0
+
+GO_DIST_BASE= ${DISTNAME}
+GO_SRCPATH= github.com/mholt/caddy
+GO_BUILD_PATTERN= ${GO_SRCPATH}/caddy
+
+EXTRACT_USING= bsdtar
+
+INSTALLATION_DIRS= bin
+
+do-install:
+ ${INSTALL_PROGRAM} ${WRKDIR}/bin/caddy ${DESTDIR}${PREFIX}/bin
+
+.include "../../net/go-net/buildlink3.mk"
+.include "../../security/go-crypto/buildlink3.mk"
+
+.include "../../lang/go/go-package.mk"
+.include "../../mk/bsd.pkg.mk"