diff --git a/net/gotify-server/Makefile b/net/gotify-server/Makefile index 2cf0629d390c..8c88e09dc236 100644 --- a/net/gotify-server/Makefile +++ b/net/gotify-server/Makefile @@ -1,76 +1,75 @@ PORTNAME= gotify-server -PORTVERSION= 2.5.0 +PORTVERSION= 2.6.0 DISTVERSIONPREFIX= v -PORTREVISION= 1 CATEGORIES= net MASTER_SITES= https://github.com/mfechner/freebsd-net-gotify-server/raw/refs/heads/main/:yarn_cache DISTNAME= server DISTFILES= ${PORTNAME}-yarn-offline-cache-${DISTVERSION}${EXTRACT_SUFX}:yarn_cache MAINTAINER= mfechner@FreeBSD.org COMMENT= Simple server for sending and receiving messages WWW= https://github.com/gotify/server LICENSE= MIT BUILD_DEPENDS= yarn${NODEJS_SUFFIX}>=1.10.0:www/yarn${NODEJS_SUFFIX} \ USES= go:modules,1.22 nodejs:build USE_RC_SUBR= gotify_server GO_MODULE= github.com/gotify/server/v2 _BUILD_DATE= $$(date -u "+%Y-%m-%d-%H%M UTC") #GO_TARGET= ./ GO_BUILDFLAGS= -buildmode=pie -modcacherw \ -ldflags=" \ -X 'main.Version=${PORTVERSION}' \ -X 'main.Commit=${GL_TAGNAME:C/^(........).*/\1/}' \ -X 'main.BuildDate=${_BUILD_DATE}' \ -X 'main.Mode=prod'" .include .if ${OPSYS} == FreeBSD && ${OSVERSION} >= 1400000 MAKE_ENV+= NODE_OPTIONS=--openssl-legacy-provider .endif USERS= gotify GROUPS= gotify PLIST_FILES= bin/gotify-server post-patch: # setup yarnrc for offline node_modules installatio @${ECHO_CMD} 'yarn-offline-mirror "${WRKDIR}/yarn-offline-cache"' >> ${WRKSRC}/ui/.yarnrc pre-build: @cd ${WRKSRC}/ui && ${SETENV} ${MAKE_ENV} HOME=${WRKDIR} PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true yarn install --offline @cd ${WRKSRC}/ui && ${SETENV} ${MAKE_ENV} yarn build #${RM} -r ${STAGEDIR}${PREFIX}/share/.cache pre-install: @${RM} ${WRKSRC}/.yarnrc do-install: @${INSTALL_PROGRAM} ${WRKDIR}/bin/gotify-server ${STAGEDIR}${PREFIX}/bin/gotify-server @${MV} ${WRKSRC}/config.example.yml ${WRKSRC}/config.yml.sample @${MKDIR} ${STAGEDIR}${ETCDIR} .for x in config.yml.sample @${CP} ${WRKSRC}/${x} ${STAGEDIR}${ETCDIR}/${x} .endfor @${MKDIR} ${STAGEDIR}/var/db/gotify post-install: @${ECHO} "@sample ${ETCDIR}/config.yml.sample" >> ${TMPPLIST} @${ECHO_CMD} "@owner gotify" >> ${TMPPLIST} @${ECHO_CMD} "@group gotify" >> ${TMPPLIST} @${ECHO_CMD} "@dir /var/db/gotify" >> ${TMPPLIST} #@${ECHO_CMD} "@dir /var/db/gotify/certs" >> ${TMPPLIST} make-yarn-cache: patch ${RM} -r ${WRKDIR}/yarn-offline-cache cd ${WRKSRC}/ui && ${SETENV} ${MAKE_ENV} PUPPETEER_SKIP_CHROMIUM_DOWNLOAD=true yarn --frozen-lockfile --ignore-scripts cd ${WRKDIR} && ${TAR} -czf ${PORTNAME}-yarn-offline-cache-${DISTVERSION}${EXTRACT_SUFX} yarn-offline-cache @${ECHO_CMD} upload ${PORTNAME}-yarn-offline-cache-${DISTVERSION}${EXTRACT_SUFX} .include diff --git a/net/gotify-server/distinfo b/net/gotify-server/distinfo index bcee0d15b4c8..f091a5d35287 100644 --- a/net/gotify-server/distinfo +++ b/net/gotify-server/distinfo @@ -1,7 +1,7 @@ -TIMESTAMP = 1728659826 -SHA256 (go/net_gotify-server/server/gotify-server-yarn-offline-cache-2.5.0.tar.gz) = c175aedf9b868a717949aa8c7541646b5dd8103b1f640f6e601896351e8220dc -SIZE (go/net_gotify-server/server/gotify-server-yarn-offline-cache-2.5.0.tar.gz) = 54176992 -SHA256 (go/net_gotify-server/server/v2.5.0.mod) = 414f96622e4dda6c03aa4047133d6226c0cde3feaf79bfa9761a1883685c9de9 -SIZE (go/net_gotify-server/server/v2.5.0.mod) = 2277 -SHA256 (go/net_gotify-server/server/v2.5.0.zip) = 9558ed31c4e48f92be2987c0fff29983e8befd2201ed288e0d8f74119bc3eb60 -SIZE (go/net_gotify-server/server/v2.5.0.zip) = 726894 +TIMESTAMP = 1731736943 +SHA256 (go/net_gotify-server/server/gotify-server-yarn-offline-cache-2.6.0.tar.gz) = 765db04d44558cfabc6fb001ef7af0e4354085c38c3aaa5eb00c23562767d9f3 +SIZE (go/net_gotify-server/server/gotify-server-yarn-offline-cache-2.6.0.tar.gz) = 54031484 +SHA256 (go/net_gotify-server/server/v2.6.0.mod) = acf7ba5da9fc000080647ad2ae0a58e7d35feb2b63bc75f7eb5df8e8fdcd3c0e +SIZE (go/net_gotify-server/server/v2.6.0.mod) = 2141 +SHA256 (go/net_gotify-server/server/v2.6.0.zip) = a83561f67ce315949b29a00ddb11188f7e73f237e9b6eeba5db9f9f0273bd405 +SIZE (go/net_gotify-server/server/v2.6.0.zip) = 727657