Bug 280415 - www/matomo: update to 5.1.2
Summary: www/matomo: update to 5.1.2
Status: New
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Jochen Neumeister
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-07-23 11:15 UTC by Marko Cupać
Modified: 2024-10-16 13:46 UTC (History)
3 users (show)

See Also:
bugzilla: maintainer-feedback? (joneum)


Attachments
Makefile, distinfo, pkg-plist patch (289.40 KB, patch)
2024-07-23 11:15 UTC, Marko Cupać
no flags Details | Diff
patch to 5.1.2 (289.47 KB, patch)
2024-09-26 11:42 UTC, Marko Cupać
marko.cupac: maintainer-approval?
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Marko Cupać 2024-07-23 11:15:39 UTC
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.
Comment 1 avkarenow 2024-08-15 22:04:46 UTC
Hi,

I tested the update for over 2 weeks with PHP 8.1 without any issues.
Comment 2 Marko Cupać 2024-09-01 15:17:10 UTC
It's been more than a month now. Any feedback?
Comment 3 Jochen Neumeister freebsd_committer freebsd_triage 2024-09-13 15:54:28 UTC
why the changes in the pkg-plist?
Comment 4 Marko Cupać 2024-09-15 13:27:24 UTC
(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.
Comment 5 Marko Cupać 2024-09-26 11:42:41 UTC
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.
Comment 6 Stewart Morgan 2024-10-16 13:46:55 UTC
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.