Created attachment 252241 [details] Makefile, distinfo, pkg-plist patch Hi, current matomo version in ports is severely outdated (4.13.3, released in 2023-01). I gave it a try to just bump version in Makefile, make makesum to update distinfo, and adjust pkg-plist. New version 5.0.1 built fine on 14.1 against default php82, I upgraded my matomo instance without major issues (except pkg upgrade I had to manually change ownership of some folders to www:www in order for web server to be able to write to them, as seen in apache error log). After that I was presented with "matomo needs database upgrade" page, ran console core:update and ended up with functional upgraded matomo. What remained is to visit matomo's "system check" page and clean up a bit according to instructions there (remove some files which remained from old install and change permissions / ownership of a few files that need to be writable by web server). I am attaching patches.
Hi, I tested the update for over 2 weeks with PHP 8.1 without any issues.
It's been more than a month now. Any feedback?
why the changes in the pkg-plist?
(In reply to Jochen Neumeister from comment #3) Because list of files inside package changed between the versions. Matomo is currently at 5.1.1: https://github.com/matomo-org/matomo/releases If someone will actually bother to commit the patch I can make new one.
Created attachment 253828 [details] patch to 5.1.2 5.1.2 is out, fixes some security issues as well: https://matomo.org/changelog/matomo-5-1-2/ Hopefully FreeBSD matomo port maintainer won't continue to offer ancient insecure version of matomo to FreeBSD users, now that at ill needs to be done is to commit attached patch.
In case this helps boost, I found Marko's patch, running core:update, and fixing-things-up from the "System Check" worked beautifully for me! :) (PS: I'm running it under PHP 8.3) Stewart.
A commit in branch main references this bug: URL: https://cgit.FreeBSD.org/ports/commit/?id=32f716685bf5a617db51856816983cef9c37a3ed commit 32f716685bf5a617db51856816983cef9c37a3ed Author: Jochen Neumeister <joneum@FreeBSD.org> AuthorDate: 2025-01-31 08:37:54 +0000 Commit: Jochen Neumeister <joneum@FreeBSD.org> CommitDate: 2025-01-31 08:39:10 +0000 www/matomo: update to 5.1.2 Changelog: https://matomo.org/changelog/ PR: 280415 Sponsored by: Netzkommune GmbH www/matomo/Makefile | 2 +- www/matomo/distinfo | 6 +- www/matomo/pkg-plist | 2106 +++++++++++++++++++++++++++++++++++++++----------- 3 files changed, 1663 insertions(+), 451 deletions(-)