SHA256
1
0
forked from pool/matomo

Accepting request 713356 from home:ecsos:server

- Insert configuration for mariadb.
- Add missing htaccess rules.

OBS-URL: https://build.opensuse.org/request/show/713356
OBS-URL: https://build.opensuse.org/package/show/network:utilities/matomo?expand=0&rev=33
This commit is contained in:
Eric Schirra 2019-07-04 09:37:06 +00:00 committed by Git OBS Bridge
parent 9a63b2feb4
commit b9b58768eb
4 changed files with 26 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 4 06:15:04 UTC 2019 - ecsos@opensuse.org
- Insert configuration for mariadb.
- Add missing htaccess rules.
------------------------------------------------------------------- -------------------------------------------------------------------
Tue Jul 2 05:49:07 UTC 2019 - ecsos@opensuse.org Tue Jul 2 05:49:07 UTC 2019 - ecsos@opensuse.org

View File

@ -60,3 +60,16 @@ Alias /matomo "/srv/www/matomo"
</IfModule> </IfModule>
</Directory> </Directory>
<Directory "/srv/www/matomo/vendor/tecnickcom/tcpdf/tools">
<IfModule mod_authz_core.c>
# Apache 2.4
Require all denied
</IfModule>
<IfModule !mod_authz_core.c>
# Apache 2.2
Order deny,allow
Deny from all
</IfModule>
</Directory>

3
matomo.my.cnf Normal file
View File

@ -0,0 +1,3 @@
# for Matomo
[mysqld]
max_allowed_packet = 64MB

View File

@ -44,6 +44,7 @@ Source4: %{name}-README.SUSE
Source10: %{name}-archive.cron Source10: %{name}-archive.cron
Source11: %{name}-archive.service Source11: %{name}-archive.service
Source12: %{name}-archive.timer Source12: %{name}-archive.timer
Source13: %{name}.my.cnf
Source99: %{name}.rpmlintrc Source99: %{name}.rpmlintrc
BuildArch: noarch BuildArch: noarch
%if 0%{?suse_version} >= 1500 %if 0%{?suse_version} >= 1500
@ -126,6 +127,8 @@ install -D -m 0644 %{SOURCE11} %{buildroot}%{_unitdir}/%{name}-archive.service
install -D -m 0644 %{SOURCE12} %{buildroot}%{_unitdir}/%{name}-archive.timer install -D -m 0644 %{SOURCE12} %{buildroot}%{_unitdir}/%{name}-archive.timer
sed -i -e 's|@ap_serverroot@|%{ap_serverroot}|g' %{buildroot}%{_sysconfdir}/cron.d/%{name}-archive sed -i -e 's|@ap_serverroot@|%{ap_serverroot}|g' %{buildroot}%{_sysconfdir}/cron.d/%{name}-archive
sed -i -e 's|@ap_serverroot@|%{ap_serverroot}|g' %{buildroot}%{_unitdir}/%{name}-archive.service sed -i -e 's|@ap_serverroot@|%{ap_serverroot}|g' %{buildroot}%{_unitdir}/%{name}-archive.service
# install changes for mariadb
install -D -m0644 %{SOURCE13} %{buildroot}/%{_sysconfdir}/my.cnf.d/%{name}.my.cnf
%fdupes %{buildroot}/%{_prefix} %fdupes %{buildroot}/%{_prefix}
%fdupes %{buildroot}/srv %fdupes %{buildroot}/srv
@ -161,6 +164,7 @@ fi
%config(noreplace) %{ap_sysconfdir}/conf.d/%{name}.conf %config(noreplace) %{ap_sysconfdir}/conf.d/%{name}.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/cron.d/%{name}-archive %config(noreplace) %{_sysconfdir}/cron.d/%{name}-archive
%config(noreplace) %{_sysconfdir}/my.cnf.d/%{name}.my.cnf
%{_unitdir}/%{name}-archive.service %{_unitdir}/%{name}-archive.service
%{_unitdir}/%{name}-archive.timer %{_unitdir}/%{name}-archive.timer
%dir %attr(0750,%{ap_usr},%{ap_grp}) %{_sysconfdir}/%{name} %dir %attr(0750,%{ap_usr},%{ap_grp}) %{_sysconfdir}/%{name}