0
0
mirror of https://github.com/termux-pacman/glibc-packages.git synced 2024-11-13 13:59:21 +00:00
glibc-packages/gpkg/mariadb/support-files.patch
Ivan Max 544ab0e7a3
new pkgs to gpkg (#209)
gpkg/apache2
gpkg/apr-util
gpkg/apr
gpkg/asciidoc
gpkg/cmocka
gpkg/docbook-xml
gpkg/docbook-xsl
gpkg/git
gpkg/gtk-doc
gpkg/json-c
gpkg/libsasl
gpkg/libsecret
gpkg/libsodium
gpkg/libtpms
gpkg/libxss
gpkg/mariadb
gpkg/nano
gpkg/openldap
gpkg/postgresql
gpkg/python-py3c
gpkg/serf
gpkg/subversion
gpkg/swig
gpkg/tk
gpkg/tpm2-tss
gpkg/unixodbc
gpkg/utf8proc
gpkg/file
gpkg/less
gpkg/libseccomp
2024-05-03 18:33:35 +03:00

68 lines
1.6 KiB
Diff

--- a/support-files/mysql-multi.server.sh
+++ b/support-files/mysql-multi.server.sh
@@ -77,8 +77,8 @@
then
print_defaults="@bindir@/mysql_print_defaults"
else
- # Try to find basedir in /etc/my.cnf
- conf=/etc/my.cnf
+ # Try to find basedir in @TERMUX_PREFIX@/etc/my.cnf
+ conf=@TERMUX_PREFIX@/etc/my.cnf
print_defaults=
if test -r $conf
then
--- a/support-files/mysql.server.sh
+++ b/support-files/mysql.server.sh
@@ -160,8 +160,8 @@
if test -x "$bindir/my_print_defaults"; then
print_defaults="$bindir/my_print_defaults"
else
- # Try to find basedir in /etc/my.cnf
- conf=/etc/my.cnf
+ # Try to find basedir in @TERMUX_PREFIX@/etc/my.cnf
+ conf=@TERMUX_PREFIX@/etc/my.cnf
print_defaults=
if test -r $conf
then
@@ -185,11 +185,7 @@
user='@MYSQLD_USER@'
su_kill() {
- if test "$USER" = "$user"; then
kill $* >/dev/null 2>&1
- else
- su - $user -s /bin/sh -c "kill $*" >/dev/null 2>&1
- fi
}
#
--- a/support-files/policy/apparmor/usr.sbin.mysqld
+++ b/support-files/policy/apparmor/usr.sbin.mysqld
@@ -29,7 +29,7 @@
/etc/hosts.deny r,
/etc/ld.so.cache r,
/etc/mtab r,
- /etc/my.cnf r,
+ @TERMUX_PREFIX@/etc/my.cnf r,
/etc/mysql/*.cnf r,
/etc/mysql/*.pem r,
/etc/mysql/conf.d/ r,
@@ -81,7 +81,7 @@
/bin/which rix,
/dev/tty rw,
/etc/ld.so.cache r,
- /etc/my.cnf r,
+ @TERMUX_PREFIX@/etc/my.cnf r,
/proc/ r,
/proc/*/cmdline r,
/proc/*/fd/ r,
--- a/support-files/rpm/my.cnf
+++ b/support-files/rpm/my.cnf
@@ -7,5 +7,5 @@
#
# include *.cnf from the config directory
#
-!includedir /etc/my.cnf.d
+!includedir @TERMUX_PREFIX@/etc/my.cnf.d