aboutsummaryrefslogtreecommitdiff
path: root/www/adguardhome/Makefile
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2022-07-24 17:58:03 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2022-07-24 17:58:03 +0000
commitfb665ff9ffbbf77084e4bcaa48b2c6eb2fb66c55 (patch)
treeb623a9a865786a376f6592eb42a1cabb5206e8dd /www/adguardhome/Makefile
parentf08229797a23738b62f4f94d1ac2e58469bb1605 (diff)
downloadports-fb665ff9ffbbf77084e4bcaa48b2c6eb2fb66c55.tar.gz
ports-fb665ff9ffbbf77084e4bcaa48b2c6eb2fb66c55.zip
www/adguardhome: Set version using GO_BUILDFLAGS
Suggested by: dmgk@
Diffstat (limited to 'www/adguardhome/Makefile')
-rw-r--r--www/adguardhome/Makefile5
1 files changed, 1 insertions, 4 deletions
diff --git a/www/adguardhome/Makefile b/www/adguardhome/Makefile
index 52cadb15f9b9..ca7dbd134b77 100644
--- a/www/adguardhome/Makefile
+++ b/www/adguardhome/Makefile
@@ -15,6 +15,7 @@ RUN_DEPENDS= ca_root_nss>=0:security/ca_root_nss
USES= cpe go:modules
GO_MODULE= github.com/AdguardTeam/AdGuardHome
+GO_BUILDFLAGS= -ldflags="-s -w -X github.com/AdguardTeam/AdGuardHome/internal/version.version=${DISTVERSION}" # workaround for https://github.com/AdguardTeam/AdGuardHome/issues/4774
# to rebuild the deps archives:
# 1. set DEV_UPDATE_MODE=yes
@@ -31,10 +32,6 @@ USE_RC_SUBR= ${PORTNAME}
CPE_VENDOR= adguard
-post-patch:
- # workaround for https://github.com/AdguardTeam/AdGuardHome/issues/4774
- @${REINPLACE_CMD} -e 's|version string|version string = "${PORTVERSION}"|' ${WRKSRC}/internal/version/version.go
-
.if (${DEV_UPDATE_MODE} == "yes")
BUILD_DEPENDS= npm:www/npm \
yarn:www/yarn