git: 990e47d4e491 - main - www/adguardhome: Use pre-bilt html frontend tarballs and mantenance mode which allows to build them.
Yuri Victorovich
yuri at FreeBSD.org
Fri Apr 16 21:29:16 UTC 2021
The branch main has been updated by yuri:
URL: https://cgit.FreeBSD.org/ports/commit/?id=990e47d4e491bbed9bdd626b4b89f186de5804c7
commit 990e47d4e491bbed9bdd626b4b89f186de5804c7
Author: Yuri Victorovich <yuri at FreeBSD.org>
AuthorDate: 2021-04-16 21:26:03 +0000
Commit: Yuri Victorovich <yuri at FreeBSD.org>
CommitDate: 2021-04-16 21:29:13 +0000
www/adguardhome: Use pre-bilt html frontend tarballs and mantenance mode which allows to build them.
Port was broken without this since they recently added the need for html
frontend being presend before build and such frontend was missing.
Reported by: Sandro Wirth <sandro.wirth at posteo.de>
---
www/adguardhome/Makefile | 30 ++++++++++++++++++++++++++++++
www/adguardhome/distinfo | 6 +++++-
2 files changed, 35 insertions(+), 1 deletion(-)
diff --git a/www/adguardhome/Makefile b/www/adguardhome/Makefile
index 76dcd49c3004..77f3e49d4b3c 100644
--- a/www/adguardhome/Makefile
+++ b/www/adguardhome/Makefile
@@ -1,6 +1,7 @@
PORTNAME= adguardhome
DISTVERSIONPREFIX= v
DISTVERSION= 0.105.2
+PORTREVISION= 1
CATEGORIES= www
MAINTAINER= yuri at FreeBSD.org
@@ -13,6 +14,35 @@ USES= go:modules
GO_MODULE= github.com/AdguardTeam/AdGuardHome
+# to rebuild the deps archives:
+# 1. set DEV_UPDATE_MODE=yes
+# 2. make makesum patch build
+# 3. upload the *-html-build* archives
+# 4. set DEV_UPDATE_MODE=no
+# 5. make clean makesum
+
+DEV_UPDATE_MODE= no
+
+.if (${DEV_UPDATE_MODE} == "yes")
+BUILD_DEPENDS= npm:www/npm \
+ yarn:www/yarn
+do-build:
+ @cd ${WRKSRC} && \
+ ${SETENV} ${MAKE_ENV} ${MAKE_CMD} js-deps js-build && \
+ ${TAR} czf ${DISTDIR}/${PORTNAME}-html-build-${DISTVERSION}${EXTRACT_SUFX} build && \
+ ${TAR} czf ${DISTDIR}/${PORTNAME}-html-build2-${DISTVERSION}${EXTRACT_SUFX} build2 && \
+ ${ECHO} "Please upload files ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-html-build-${DISTVERSION}${EXTRACT_SUFX} and ${DISTDIR}/${DIST_SUBDIR}/${PORTNAME}-html-build2-${DISTVERSION}${EXTRACT_SUFX}"
+.else
+MASTER_SITES= LOCAL/yuri/:deps
+DISTFILES= ${PORTNAME}-html-build-${DISTVERSION}${EXTRACT_SUFX}:deps \
+ ${PORTNAME}-html-build2-${DISTVERSION}${EXTRACT_SUFX}:deps
+EXTRACT_ONLY= ${PORTNAME}-html-build-${DISTVERSION}${EXTRACT_SUFX} \
+ ${PORTNAME}-html-build2-${DISTVERSION}${EXTRACT_SUFX}
+
+pre-build:
+ @${CP} -r ${WRKDIR}/build ${WRKDIR}/build2 ${WRKSRC}/
+.endif
+
PLIST_FILES= bin/${PORTNAME}
.include <bsd.port.mk>
diff --git a/www/adguardhome/distinfo b/www/adguardhome/distinfo
index 3a9749f16558..d0a74207115c 100644
--- a/www/adguardhome/distinfo
+++ b/www/adguardhome/distinfo
@@ -1,4 +1,8 @@
-TIMESTAMP = 1615482485
+TIMESTAMP = 1618476839
+SHA256 (go/www_adguardhome/adguardhome-v0.105.2/adguardhome-html-build-0.105.2.tar.gz) = 4226f4e211d411470a9992355b58cb9fd2eb36d50922c5df7efa46cccc04b966
+SIZE (go/www_adguardhome/adguardhome-v0.105.2/adguardhome-html-build-0.105.2.tar.gz) = 2331678
+SHA256 (go/www_adguardhome/adguardhome-v0.105.2/adguardhome-html-build2-0.105.2.tar.gz) = 713d26da7def3291c23da2129c857ff321a12f444b7197ecfdaaedcef656bee3
+SIZE (go/www_adguardhome/adguardhome-v0.105.2/adguardhome-html-build2-0.105.2.tar.gz) = 2414450
SHA256 (go/www_adguardhome/adguardhome-v0.105.2/v0.105.2.mod) = 327afecea8c2cb272a04733275b9df5e127fd846a32e48ff40c7cecf83ef84c4
SIZE (go/www_adguardhome/adguardhome-v0.105.2/v0.105.2.mod) = 1750
SHA256 (go/www_adguardhome/adguardhome-v0.105.2/v0.105.2.zip) = f72335906f3f55786e228f20fba62c7f3980e1058aeaa7d7b4d01ae0f45e87aa
More information about the dev-commits-ports-all
mailing list