summaryrefslogtreecommitdiff
path: root/www/xcaddy/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'www/xcaddy/Makefile')
-rw-r--r--www/xcaddy/Makefile23
1 files changed, 10 insertions, 13 deletions
diff --git a/www/xcaddy/Makefile b/www/xcaddy/Makefile
index b8e7d1abeb54..1a25c3c54912 100644
--- a/www/xcaddy/Makefile
+++ b/www/xcaddy/Makefile
@@ -1,7 +1,7 @@
PORTNAME= xcaddy
DISTVERSIONPREFIX= v
-DISTVERSION= 0.4.2
-PORTREVISION= 5
+DISTVERSION= 0.4.5
+PORTREVISION= 1
CATEGORIES= www
DIST_SUBDIR= xcaddy
@@ -12,20 +12,17 @@ WWW= https://github.com/caddyserver/xcaddy
LICENSE= APACHE20
LICENSE_FILE= ${WRKSRC}/LICENSE
-# xcaddy actually needs to run the go command to perform builds
-RUN_DEPENDS= go:lang/go
-
-USES= go:modules
-
-USE_GITHUB= yes
-GH_ACCOUNT= caddyserver
-GH_TUPLE= Masterminds:semver:v3.2.1:masterminds_semver_v3/vendor/github.com/Masterminds/semver/v3 \
- akavel:rsrc:v0.10.2:akavel_rsrc/vendor/github.com/akavel/rsrc \
- google:shlex:e7afc7fbc510:google_shlex/vendor/github.com/google/shlex \
- josephspurrier:goversioninfo:v1.4.0:josephspurrier_goversioninfo/vendor/github.com/josephspurrier/goversioninfo
+USES= go:modules,run
+GO_MODULE= github.com/caddyserver/xcaddy
GO_TARGET= ./cmd/xcaddy
+SUB_FILES= pkg-message
+
PLIST_FILES= bin/${PORTNAME}
+post-patch:
+ ${REINPLACE_CMD} 's,return "go",return "${GO_CMD}",g' \
+ ${WRKSRC}/internal/utils/environment.go
+
.include <bsd.port.mk>