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.

89 lines
3.6 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 - 2012 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. makeinstopt=
  17. # tweaking install directories and stuff
  18. var_append cmakeopt ' ' "-DBUILD_CONFIG=mysql_release"
  19. var_append cmakeopt ' ' "-DFEATURE_SET='community'"
  20. var_append cmakeopt ' ' "-DCMAKE_INSTALL_PREFIX=/"
  21. var_append cmakeopt ' ' "-DCMAKE_BUILD_TYPE=Release"
  22. var_append cmakeopt ' ' "-DINSTALL_INCLUDEDIR=$includedir/$pkg"
  23. var_append cmakeopt ' ' "-DINSTALL_MYSQLSHAREDIR=$datadir/$pkg"
  24. var_append cmakeopt ' ' "-DINSTALL_SUPPORTFILESDIR=$datadir/$pkg"
  25. var_append cmakeopt ' ' "-DINSTALL_PLUGINDIR=$libdir/$pkg/plugin"
  26. var_append cmakeopt ' ' "-DINSTALL_LIBDIR=$libdir"
  27. var_append cmakeopt ' ' "-DINSTALL_SCRIPTDIR=$bindir"
  28. var_append cmakeopt ' ' "-DINSTALL_BINDIR=$bindir"
  29. var_append cmakeopt ' ' "-DINSTALL_SBINDIR=$sbindir"
  30. var_append cmakeopt ' ' "-DINSTALL_MANDIR=$mandir"
  31. var_append cmakeopt ' ' "-DINSTALL_INFODIR=$datadir/$pkg/docs"
  32. var_append cmakeopt ' ' "-DINSTALL_DOCDIR=$datadir/$pkg/docs"
  33. var_append cmakeopt ' ' "-DINSTALL_DOCREADMEDIR=$datadir/$pkg"
  34. var_append cmakeopt ' ' "-DINSTALL_MYSQLDATADIR=$localstatedir/lib/$pkg"
  35. var_append cmakeopt ' ' "-DINSTALL_SHAREDIR=$datadir"
  36. var_append cmakeopt ' ' "-DMYSQL_DATADIR=$localstatedir/lib/$pkg"
  37. var_append cmakeopt ' ' "-DMYSQL_UNIX_ADDR=$localstatedir/lib/$pkg/mysql.sock"
  38. var_append cmakeopt ' ' "-DWITH_EXTRA_CHARSETS=complex"
  39. var_append cmakeopt ' ' "-DWITH_INNOBASE_STORAGE_ENGINE=1"
  40. var_append cmakeopt ' ' "-DWITH_PARTITION_STORAGE_ENGINE=1"
  41. var_append cmakeopt ' ' "-DWITHOUT_EXAMPLE_STORAGE_ENGINE=1"
  42. var_append cmakeopt ' ' "-DWITHOUT_ARCHIVE_STORAGE_ENGINE=1"
  43. var_append cmakeopt ' ' "-DWITHOUT_BLACKHOLE_STORAGE_ENGINE=1"
  44. var_append cmakeopt ' ' "-DWITHOUT_FEDERATED_STORAGE_ENGINE=1"
  45. var_append cmakeopt ' ' "-DWITH_DEBUG=OFF"
  46. # using UTF8
  47. var_append cmakeopt ' ' "-DDEFAULT_CHARSET=utf8"
  48. var_append cmakeopt ' ' "-DDEFAULT_COLLATION=utf8_general_ci"
  49. # build the libmysqld embedded server library
  50. var_append cmakeopt ' ' "-DWITH_EMBEDDED_SERVER=ON"
  51. # wether to use or not the bundles stuff in mysql
  52. for x in openssl:SSL zlib:ZLIB; do
  53. if ! pkginstalled -f "${x%:*}"; then
  54. echo_status "Could not detect ${x%:*} package (using bundled ${x%:*}"
  55. var_append cmakeopt ' ' "-DWITH_${x#*:}=bundled"
  56. else
  57. var_append cmakeopt ' ' "-DWITH_${x#*:}=system"
  58. fi
  59. done
  60. # whether to use the readline library bundled with mysql
  61. if ! pkginstalled -f readline; then
  62. echo_status "Could not detect readline package (using bundled readline)"
  63. var_append cmakeopt ' ' "-DWITH_READLINE=ON"
  64. fi
  65. if [ "$SDECFG_PKG_MYSQL_CLIENTONLY" = "1" ]; then
  66. var_append extraconfopt ' ' "--without-server"
  67. fi
  68. make_install() {
  69. SEGMENTS="Client Server IniFiles Embedded ManPages SharedLibraries Development Documentation Info Readme Server_Scripts"
  70. # We left out the following :"DataFiles SqlBench SupportFiles Test Unspecified"
  71. for segment in $SEGMENTS; do
  72. cmake -DCMAKE_INSTALL_COMPONENT=$segment -P cmake_install.cmake
  73. done
  74. unset SEGMENTS
  75. }
  76. hook_add postmake 9 'make_install'