MariaDB ship systemd socket files since 10.6
https://mariadb.com/kb/en/systemd/#systemd-socket-activation In case of RHEL, ship them in %_datadir, instead of the %_unitdir, so users can still try them out, but it is not a default configuration.
This commit is contained in:
parent
be9b3879ad
commit
0f3a84d4ce
@ -1059,6 +1059,10 @@ mv %{buildroot}/%{_lib}/security %{buildroot}%{_libdir}
|
|||||||
# Add wsrep_sst_rsync_tunnel script
|
# Add wsrep_sst_rsync_tunnel script
|
||||||
install -p -m 0755 scripts/wsrep_sst_rsync_tunnel %{buildroot}%{_bindir}/wsrep_sst_rsync_tunnel
|
install -p -m 0755 scripts/wsrep_sst_rsync_tunnel %{buildroot}%{_bindir}/wsrep_sst_rsync_tunnel
|
||||||
|
|
||||||
|
# Remove systemd socket files from %%{_unitdir}
|
||||||
|
# We ship them in %%{_datadir}, so users can try them out on their own risk
|
||||||
|
rm %{buildroot}%{_unitdir}/%{daemon_name}*.socket
|
||||||
|
|
||||||
# Disable plugins
|
# Disable plugins
|
||||||
%if %{with gssapi}
|
%if %{with gssapi}
|
||||||
sed -i 's/^plugin-load-add/#plugin-load-add/' %{buildroot}%{_sysconfdir}/my.cnf.d/auth_gssapi.cnf
|
sed -i 's/^plugin-load-add/#plugin-load-add/' %{buildroot}%{_sysconfdir}/my.cnf.d/auth_gssapi.cnf
|
||||||
@ -1502,6 +1506,7 @@ fi
|
|||||||
%{_datadir}/%{pkg_name}/policy/selinux/mariadb-server.*
|
%{_datadir}/%{pkg_name}/policy/selinux/mariadb-server.*
|
||||||
%{_datadir}/%{pkg_name}/policy/selinux/mariadb.*
|
%{_datadir}/%{pkg_name}/policy/selinux/mariadb.*
|
||||||
%{_datadir}/%{pkg_name}/systemd/mariadb.service
|
%{_datadir}/%{pkg_name}/systemd/mariadb.service
|
||||||
|
%{_datadir}/%{pkg_name}/systemd/mariadb*@.socket
|
||||||
# mariadb@ is installed only when we have cmake newer than 3.3
|
# mariadb@ is installed only when we have cmake newer than 3.3
|
||||||
%if 0%{?fedora} || 0%{?rhel} > 7
|
%if 0%{?fedora} || 0%{?rhel} > 7
|
||||||
%{_datadir}/%{pkg_name}/systemd/mariadb@.service
|
%{_datadir}/%{pkg_name}/systemd/mariadb@.service
|
||||||
|
Loading…
Reference in New Issue
Block a user