diff --git a/matomo.changes b/matomo.changes index 126e679..6d5c581 100644 --- a/matomo.changes +++ b/matomo.changes @@ -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 diff --git a/matomo.conf b/matomo.conf index 6b52b40..11badd2 100644 --- a/matomo.conf +++ b/matomo.conf @@ -60,3 +60,16 @@ Alias /matomo "/srv/www/matomo" + + + + + # Apache 2.4 + Require all denied + + + # Apache 2.2 + Order deny,allow + Deny from all + + diff --git a/matomo.my.cnf b/matomo.my.cnf new file mode 100644 index 0000000..a8bcb81 --- /dev/null +++ b/matomo.my.cnf @@ -0,0 +1,3 @@ +# for Matomo +[mysqld] +max_allowed_packet = 64MB diff --git a/matomo.spec b/matomo.spec index 902420e..953971e 100644 --- a/matomo.spec +++ b/matomo.spec @@ -44,6 +44,7 @@ Source4: %{name}-README.SUSE Source10: %{name}-archive.cron Source11: %{name}-archive.service Source12: %{name}-archive.timer +Source13: %{name}.my.cnf Source99: %{name}.rpmlintrc BuildArch: noarch %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 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 +# install changes for mariadb +install -D -m0644 %{SOURCE13} %{buildroot}/%{_sysconfdir}/my.cnf.d/%{name}.my.cnf %fdupes %{buildroot}/%{_prefix} %fdupes %{buildroot}/srv @@ -161,6 +164,7 @@ fi %config(noreplace) %{ap_sysconfdir}/conf.d/%{name}.conf %config(noreplace) %{_sysconfdir}/logrotate.d/%{name} %config(noreplace) %{_sysconfdir}/cron.d/%{name}-archive +%config(noreplace) %{_sysconfdir}/my.cnf.d/%{name}.my.cnf %{_unitdir}/%{name}-archive.service %{_unitdir}/%{name}-archive.timer %dir %attr(0750,%{ap_usr},%{ap_grp}) %{_sysconfdir}/%{name}