Bug 227364 - www/matomo wrong permission for dir %%WWWDIR%%/tmp/cache/tracker
Summary: www/matomo wrong permission for dir %%WWWDIR%%/tmp/cache/tracker
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Many People
Assignee: Torsten Zuehlsdorff
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-04-08 08:57 UTC by Matthias Fechner
Modified: 2018-04-09 12:15 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Matthias Fechner freebsd_committer freebsd_triage 2018-04-08 08:57:49 UTC
Hi Torsten,

just found a small problem with the "new" port www/matomo, one permission for a folder is not correct which can cause permission problems if you do the setup as root and not www.

Maybe the directory should already be created with correct permissions to prevent this.

I will add a diff and link it here.
Comment 1 Matthias Fechner freebsd_committer freebsd_triage 2018-04-08 09:01:39 UTC
Review can be found here:
https://reviews.freebsd.org/D15013
Comment 2 commit-hook freebsd_committer freebsd_triage 2018-04-09 12:14:46 UTC
A commit references this bug:

Author: mfechner
Date: Mon Apr  9 12:14:14 UTC 2018
New revision: 466849
URL: https://svnweb.freebsd.org/changeset/ports/466849

Log:
  Added required directory %%WWWDIR%%/tmp/cache/tracker with correct permissions to pkg-plist.
  Made the file %%WWWDIR%%/piwik.js writeable for user www, as systemChecks of matomo complains if that file is not writeable.

  PR:		227364
  Reviewed by:	tz (mentor)
  Approved by:	tz (maintainer, mentor)
  Differential Revision:	https://reviews.freebsd.org/D15013

Changes:
  head/www/matomo/Makefile
  head/www/matomo/pkg-plist