Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 05 Jun 2026 07:14:00 +0000
From:      Martin Matuska <mm@FreeBSD.org>
To:        ports-committers@FreeBSD.org, dev-commits-ports-all@FreeBSD.org, dev-commits-ports-main@FreeBSD.org
Subject:   git: b219477d3ae1 - main - www/fmd-server: enable package build
Message-ID:  <6a227738.36954.3cd30eb8@gitrepo.freebsd.org>

index | next in thread | raw e-mail

The branch main has been updated by mm:

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

commit b219477d3ae1a74ceed17265d6b395a449eb8532
Author:     Martin Matuska <mm@FreeBSD.org>
AuthorDate: 2026-06-05 07:13:37 +0000
Commit:     Martin Matuska <mm@FreeBSD.org>
CommitDate: 2026-06-05 07:13:37 +0000

    www/fmd-server: enable package build
    
    Use pnpm and node module cache from LOCAL master site
---
 www/fmd-server/Makefile | 23 ++++++++++++++---------
 www/fmd-server/distinfo |  4 +++-
 2 files changed, 17 insertions(+), 10 deletions(-)

diff --git a/www/fmd-server/Makefile b/www/fmd-server/Makefile
index da2724b4324b..36692e0fb23e 100644
--- a/www/fmd-server/Makefile
+++ b/www/fmd-server/Makefile
@@ -1,8 +1,10 @@
 PORTNAME=	fmd-server
 DISTVERSIONPREFIX=	v
 DISTVERSION=	0.15.0
-PORTREVISION=	1
+PORTREVISION=	2
 CATEGORIES=	www
+#MASTER_SITES=	LOCAL/mm/${PORTNAME}/:pnpmcache
+#DISTFILES=	${PORTNAME}-pnpm-cache-${DISTVERSION}${EXTRACT_SUFX}:pnpmcache
 
 MAINTAINER=	mm@FreeBSD.org
 COMMENT=	FMD web server to locate and control your devices
@@ -18,8 +20,6 @@ GL_ACCOUNT=	fmd-foss
 GO_MODULE=	gitlab.com/fmd-foss/fmd-server
 GO_TARGET=	${GO_PKGNAME} ./ctl:fmd-server-ctl
 
-NO_PACKAGE=	downloads nodejs modules during web interface build
-
 USE_RC_SUBR=	${PORTNAME}
 
 CONFIGURE_ENV=	COREPACK_ENABLE_DOWNLOAD_PROMPT=0
@@ -73,13 +73,8 @@ GL_TUPLE=	\
 		cznic:memory:0a6f7544739330ad95572cc272626a60176f2faf:cznic_memory/vendor/modernc.org/memory \
 		cznic:sqlite:bb6a17d8df4bb5fe2c530d512ca14e8ddfeffc47:cznic_sqlite/vendor/modernc.org/sqlite
 
-post-configure:
-		@${MKDIR} ${WRKDIR}/.bin
-		@cd ${WRKSRC}/web && \
-			${SETENV} ${CONFIGURE_ENV} corepack enable --install-directory ${WRKDIR}/.bin && \
-			${SETENV} ${CONFIGURE_ENV} pnpm install
-
 pre-build:
+		@${MKDIR} ${WRKDIR}/.bin
 		@cd ${WRKSRC}/web && \
 			${SETENV} ${MAKE_ENV} corepack enable --install-directory ${WRKDIR}/.bin && \
 			${SETENV} ${MAKE_ENV} pnpm build
@@ -88,4 +83,14 @@ post-install:
 	        @${MKDIR} ${STAGEDIR}${ETCDIR}
 		${INSTALL_DATA} ${WRKSRC}/config.example.yml ${STAGEDIR}${ETCDIR}/config.yml.sample
 
+# (for maintainer) helper target to generate tarball with pnpm cache and node modules
+make-pnpm-cache: configure
+	@${MKDIR} ${WRKDIR}/.bin
+	@cd ${WRKSRC}/web && \
+		${SETENV} ${CONFIGURE_ENV} corepack enable --install-directory ${WRKDIR}/.bin && \
+		${SETENV} ${CONFIGURE_ENV} pnpm install
+	@cd ${WRKDIR} \
+		&& ${TAR} -c --zstd -f ${PORTNAME}-pnpm-cache-${DISTVERSION}${EXTRACT_SUFX} pnpm .cache/pnpm .cache/node ${GO_MODNAME}@${GO_MODVERSION}/web/node_modules \
+		&& ${ECHO} "Please upload the file: scp ${WRKDIR}/${PORTNAME}-pnpm-cache-${DISTVERSION}${EXTRACT_SUFX} mm@freefall.freebsd.org:public_distfiles/${PORTNAME}/"
+
 .include <bsd.port.mk>
diff --git a/www/fmd-server/distinfo b/www/fmd-server/distinfo
index 4ceb6cd02018..61cf114e09d9 100644
--- a/www/fmd-server/distinfo
+++ b/www/fmd-server/distinfo
@@ -1,4 +1,6 @@
-TIMESTAMP = 1778705056
+TIMESTAMP = 1780642929
+SHA256 (go/www_fmd-server/fmd-server-v0.15.0/fmd-server-pnpm-cache-0.15.0.tar.gz) = 204aec49c8ad10808867fabfe50d204fa4c265a60fd4406103688d2544094283
+SIZE (go/www_fmd-server/fmd-server-v0.15.0/fmd-server-pnpm-cache-0.15.0.tar.gz) = 60709296
 SHA256 (go/www_fmd-server/fmd-server-v0.15.0/v0.15.0.mod) = 7c53e9317ee82323e75a5f86246a0a6b0bfeba934bdfdf4729be88611ecf377e
 SIZE (go/www_fmd-server/fmd-server-v0.15.0/v0.15.0.mod) = 1993
 SHA256 (go/www_fmd-server/fmd-server-v0.15.0/v0.15.0.zip) = 9e50105a26dd81a4a86753b6a6752436fa36496c95f26c93c479710e9c247cfe


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6a227738.36954.3cd30eb8>