# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/mysql/mysql.conf # Copyright (C) 2004 - 2022 The T2 SDE Project # Copyright (C) 1998 - 2003 ROCK Linux Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- var_append extraconfopt " " "--with-berkeley-db" var_append extraconfopt " " "--with-ssl" var_append extraconfopt " " "--with-embedded-server" #needed by bacula var_append extraconfopt " " "--enable-thread-safe-client" if [ $prefix_auto = 1 ]; then prefix="opt/mysql" set_confopt fi var_append cmakeopt " " "-DINSTALL_LIBDIR=$libdir/mysql" if [ "$SDECFG_PKG_MYSQL_CLIENTONLY" = "1" ]; then var_append extraconfopt ' ' "--without-server" fi hook_add postmake 5 "sed 's/\(.*MYSQL\)/#\1/' support-files/my-default.cnf \ > $root$sysconfdir/my.cnf" # create mysql db directory with suitable ownership, mysql_db_install in postinstall hook_add postmake 5 "mkdir -p $root$localstatedir/mysql; chown 39:39 $root$localstatedir/mysql"