aboutsummaryrefslogtreecommitdiff
path: root/www/adguardhome/Makefile
diff options
context:
space:
mode:
authorYuri Victorovich <yuri@FreeBSD.org>2021-04-16 21:26:03 +0000
committerYuri Victorovich <yuri@FreeBSD.org>2021-04-16 21:29:13 +0000
commit990e47d4e491bbed9bdd626b4b89f186de5804c7 (patch)
tree83dab940f358c269e92dd3270396b82a30a2b5e9 /www/adguardhome/Makefile
parente016cd8357801bef779b8fc2e27235bb70180964 (diff)
downloadports-990e47d4e491bbed9bdd626b4b89f186de5804c7.tar.gz
ports-990e47d4e491bbed9bdd626b4b89f186de5804c7.zip
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@posteo.de>
Diffstat (limited to 'www/adguardhome/Makefile')
-rw-r--r--www/adguardhome/Makefile30
1 files changed, 30 insertions, 0 deletions
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@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>