Page MenuHomeFreeBSD

D49246.1791149430.diff
No OneTemporary

Size
4 KB
Referenced Files
None
Subscribers
None

D49246.1791149430.diff

Index: www/opengist/Makefile
===================================================================
--- www/opengist/Makefile
+++ www/opengist/Makefile
@@ -1,8 +1,9 @@
PORTNAME= opengist
PORTVERSION= 1.8.4
DISTVERSIONPREFIX= v
+PORTREVISION= 1
CATEGORIES= www textproc
-MASTER_SITES= LOCAL/fox/:js
+MASTER_SITES= LOCAL/dch/:js
DISTFILES= opengist-${DISTVERSION}-node_modules.tgz:js
MAINTAINER= fox@FreeBSD.org
@@ -11,23 +12,23 @@
LICENSE= AGPLv3
-BROKEN_aarch64= fails to build
BROKEN_i386= fails to build
BUILD_DEPENDS= npm${NODEJS_SUFFIX}>0:www/npm${NODEJS_SUFFIX}
RUN_DEPENDS= git:devel/git
-USES= go:modules nodejs:20,build
-USE_RC_SUBR= opengist
+USES= go:1.23,modules nodejs:20,build
USE_GITHUB= nodefault
GH_ACCOUNT= thomiceli
GH_PROJECT= opengist
+USE_RC_SUBR= opengist
GO_MODULE= github.com/thomiceli/opengist
GO_TARGET= .
GO_BUILDFLAGS= -tags fs_embed \
-ldflags="-X github.com/thomiceli/opengist/internal/config.OpengistVersion=v${DISTVERSION}"
+GO_ENV+= GOTOOLCHAIN=local+path
post-extract:
@${RLN} ${WRKDIR}/node_modules ${WRKSRC}/node_modules
@@ -37,18 +38,26 @@
${WRKSRC}/config.yml
pre-build:
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} npx --offline vite -c public/vite.config.js build
- cd ${WRKSRC} && ${SETENV} ${MAKE_ENV} \
- EMBED=1 npx --offline postcss 'public/assets/embed-*.css' -c public/postcss.config.js --replace
+ cd ${WRKSRC} && \
+ ${SETENV} ${MAKE_ENV} npx --offline vite -c public/vite.config.js \
+ build
+ cd ${WRKSRC} && \
+ ${SETENV} ${MAKE_ENV} EMBED=1 npx --offline postcss 'public/assets/embed-*.css' \
+ -c public/postcss.config.js --replace
post-install:
${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME}
- ${INSTALL_DATA} ${WRKSRC}/config.yml ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/config.yml.sample
+ ${INSTALL_DATA} ${WRKSRC}/config.yml \
+ ${STAGEDIR}${PREFIX}/etc/${PORTNAME}/config.yml.sample
${MKDIR} ${STAGEDIR}/var/db/${PORTNAME}
${MKDIR} ${STAGEDIR}/var/run/${PORTNAME}
${MKDIR} ${STAGEDIR}${WWWDIR}/assets
- cd ${WRKSRC} && ${INSTALL_DATA} public/assets/* ${STAGEDIR}${WWWDIR}/assets
- cd ${WRKSRC} && ${INSTALL_DATA} public/manifest.json ${STAGEDIR}${WWWDIR}
+ cd ${WRKSRC} && \
+ ${INSTALL_DATA} public/assets/* \
+ ${STAGEDIR}${WWWDIR}/assets
+ cd ${WRKSRC} && \
+ ${INSTALL_DATA} public/manifest.json \
+ ${STAGEDIR}${WWWDIR}
#
# To update the opengist-${DISTVERSION}-node_modules.tgz archive:
@@ -61,9 +70,14 @@
regenerate-node_modules-distfile: patch
cd ${WRKSRC} && \
- ${RM} -r node_modules && \
- ${MAKE_ENV} npm install --prefix ${WRKSRC} && \
- ${TAR} czf ${DISTDIR}/opengist-${DISTVERSION}-node_modules.tgz node_modules && \
- ${ECHO} "Please upload the file ${DISTDIR}/opengist-${DISTVERSION}-node_modules.tgz"
+ ${RM} -r node_modules && \
+ ${MAKE_ENV} npm install --prefix ${WRKSRC} && \
+ ${MAKE_ENV} npm install --prefix ${WRKSRC} --os freebsd --cpu \
+ amd64 esbuild@0.18.20 && \
+ ${MAKE_ENV} npm install --prefix ${WRKSRC} --os freebsd --cpu \
+ arm64 esbuild@0.18.20 && \
+ ${TAR} czf ${DISTDIR}/opengist-${DISTVERSION}-node_modules.tgz \
+ node_modules && \
+ ${ECHO} "Please upload the file ${DISTDIR}/opengist-${DISTVERSION}-node_modules.tgz"
.include <bsd.port.mk>
Index: www/opengist/distinfo
===================================================================
--- www/opengist/distinfo
+++ www/opengist/distinfo
@@ -1,6 +1,6 @@
-TIMESTAMP = 1735040783
-SHA256 (go/www_opengist/opengist-v1.8.4/opengist-1.8.4-node_modules.tgz) = 5fea4ceb76e5654a0ddc704cd212764f8a85663f569670b8750e16c8918a465c
-SIZE (go/www_opengist/opengist-v1.8.4/opengist-1.8.4-node_modules.tgz) = 22568160
+TIMESTAMP = 1741184663
+SHA256 (go/www_opengist/opengist-v1.8.4/opengist-1.8.4-node_modules.tgz) = 8aa17fda03b079a33a547a18bdd18e9792da02257bfb3c0ded442270d9efd044
+SIZE (go/www_opengist/opengist-v1.8.4/opengist-1.8.4-node_modules.tgz) = 26305117
SHA256 (go/www_opengist/opengist-v1.8.4/v1.8.4.mod) = e23e2417d8d5b9b0cfee169732e45679fe2cda94d3153c9edb51cc56ce7343ec
SIZE (go/www_opengist/opengist-v1.8.4/v1.8.4.mod) = 5060
SHA256 (go/www_opengist/opengist-v1.8.4/v1.8.4.zip) = 40454c34f595bba558c294bd65aeaf15efd97bb2aa07f78afcbb6b08582227e2
Index: www/opengist/pkg-plist
===================================================================
--- www/opengist/pkg-plist
+++ www/opengist/pkg-plist
@@ -1,6 +1,5 @@
bin/opengist
%%ETCDIR%%/config.yml.sample
-etc/rc.d/opengist
%%WWWDIR%%/assets/admin-f49fd6c0.js
%%WWWDIR%%/assets/default-f34219fc.png
%%WWWDIR%%/assets/editor-dd91ca8c.js

File Metadata

Mime Type
text/plain
Expires
Sun, Oct 4, 9:30 PM (18 h, 26 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30162841
Default Alt Text
D49246.1791149430.diff (4 KB)

Event Timeline