Created attachment 268427 [details] mattermost-webapp: v1 with port improvements It have security fixes: > Mattermost v10.11.12 contains low to high severity level security fixes. > Upgrading to this release is recommended. Details will be posted on our security > updates page 30 days after release as per the Mattermost Responsible Disclosure Policy. Improvements for www/mattermost-webapp: 1. Replace: PORTNAME= mattermost-webapp with PORTNAME= mattermost PKGNAMESUFFIX= -webapp 2. Replace PORTVERSION with DISTVERSION. 3. Remove unnecessary DISTVERSIONPREFIX=v - unused and WWWDIR=${PREFIX}/www/mattermost - default value. 4. Parametrize "mattermost" with "${PORTNAME}" in DISTNAME, MATTERMOSTD_USER, MATTERMOSTD_GROUP. 5. Define WRKSRC and use it in do-install instead if "${WRKDIR}/mattermost". 6. Remove unnecessary MKDIR in do-install. The distfile for the www/mattermost-server port require manual embedding of multiple files "server/vendor/*". The tarball automatically generated from the tag on GitHub does not contain these files.
Created attachment 268428 [details] mattermost-webapp: v2 with port improvements Change order of lines in do-install.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=25c6cb283029d5b518fc540c43dc0df46f893f8e commit 25c6cb283029d5b518fc540c43dc0df46f893f8e Author: Bernhard Froehlich <decke@FreeBSD.org> AuthorDate: 2026-03-01 19:19:48 +0000 Commit: Bernhard Froehlich <decke@FreeBSD.org> CommitDate: 2026-03-01 19:19:48 +0000 www/mattermost-webapp: Update to 10.11.12 Replace PORTVERSION with DISTVERSION PR: 293510 www/mattermost-webapp/Makefile | 14 +++++++------- www/mattermost-webapp/distinfo | 6 +++--- www/mattermost-webapp/pkg-plist | 32 ++++++++++++++++---------------- 3 files changed, 26 insertions(+), 26 deletions(-)
Committed (partially) together with mattermost-server. Thanks
Why isn't www/mattermost-webapp built, but a ready-made tarball from upstream is used? As far as I understand, everything we need is in mattermost-10.11.12.tar.xz of the www/mattermost-webapp port: ${WRKDIR}/mattermost-10.11.12/webapp.
Yes, its all there and all you need is node, npm, react and typescript. The distfile we use is the Linux package which includes the generated webapp files.
So maybe this is exactly what should be done in the port? :-o
No, I don't plan to waste my time with this.
:-( I wanted to try making some local changes via patches to the port, and if they were successful, maybe submit them upstream, but this turned out to be impossible due to the port's use of a pre-built tarball. Using a completely manual build makes it difficult for me to test any changes.
https://github.com/mattermost/mattermost/releases/tag/v10.11.13
Returning to the issue of building www/mattermost-webapp from source. In version 11, they disabled GitLab SSO - the only oauth that worked in Team Edition. This is essentially a serious regression. Without building from source, there's no way to re-enable this feature. Since this is open-source, I think it's necessary to switch to a custom build with all restrictions disabled, as is done in www/mattermost-server for the number of users.
I can only recommend to reconsider using mattermost. They are on a enshittification trip and we will not be able to stop them. So far I only know about one fork which is Mostlymatter but that seems to be dead already - so you probably need to take another product. My quite small instance is just waiting for a reason to nuke it.