www/adguardhome: Fix bug that adguardhome didn't show its version

This commit is contained in:
Yuri Victorovich 2022-07-24 10:38:41 -07:00
parent 054526fab3
commit 83b19a87c5

View file

@ -1,6 +1,7 @@
PORTNAME= adguardhome
DISTVERSIONPREFIX= v
DISTVERSION= 0.107.8
PORTREVISION= 1
CATEGORIES= www
MAINTAINER= yuri@FreeBSD.org
@ -30,6 +31,10 @@ 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