www/adguardhome: Fix bug that adguardhome didn't show its version
This commit is contained in:
parent
054526fab3
commit
83b19a87c5
1 changed files with 5 additions and 0 deletions
|
@ -1,6 +1,7 @@
|
||||||
PORTNAME= adguardhome
|
PORTNAME= adguardhome
|
||||||
DISTVERSIONPREFIX= v
|
DISTVERSIONPREFIX= v
|
||||||
DISTVERSION= 0.107.8
|
DISTVERSION= 0.107.8
|
||||||
|
PORTREVISION= 1
|
||||||
CATEGORIES= www
|
CATEGORIES= www
|
||||||
|
|
||||||
MAINTAINER= yuri@FreeBSD.org
|
MAINTAINER= yuri@FreeBSD.org
|
||||||
|
@ -30,6 +31,10 @@ USE_RC_SUBR= ${PORTNAME}
|
||||||
|
|
||||||
CPE_VENDOR= adguard
|
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")
|
.if (${DEV_UPDATE_MODE} == "yes")
|
||||||
BUILD_DEPENDS= npm:www/npm \
|
BUILD_DEPENDS= npm:www/npm \
|
||||||
yarn:www/yarn
|
yarn:www/yarn
|
||||||
|
|
Loading…
Reference in a new issue