Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 24 Jul 2022 17:42:52 GMT
From:      Yuri Victorovich <yuri@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-branches@FreeBSD.org
Subject:   git: 095b4db39c34 - 2022Q3 - www/adguardhome: Fix bug that adguardhome didn't show its version
Message-ID:  <202207241742.26OHgqtt082576@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch 2022Q3 has been updated by yuri:

URL: https://cgit.FreeBSD.org/ports/commit/?id=095b4db39c3404bbbd9cd57a8cab4ee92554d785

commit 095b4db39c3404bbbd9cd57a8cab4ee92554d785
Author:     Yuri Victorovich <yuri@FreeBSD.org>
AuthorDate: 2022-07-24 17:38:41 +0000
Commit:     Yuri Victorovich <yuri@FreeBSD.org>
CommitDate: 2022-07-24 17:42:39 +0000

    www/adguardhome: Fix bug that adguardhome didn't show its version
    
    (cherry picked from commit 83b19a87c593645ab3120f2711e562fd6a0f9174)
---
 www/adguardhome/Makefile | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/www/adguardhome/Makefile b/www/adguardhome/Makefile
index e20e3d26a4a3..c212230bb9e1 100644
--- a/www/adguardhome/Makefile
+++ b/www/adguardhome/Makefile
@@ -31,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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202207241742.26OHgqtt082576>