aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJimmy Olgeni <olgeni@FreeBSD.org>2021-11-21 09:29:24 +0000
committerJimmy Olgeni <olgeni@FreeBSD.org>2021-11-21 09:31:18 +0000
commit180fcf0dd85e535b91a02f3cda1cb570ffdd9b5b (patch)
treeaf1de244608cee7d57c044ad82b53a9f168f7597
parent40785247672532767d34dfd33a5932a44c596d0b (diff)
www/xcaddy: add port
This command line tool and associated Go package makes it easy to make custom builds of the Caddy Web Server. Custom caddy builds are required to activate 3rd party plugins. The resulting 'caddy' executable is not part of the package, and you will have to manage it on your own.
-rw-r--r--www/Makefile1
-rw-r--r--www/xcaddy/Makefile24
-rw-r--r--www/xcaddy/distinfo5
-rw-r--r--www/xcaddy/pkg-descr7
4 files changed, 37 insertions, 0 deletions
diff --git a/www/Makefile b/www/Makefile
index f2d84caaefe9..42a8f0a783d5 100644
--- a/www/Makefile
+++ b/www/Makefile
@@ -2359,6 +2359,7 @@
SUBDIR += wwwoffle
SUBDIR += xapian-omega
SUBDIR += xapian-omega12
+ SUBDIR += xcaddy
SUBDIR += xfce4-smartbookmark-plugin
SUBDIR += xh
SUBDIR += xist
diff --git a/www/xcaddy/Makefile b/www/xcaddy/Makefile
new file mode 100644
index 000000000000..4c8303858e17
--- /dev/null
+++ b/www/xcaddy/Makefile
@@ -0,0 +1,24 @@
+PORTNAME= xcaddy
+DISTVERSIONPREFIX= v
+DISTVERSION= 0.2.0
+CATEGORIES= www
+DIST_SUBDIR= xcaddy
+
+MAINTAINER= olgeni@FreeBSD.org
+COMMENT= Command line tool to make custom builds of the Caddy Web Server
+
+LICENSE= APACHE20
+LICENSE_FILE= ${WRKSRC}/LICENSE
+
+USES= cpe go:modules
+CPE_VENDOR= caddyserver
+
+USE_GITHUB= yes
+GH_ACCOUNT= caddyserver
+GH_TUPLE= Masterminds:semver:v3.1.1:masterminds_semver_v3/vendor/github.com/Masterminds/semver/v3
+
+GO_TARGET= ./cmd/xcaddy
+
+PLIST_FILES= bin/${PORTNAME}
+
+.include <bsd.port.mk>
diff --git a/www/xcaddy/distinfo b/www/xcaddy/distinfo
new file mode 100644
index 000000000000..ba7b4d948457
--- /dev/null
+++ b/www/xcaddy/distinfo
@@ -0,0 +1,5 @@
+TIMESTAMP = 1637431945
+SHA256 (xcaddy/caddyserver-xcaddy-v0.2.0_GH0.tar.gz) = 20e4994cc52323f8420741efafa78b8d29b1ad600e59671287436e236c2c3be2
+SIZE (xcaddy/caddyserver-xcaddy-v0.2.0_GH0.tar.gz) = 21358
+SHA256 (xcaddy/Masterminds-semver-v3.1.1_GH0.tar.gz) = d029a39800f201d5b95ec5dbf653e5b20aab757783a6876be1b3017d1c4a444f
+SIZE (xcaddy/Masterminds-semver-v3.1.1_GH0.tar.gz) = 24506
diff --git a/www/xcaddy/pkg-descr b/www/xcaddy/pkg-descr
new file mode 100644
index 000000000000..9256593ee0db
--- /dev/null
+++ b/www/xcaddy/pkg-descr
@@ -0,0 +1,7 @@
+Caddy is a powerful, enterprise-ready, open source web server with
+automatic HTTPS written in Go.
+
+This command line tool and associated Go package makes it easy to
+make custom builds of the Caddy Web Server.
+
+WWW: https://github.com/caddyserver/xcaddy