]> TLD Linux GIT Repositories - packages/mysql.git/commitdiff
- keep common dirs for mysqlrouter in mysql-common, fix /var/{lib,log} dirs
authorMarcin Krol <hawk@tld-linux.org>
Thu, 25 Apr 2024 16:09:47 +0000 (18:09 +0200)
committerMarcin Krol <hawk@tld-linux.org>
Thu, 25 Apr 2024 16:09:47 +0000 (18:09 +0200)
mysql.spec

index 5d82810e8bae449dd9cc90a354522f3a93fa96bb..c71fd823203e9a95b020ae40548107d11a862e40 100644 (file)
@@ -566,7 +566,7 @@ CPPFLAGS="%{rpmcppflags}" \
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT/etc/{ld.so.conf.d,logrotate.d,rc.d/init.d,sysconfig,mysql/%{mysqlversion},skel} \
-          $RPM_BUILD_ROOT/var/{lib/mysqlrouter,log/{archive,}/{mysql,mysqlrouter}/%{mysqlversion},lib/{mysql,mysql-files}/%{mysqlversion}} \
+          $RPM_BUILD_ROOT/var/{log/{archive,}/{mysql,mysqlrouter}/%{mysqlversion},lib/{mysql,mysql-files,mysqlrouter}/%{mysqlversion}} \
           $RPM_BUILD_ROOT%{_libdir}
 
 %{__make} -C build install \
@@ -1116,8 +1116,11 @@ fi
 %dir %{_datadir}/mysql
 %attr(751,root,root) %dir /var/lib/mysql
 %attr(751,root,root) %dir /var/lib/mysql-files
+%attr(751,root,root) %dir /var/lib/mysqlrouter
 %attr(751,root,root) %dir /var/log/mysql
 %attr(751,root,root) %dir /var/log/archive/mysql
+%attr(751,root,root) %dir /var/log/mysqlrouter
+%attr(751,root,root) %dir /var/log/archive/mysqlrouter
 
 %files dirs
 %defattr(644,root,root,755)
@@ -1268,6 +1271,7 @@ fi
 %{_sysconfdir}/ld.so.conf.d/%{name}-router.conf
 %dir %{_libdir}/mysql/%{mysqlversion}/router
 %dir %{_libdir}/mysql/%{mysqlversion}/router/private
+%attr(750,root,root) %dir /var/lib/mysqlrouter/%{mysqlversion}
 %attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysqlrouter
 %attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysqlrouter_keyring
 %attr(755,root,root) %{_libdir}/mysql/%{mysqlversion}/bin/mysqlrouter_passwd
@@ -1293,8 +1297,6 @@ fi
 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlrouter.1*
 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlrouter_passwd.1*
 %{_datadir}/mysql/%{mysqlversion}/man/man1/mysqlrouter_plugin_info.1*
-%attr(751,root,root) %dir /var/lib/mysqlrouter
-%attr(751,root,root) %dir /var/log/mysqlrouter
 %attr(750,mysqlrouter,mysqlrouter) %dir /var/log/mysqlrouter/%{mysqlversion}
 %attr(750,mysqlrouter,mysqlrouter) %dir /var/log/archive/mysqlrouter/%{mysqlversion}
 %attr(640,mysql,mysql) %ghost /var/log/mysqlrouter/%{mysqlversion}/*