diff --git a/www/opengist/Makefile b/www/opengist/Makefile index e6f898a1517c..846e6668c699 100644 --- a/www/opengist/Makefile +++ b/www/opengist/Makefile @@ -1,85 +1,86 @@ PORTNAME= opengist PORTVERSION= 1.11.1 DISTVERSIONPREFIX= v CATEGORIES= www textproc MASTER_SITES= LOCAL/fox/:js DISTFILES= opengist-${DISTVERSION}-node_modules.tgz:js MAINTAINER= fox@FreeBSD.org COMMENT= Self-hosted pastebin powered by Git, open-source alternative to Github Gist. WWW= https://opengist.io/ LICENSE= AGPLv3 BROKEN_i386= fails to build +ONLY_FOR_ARCHS= aarch64 amd64 BUILD_DEPENDS= npm${NODEJS_SUFFIX}>0:www/npm${NODEJS_SUFFIX} RUN_DEPENDS= git:devel/git 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_ENV+= GOTOOLCHAIN=local+path GO_TARGET= . GO_BUILDFLAGS= -tags fs_embed \ -ldflags="-X github.com/thomiceli/opengist/internal/config.OpengistVersion=v${DISTVERSION}" -GO_ENV+= GOTOOLCHAIN=local+path GROUP= opengist USER= opengist post-extract: @${RLN} ${WRKDIR}/node_modules ${WRKSRC}/node_modules post-patch: @${REINPLACE_CMD} -e 's|opengist.db|file:/var/db/${PORTNAME}/opengist.db|g' \ ${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 post-install: ${MKDIR} ${STAGEDIR}${PREFIX}/etc/${PORTNAME} ${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} # # To update the opengist-${DISTVERSION}-node_modules.tgz archive: # 1. Comment out the DISTFILES and post-extract lines # 2. Run 'make makesum regenerate-node_modules-distfile clean' # 3. Upload the archive # 4. Uncomment the lines from step #1 # 5. Run 'make makesum' # regenerate-node_modules-distfile: patch cd ${WRKSRC} && \ ${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 && \ + ${MAKE_ENV} npm install --prefix ${WRKSRC} --os freebsd --cpu \ + amd64 esbuild@0.18.20 && \ + ${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" .include diff --git a/www/opengist/distinfo b/www/opengist/distinfo index dba5da9643f2..57d44f964383 100644 --- a/www/opengist/distinfo +++ b/www/opengist/distinfo @@ -1,7 +1,7 @@ -TIMESTAMP = 1762159245 -SHA256 (go/www_opengist/opengist-v1.11.1/opengist-1.11.1-node_modules.tgz) = fead2b40980ab115623b47e64e439ba66e2d7ec9c63c4ed9393c4bc885a8a888 -SIZE (go/www_opengist/opengist-v1.11.1/opengist-1.11.1-node_modules.tgz) = 25500787 +TIMESTAMP = 1762322900 +SHA256 (go/www_opengist/opengist-v1.11.1/opengist-1.11.1-node_modules.tgz) = 340ebaa290ab0e91fec8e20014ec15286a108a76ba6260a982762c06f163463f +SIZE (go/www_opengist/opengist-v1.11.1/opengist-1.11.1-node_modules.tgz) = 29311888 SHA256 (go/www_opengist/opengist-v1.11.1/v1.11.1.mod) = 9c44b9e720c397348bdfcd5774f3c681c64c114c4f817f559f97b1bef1631203 SIZE (go/www_opengist/opengist-v1.11.1/v1.11.1.mod) = 5783 SHA256 (go/www_opengist/opengist-v1.11.1/v1.11.1.zip) = 6e9361f2433d2d1249d5b68bca8b4accd2661430ef271e0839f06953818c3d7a SIZE (go/www_opengist/opengist-v1.11.1/v1.11.1.zip) = 1686483