diff --git a/www/opengist/Makefile b/www/opengist/Makefile index 03b8fe0016e5..e6f898a1517c 100644 --- a/www/opengist/Makefile +++ b/www/opengist/Makefile @@ -1,86 +1,85 @@ PORTNAME= opengist -PORTVERSION= 1.10.0 +PORTVERSION= 1.11.1 DISTVERSIONPREFIX= v -PORTREVISION= 1 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 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 e41209cf3fc0..dba5da9643f2 100644 --- a/www/opengist/distinfo +++ b/www/opengist/distinfo @@ -1,7 +1,7 @@ -TIMESTAMP = 1744459083 -SHA256 (go/www_opengist/opengist-v1.10.0/opengist-1.10.0-node_modules.tgz) = dfeac784d1f3de9dc0f3386e753dc61025d7a012cf54baa6e2aaa76f7fe0ba21 -SIZE (go/www_opengist/opengist-v1.10.0/opengist-1.10.0-node_modules.tgz) = 26316123 -SHA256 (go/www_opengist/opengist-v1.10.0/v1.10.0.mod) = 3a6dda94ea022a2cbdcb57d407b1c51c0ce367c41a8a73d0d8ac377e4e9c180b -SIZE (go/www_opengist/opengist-v1.10.0/v1.10.0.mod) = 5632 -SHA256 (go/www_opengist/opengist-v1.10.0/v1.10.0.zip) = 68b03325b7eef05aec65cbac266aefe741aeba7c4a006ef0c9b0cfac8fe416c0 -SIZE (go/www_opengist/opengist-v1.10.0/v1.10.0.zip) = 1658078 +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 +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 diff --git a/www/opengist/pkg-plist b/www/opengist/pkg-plist index a4c0c7b52f98..11cb85e5b3ea 100644 --- a/www/opengist/pkg-plist +++ b/www/opengist/pkg-plist @@ -1,15 +1,78 @@ bin/opengist -@sample(opengist,opengist,640) %%ETCDIR%%/config.yml.sample +%%ETCDIR%%/config.yml.sample +etc/rc.d/opengist +%%WWWDIR%%/assets/KaTeX_AMS-Regular-0cdd387c.woff2 +%%WWWDIR%%/assets/KaTeX_AMS-Regular-30da91e8.woff +%%WWWDIR%%/assets/KaTeX_AMS-Regular-68534840.ttf +%%WWWDIR%%/assets/KaTeX_Caligraphic-Bold-07d8e303.ttf +%%WWWDIR%%/assets/KaTeX_Caligraphic-Bold-1ae6bd74.woff +%%WWWDIR%%/assets/KaTeX_Caligraphic-Bold-de7701e4.woff2 +%%WWWDIR%%/assets/KaTeX_Caligraphic-Regular-3398dd02.woff +%%WWWDIR%%/assets/KaTeX_Caligraphic-Regular-5d53e70a.woff2 +%%WWWDIR%%/assets/KaTeX_Caligraphic-Regular-ed0b7437.ttf +%%WWWDIR%%/assets/KaTeX_Fraktur-Bold-74444efd.woff2 +%%WWWDIR%%/assets/KaTeX_Fraktur-Bold-9163df9c.ttf +%%WWWDIR%%/assets/KaTeX_Fraktur-Bold-9be7ceb8.woff +%%WWWDIR%%/assets/KaTeX_Fraktur-Regular-1e6f9579.ttf +%%WWWDIR%%/assets/KaTeX_Fraktur-Regular-51814d27.woff2 +%%WWWDIR%%/assets/KaTeX_Fraktur-Regular-5e28753b.woff +%%WWWDIR%%/assets/KaTeX_Main-Bold-0f60d1b8.woff2 +%%WWWDIR%%/assets/KaTeX_Main-Bold-138ac28d.ttf +%%WWWDIR%%/assets/KaTeX_Main-Bold-c76c5d69.woff +%%WWWDIR%%/assets/KaTeX_Main-BoldItalic-70ee1f64.ttf +%%WWWDIR%%/assets/KaTeX_Main-BoldItalic-99cd42a3.woff2 +%%WWWDIR%%/assets/KaTeX_Main-BoldItalic-a6f7ec0d.woff +%%WWWDIR%%/assets/KaTeX_Main-Italic-0d85ae7c.ttf +%%WWWDIR%%/assets/KaTeX_Main-Italic-97479ca6.woff2 +%%WWWDIR%%/assets/KaTeX_Main-Italic-f1d6ef86.woff +%%WWWDIR%%/assets/KaTeX_Main-Regular-c2342cd8.woff2 +%%WWWDIR%%/assets/KaTeX_Main-Regular-c6368d87.woff +%%WWWDIR%%/assets/KaTeX_Main-Regular-d0332f52.ttf +%%WWWDIR%%/assets/KaTeX_Math-BoldItalic-850c0af5.woff +%%WWWDIR%%/assets/KaTeX_Math-BoldItalic-dc47344d.woff2 +%%WWWDIR%%/assets/KaTeX_Math-BoldItalic-f9377ab0.ttf +%%WWWDIR%%/assets/KaTeX_Math-Italic-08ce98e5.ttf +%%WWWDIR%%/assets/KaTeX_Math-Italic-7af58c5e.woff2 +%%WWWDIR%%/assets/KaTeX_Math-Italic-8a8d2445.woff +%%WWWDIR%%/assets/KaTeX_SansSerif-Bold-1ece03f7.ttf +%%WWWDIR%%/assets/KaTeX_SansSerif-Bold-e99ae511.woff2 +%%WWWDIR%%/assets/KaTeX_SansSerif-Bold-ece03cfd.woff +%%WWWDIR%%/assets/KaTeX_SansSerif-Italic-00b26ac8.woff2 +%%WWWDIR%%/assets/KaTeX_SansSerif-Italic-3931dd81.ttf +%%WWWDIR%%/assets/KaTeX_SansSerif-Italic-91ee6750.woff +%%WWWDIR%%/assets/KaTeX_SansSerif-Regular-11e4dc8a.woff +%%WWWDIR%%/assets/KaTeX_SansSerif-Regular-68e8c73e.woff2 +%%WWWDIR%%/assets/KaTeX_SansSerif-Regular-f36ea897.ttf +%%WWWDIR%%/assets/KaTeX_Script-Regular-036d4e95.woff2 +%%WWWDIR%%/assets/KaTeX_Script-Regular-1c67f068.ttf +%%WWWDIR%%/assets/KaTeX_Script-Regular-d96cdf2b.woff +%%WWWDIR%%/assets/KaTeX_Size1-Regular-6b47c401.woff2 +%%WWWDIR%%/assets/KaTeX_Size1-Regular-95b6d2f1.ttf +%%WWWDIR%%/assets/KaTeX_Size1-Regular-c943cc98.woff +%%WWWDIR%%/assets/KaTeX_Size2-Regular-2014c523.woff +%%WWWDIR%%/assets/KaTeX_Size2-Regular-a6b2099f.ttf +%%WWWDIR%%/assets/KaTeX_Size2-Regular-d04c5421.woff2 +%%WWWDIR%%/assets/KaTeX_Size3-Regular-500e04d5.ttf +%%WWWDIR%%/assets/KaTeX_Size3-Regular-6ab6b62e.woff +%%WWWDIR%%/assets/KaTeX_Size3-Regular-73d59127.woff2 +%%WWWDIR%%/assets/KaTeX_Size4-Regular-99f9c675.woff +%%WWWDIR%%/assets/KaTeX_Size4-Regular-a4af7d41.woff2 +%%WWWDIR%%/assets/KaTeX_Size4-Regular-c647367d.ttf +%%WWWDIR%%/assets/KaTeX_Typewriter-Regular-71d517d6.woff2 +%%WWWDIR%%/assets/KaTeX_Typewriter-Regular-e14fed02.woff +%%WWWDIR%%/assets/KaTeX_Typewriter-Regular-f01f3e87.ttf +%%WWWDIR%%/assets/_commonjsHelpers-725317a4.js %%WWWDIR%%/assets/admin-f49fd6c0.js -%%WWWDIR%%/assets/editor-dd91ca8c.js -%%WWWDIR%%/assets/embed-3b762c54.css -%%WWWDIR%%/assets/embed-ba879bc1.js +%%WWWDIR%%/assets/editor-61bea3d7.js +%%WWWDIR%%/assets/embed-80b40d30.js +%%WWWDIR%%/assets/embed-ecec9fcb.css %%WWWDIR%%/assets/favicon-32-5d82ace6.png -%%WWWDIR%%/assets/gist-bdaf8125.js -%%WWWDIR%%/assets/main-33049c6e.js -%%WWWDIR%%/assets/main-742e3dff.css +%%WWWDIR%%/assets/gist-e6a5436c.js +%%WWWDIR%%/assets/main-230cd4e3.js +%%WWWDIR%%/assets/main-41bc6569.css %%WWWDIR%%/assets/opengist-85b89b9c.svg -%%WWWDIR%%/assets/webauthn-da047c6d.js +%%WWWDIR%%/assets/style_preferences-1f030604.js +%%WWWDIR%%/assets/webauthn-93328862.js %%WWWDIR%%/manifest.json @dir(opengist,opengist,640) /var/db/opengist @dir(opengist,opengist,600) /var/run/opengist