OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

77 lines
3.0 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../mysql/mysql.conf
  5. # Copyright (C) 2007 - 2011 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. # Select a predefined installation layout to avoid the installation
  17. # of strange '$prefix/data' which is used when using the default
  18. # STANDALONE layout.
  19. var_append cmakeopt ' ' "-DINSTALL_LAYOUT=DEB"
  20. # tweaking install directories
  21. var_append cmakeopt ' ' "-DINSTALL_INCLUDEDIR=$includedir/$pkg"
  22. var_append cmakeopt ' ' "-DINSTALL_MYSQLSHAREDIR=$datadir/$pkg"
  23. var_append cmakeopt ' ' "-DINSTALL_SUPPORTFILESDIR=$datadir/$pkg"
  24. var_append cmakeopt ' ' "-DINSTALL_MYSQLTESTDIR=$datadir/$pkg/test"
  25. var_append cmakeopt ' ' "-DINSTALL_PLUGINDIR=$libdir/$pkg/plugin"
  26. var_append cmakeopt ' ' "-DINSTALL_SCRIPTDIR=$bindir"
  27. var_append cmakeopt ' ' "-DINSTALL_SQLBENCHDIR=$datadir/$pkg"
  28. var_append cmakeopt ' ' "-DINSTALL_MANDIR=$mandir"
  29. var_append cmakeopt ' ' "-DINSTALL_INFODIR=$infodir"
  30. var_append cmakeopt ' ' "-DINSTALL_DOCDIR=$docdir"
  31. var_append cmakeopt ' ' "-DINSTALL_DOCREADMEDIR=$docdir"
  32. var_append cmakeopt ' ' "-DINSTALL_MYSQLDATADIR=$localstatedir"
  33. var_append cmakeopt ' ' "-DMYSQL_DATADIR=$localstatedir/lib/$pkg"
  34. var_append cmakeopt ' ' "-DMYSQL_UNIX_ADDR=$localstatedir/lib/$pkg/mysql.sock"
  35. # Configure the source with the same build options used by Oracle to produce
  36. # binary distributions for official MySQL releases.
  37. var_insert cmakeopt ' ' "-DBUILD_CONFIG=mysql_release"
  38. # using community feature set
  39. # alternative sets: xsmall, small, classic, large, xlarge
  40. var_insert cmakeopt ' ' "-DFEATURE_SET='community'"
  41. # build the libmysqld embedded server library
  42. var_append cmakeopt ' ' "-DWITH_EMBEDDED_SERVER=ON"
  43. # whether to use the readline library bundled with mysql
  44. if ! pkginstalled -f readline; then
  45. echo_status "Could not detect readline package (using bundled readline)"
  46. var_append cmakeopt ' ' "-DWITH_READLINE=ON"
  47. fi
  48. # SSL support
  49. if ! pkginstalled -f openssl; then
  50. echo_status "Could not detect openssl package (using bundled openssl)"
  51. var_append cmakeopt ' ' "-DWITH_SSL=bundled"
  52. else
  53. var_append cmakeopt ' ' "-DWITH_SSL=system"
  54. fi
  55. # zlib compression support
  56. if ! pkginstalled -f zlib; then
  57. echo_status "Could not detect zlib package (using bundled zlib)"
  58. var_append cmakeopt ' ' "-DWITH_ZLIB=bundled"
  59. else
  60. var_append cmakeopt ' ' "-DWITH_ZLIB=system"
  61. fi
  62. if [ "$SDECFG_PKG_MYSQL_CLIENTONLY" = "1" ]; then
  63. var_append extraconfopt ' ' "--without-server"
  64. fi
  65. #hook_add postmake 5 "sed 's/\(.*MYSQL\)/#\1/' $root/$prefix/support-files/my-medium.cnf \
  66. # > $root$sysconfdir/my.cnf"