diff --git a/www/opengist/Makefile b/www/opengist/Makefile index cf5acb6ddde2..e65b2fc1bf64 100644 --- a/www/opengist/Makefile +++ b/www/opengist/Makefile @@ -1,85 +1,85 @@ PORTNAME= opengist -PORTVERSION= 1.8.4 +PORTVERSION= 1.9.1 DISTVERSIONPREFIX= v CATEGORIES= www textproc -MASTER_SITES= LOCAL/dch/:js +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 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_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 && \ ${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 4559945d6e54..4346a5566896 100644 --- a/www/opengist/distinfo +++ b/www/opengist/distinfo @@ -1,7 +1,7 @@ -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 -SIZE (go/www_opengist/opengist-v1.8.4/v1.8.4.zip) = 1621282 +TIMESTAMP = 1741483525 +SHA256 (go/www_opengist/opengist-v1.9.1/opengist-1.9.1-node_modules.tgz) = 94ceab5613d1eece895653da7d87e443aa0b85c6c028af53e13316363e000e45 +SIZE (go/www_opengist/opengist-v1.9.1/opengist-1.9.1-node_modules.tgz) = 26318979 +SHA256 (go/www_opengist/opengist-v1.9.1/v1.9.1.mod) = 7860d23fbe82a30fab00acd5b2abfc16b452f82e851b9972c1b675a96a8acec2 +SIZE (go/www_opengist/opengist-v1.9.1/v1.9.1.mod) = 4916 +SHA256 (go/www_opengist/opengist-v1.9.1/v1.9.1.zip) = 4eaa6cb1e01b9de8e36f35d4bb71442504c2e7a02fde3b057efb0a1c77836177 +SIZE (go/www_opengist/opengist-v1.9.1/v1.9.1.zip) = 1633418 diff --git a/www/opengist/pkg-plist b/www/opengist/pkg-plist index 7881d75cf384..a4c0c7b52f98 100644 --- a/www/opengist/pkg-plist +++ b/www/opengist/pkg-plist @@ -1,16 +1,15 @@ bin/opengist @sample(opengist,opengist,640) %%ETCDIR%%/config.yml.sample %%WWWDIR%%/assets/admin-f49fd6c0.js -%%WWWDIR%%/assets/default-f34219fc.png %%WWWDIR%%/assets/editor-dd91ca8c.js %%WWWDIR%%/assets/embed-3b762c54.css %%WWWDIR%%/assets/embed-ba879bc1.js %%WWWDIR%%/assets/favicon-32-5d82ace6.png %%WWWDIR%%/assets/gist-bdaf8125.js -%%WWWDIR%%/assets/main-4eb45586.js -%%WWWDIR%%/assets/main-54c7a69f.css +%%WWWDIR%%/assets/main-33049c6e.js +%%WWWDIR%%/assets/main-742e3dff.css %%WWWDIR%%/assets/opengist-85b89b9c.svg %%WWWDIR%%/assets/webauthn-da047c6d.js %%WWWDIR%%/manifest.json @dir(opengist,opengist,640) /var/db/opengist @dir(opengist,opengist,600) /var/run/opengist