forked from pool/matomo
Accepting request 744178 from network:utilities
OBS-URL: https://build.opensuse.org/request/show/744178 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/matomo?expand=0&rev=17
This commit is contained in:
commit
0caa53836f
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:189056c5b5308595694d332a9feb19f42b26fbf51c8c8a53756d44fd7fad76b9
|
||||
size 16860544
|
3
matomo-3.12.0.tar.gz
Normal file
3
matomo-3.12.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:3998687c23fe5601cefd9e24dc6b673a11425c115974d1388c99cbf00fce6bf8
|
||||
size 15194529
|
@ -1,3 +1,42 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 30 11:42:55 UTC 2019 - ecsos@opensuse.org
|
||||
|
||||
- Fix wrong permission for directory js.
|
||||
- Use original source file.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 30 09:37:33 UTC 2019 - Mathias Homann <Mathias.Homann@opensuse.org>
|
||||
|
||||
- piwik.js needs to be writable, too
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 30 09:34:03 UTC 2019 - Mathias Homann <Mathias.Homann@opensuse.org>
|
||||
|
||||
- more permission fixes
|
||||
* matomo.js needs to be owned by the apache user so that plugins can
|
||||
rewrite it if required
|
||||
* new md5sum for global.ini.php
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 30 07:59:19 UTC 2019 - Mathias Homann <Mathias.Homann@opensuse.org>
|
||||
|
||||
- disabled the auto updater, doesn't work with this set of permissions
|
||||
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 30 07:45:02 UTC 2019 - Mathias Homann <Mathias.Homann@opensuse.org>
|
||||
|
||||
- Update to 3.12.0
|
||||
* new comarison feature for date ranges and visitor segments
|
||||
* several significant performance improvements, usability improvements and fixes to security issues
|
||||
* full changelog is at https://matomo.org/changelog/matomo-3-12-0/
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 21 18:39:50 UTC 2019 - Mathias Homann <Mathias.Homann@opensuse.org>
|
||||
|
||||
- Security fix: BSC#1154324
|
||||
* Have as little as possible owned by, and writable for, the apache user
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 25 06:16:08 UTC 2019 - ecsos@opensuse.org
|
||||
|
||||
|
26
matomo.spec
26
matomo.spec
@ -31,7 +31,7 @@
|
||||
%endif
|
||||
|
||||
Name: matomo
|
||||
Version: 3.11.0
|
||||
Version: 3.12.0
|
||||
Release: 0
|
||||
Summary: Web analytics platform
|
||||
License: GPL-3.0-or-later
|
||||
@ -94,6 +94,12 @@ find . -type f "(" -name .htaccess -o -name .travis.sh ")" -delete
|
||||
find . -type f "(" -name "*.c" -o -name "*.h" -o -name "*.js.orig" ")" -delete
|
||||
# env-script-interpreter
|
||||
find . -type f -exec sed -i -e 's|\/usr\/bin\/env php|\/usr\/bin\/php|g' {} +
|
||||
|
||||
#
|
||||
# disable the auto updater, it can't work properly with the new, more secure permissions and is a bad idea on a RPM based setup anyways.
|
||||
#
|
||||
sed -i '/enable_auto_update/s/1$/0/' config/global.ini.php
|
||||
|
||||
#
|
||||
# Fix integrity check triggered from fix of rpmlint errors.
|
||||
# Drop moved files
|
||||
@ -102,7 +108,7 @@ do
|
||||
sed -i "/\W\"${i}\"\W/d" config/manifest.inc.php
|
||||
done
|
||||
# Insert new hashes for chanded files
|
||||
for file in console 'vendor/leafo/lessphp/plessc' 'vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php'
|
||||
for file in console 'vendor/leafo/lessphp/plessc' 'vendor/tecnickcom/tcpdf/tools/tcpdf_addfont.php' 'config/global.ini.php'
|
||||
do
|
||||
size=$(ls -l $file | awk '{ print $5 }')
|
||||
checksum=$(md5sum $file | awk '{ print $1 }')
|
||||
@ -116,6 +122,7 @@ done
|
||||
%install
|
||||
# make directories
|
||||
install -d -m0755 %{buildroot}/%{ap_serverroot}/%{name}
|
||||
install -d -m0755 %{buildroot}/%{ap_serverroot}/%{name}/tmp
|
||||
install -d -m0755 %{buildroot}/%{_sysconfdir}/%{name}
|
||||
install -d -m0755 %{buildroot}/%{_defaultdocdir}/%{name}
|
||||
# copy src from build to buildroot
|
||||
@ -152,7 +159,8 @@ install -D -m0644 %{SOURCE13} %{buildroot}/%{_sysconfdir}/my.cnf.d/%{name}.my.cn
|
||||
%service_add_pre matomo-archive.timer matomo-archive.service
|
||||
|
||||
%post
|
||||
chown -R %{ap_usr}:%{ap_grp} %{ap_serverroot}/%{name}
|
||||
# BSC#1154324
|
||||
# # # chown -R %{ap_usr}:%{ap_grp} %{ap_serverroot}/%{name}
|
||||
%service_add_post matomo-archive.timer matomo-archive.service apache2.service
|
||||
# Update matomo if this is an upgrade $1 == 2
|
||||
echo "matomo: Update matomo:core..."
|
||||
@ -184,11 +192,19 @@ fi
|
||||
%{_unitdir}/%{name}-archive.timer
|
||||
%dir %attr(0750,%{ap_usr},%{ap_grp}) %{_sysconfdir}/%{name}
|
||||
%dir %attr(0750,%{ap_usr},%{ap_grp}) %{_sysconfdir}/%{name}/environment
|
||||
%defattr(640,%{ap_usr},%{ap_grp},750)
|
||||
%attr(0640,%{ap_usr},%{ap_grp}) %{_sysconfdir}/%{name}/*.php
|
||||
%attr(0640,%{ap_usr},%{ap_grp}) %{_sysconfdir}/%{name}/environment/*.php
|
||||
%defattr(644,root,root,755)
|
||||
%dir %{ap_serverroot}/%{name}
|
||||
%dir /var/log/%{name}
|
||||
%dir %attr(0750,%{ap_usr},%{ap_grp}) %{ap_serverroot}/%{name}/js
|
||||
%dir %attr(0750,%{ap_usr},%{ap_grp}) %{ap_serverroot}/%{name}/misc
|
||||
%dir %attr(0750,%{ap_usr},%{ap_grp}) %{ap_serverroot}/%{name}/plugins
|
||||
%dir %attr(0750,%{ap_usr},%{ap_grp}) %{ap_serverroot}/%{name}/tmp
|
||||
%dir %attr(0750,%{ap_usr},%{ap_grp}) /var/log/%{name}
|
||||
%config(noreplace) %attr(600,%{ap_usr},%{ap_grp}) %{_sysconfdir}/%{name}/*php
|
||||
%{_sysconfdir}/%{name}/environment/*php
|
||||
%attr(0770,%{ap_usr},%{ap_grp}) %{ap_serverroot}/%{name}/matomo.js
|
||||
%attr(0770,%{ap_usr},%{ap_grp}) %{ap_serverroot}/%{name}/piwik.js
|
||||
%attr(0770,%{ap_usr},%{ap_grp}) %{ap_serverroot}/%{name}/console
|
||||
%attr(0770,%{ap_usr},%{ap_grp}) %{ap_serverroot}/%{name}/misc/cron/archive.sh
|
||||
%attr(0770,%{ap_usr},%{ap_grp}) %{ap_serverroot}/%{name}/misc/log-analytics/import_logs.py
|
||||
|
Loading…
x
Reference in New Issue
Block a user