mirror of
https://github.com/MariaDB/server.git
synced 2025-01-15 19:42:28 +01:00
post-fix for #1504
This commit is contained in:
parent
d3f4748254
commit
07d1c8567c
18 changed files with 30 additions and 23 deletions
|
@ -175,7 +175,7 @@ SET(INSTALL_BINDIR_DEB "bin")
|
||||||
SET(INSTALL_SBINDIR_DEB "sbin")
|
SET(INSTALL_SBINDIR_DEB "sbin")
|
||||||
SET(INSTALL_SCRIPTDIR_DEB "bin")
|
SET(INSTALL_SCRIPTDIR_DEB "bin")
|
||||||
SET(INSTALL_SYSCONFDIR_DEB "/etc")
|
SET(INSTALL_SYSCONFDIR_DEB "/etc")
|
||||||
SET(INSTALL_SYSCONF2DIR_DEB "/etc/mysql/conf.d")
|
SET(INSTALL_SYSCONF2DIR_DEB "/etc/mysql/mariadb.conf.d")
|
||||||
#
|
#
|
||||||
SET(INSTALL_LIBDIR_DEB "lib/${CMAKE_CXX_LIBRARY_ARCHITECTURE}")
|
SET(INSTALL_LIBDIR_DEB "lib/${CMAKE_CXX_LIBRARY_ARCHITECTURE}")
|
||||||
SET(INSTALL_PLUGINDIR_DEB "lib/mysql/plugin")
|
SET(INSTALL_PLUGINDIR_DEB "lib/mysql/plugin")
|
||||||
|
|
|
@ -252,7 +252,6 @@ MACRO(MYSQL_ADD_PLUGIN)
|
||||||
SET(ARG_CONFIG "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${target}.cnf")
|
SET(ARG_CONFIG "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${target}.cnf")
|
||||||
FILE(WRITE ${ARG_CONFIG} "[mariadb]\nplugin-load-add=${ARG_MODULE_OUTPUT_NAME}.so\n")
|
FILE(WRITE ${ARG_CONFIG} "[mariadb]\nplugin-load-add=${ARG_MODULE_OUTPUT_NAME}.so\n")
|
||||||
ENDIF()
|
ENDIF()
|
||||||
INSTALL(FILES ${ARG_CONFIG} COMPONENT ${ARG_COMPONENT} DESTINATION ${INSTALL_SYSCONF2DIR})
|
|
||||||
SET(CPACK_RPM_${ARG_COMPONENT}_USER_FILELIST ${ignored} "%config(noreplace) ${INSTALL_SYSCONF2DIR}/*" PARENT_SCOPE)
|
SET(CPACK_RPM_${ARG_COMPONENT}_USER_FILELIST ${ignored} "%config(noreplace) ${INSTALL_SYSCONF2DIR}/*" PARENT_SCOPE)
|
||||||
SET(CPACK_RPM_${ARG_COMPONENT}_POST_INSTALL_SCRIPT_FILE ${CMAKE_SOURCE_DIR}/support-files/rpm/plugin-postin.sh PARENT_SCOPE)
|
SET(CPACK_RPM_${ARG_COMPONENT}_POST_INSTALL_SCRIPT_FILE ${CMAKE_SOURCE_DIR}/support-files/rpm/plugin-postin.sh PARENT_SCOPE)
|
||||||
SET(CPACK_RPM_${ARG_COMPONENT}_POST_TRANS_SCRIPT_FILE ${CMAKE_SOURCE_DIR}/support-files/rpm/server-posttrans.sh PARENT_SCOPE)
|
SET(CPACK_RPM_${ARG_COMPONENT}_POST_TRANS_SCRIPT_FILE ${CMAKE_SOURCE_DIR}/support-files/rpm/server-posttrans.sh PARENT_SCOPE)
|
||||||
|
@ -262,6 +261,9 @@ MACRO(MYSQL_ADD_PLUGIN)
|
||||||
SET(ARG_COMPONENT Server)
|
SET(ARG_COMPONENT Server)
|
||||||
ENDIF()
|
ENDIF()
|
||||||
MYSQL_INSTALL_TARGETS(${target} DESTINATION ${INSTALL_PLUGINDIR} COMPONENT ${ARG_COMPONENT})
|
MYSQL_INSTALL_TARGETS(${target} DESTINATION ${INSTALL_PLUGINDIR} COMPONENT ${ARG_COMPONENT})
|
||||||
|
IF(ARG_CONFIG AND INSTALL_SYSCONF2DIR)
|
||||||
|
INSTALL(FILES ${ARG_CONFIG} COMPONENT ${ARG_COMPONENT} DESTINATION ${INSTALL_SYSCONF2DIR})
|
||||||
|
ENDIF()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
||||||
GET_FILENAME_COMPONENT(subpath ${CMAKE_CURRENT_SOURCE_DIR} NAME)
|
GET_FILENAME_COMPONENT(subpath ${CMAKE_CURRENT_SOURCE_DIR} NAME)
|
||||||
|
|
3
debian/additions/mariadb.cnf
vendored
3
debian/additions/mariadb.cnf
vendored
|
@ -18,6 +18,9 @@
|
||||||
#
|
#
|
||||||
[client-server]
|
[client-server]
|
||||||
|
|
||||||
|
socket = /run/mysqld/mysqld.sock
|
||||||
|
#port = 3306
|
||||||
|
|
||||||
# Import all .cnf files from configuration directory
|
# Import all .cnf files from configuration directory
|
||||||
!includedir /etc/mysql/conf.d/
|
!includedir /etc/mysql/conf.d/
|
||||||
!includedir /etc/mysql/mariadb.conf.d/
|
!includedir /etc/mysql/mariadb.conf.d/
|
||||||
|
|
|
@ -7,9 +7,6 @@
|
||||||
# Default is Latin1, if you need UTF-8 set this (also in server section)
|
# Default is Latin1, if you need UTF-8 set this (also in server section)
|
||||||
default-character-set = utf8mb4
|
default-character-set = utf8mb4
|
||||||
|
|
||||||
# socket location
|
|
||||||
socket = /run/mysqld/mysqld.sock
|
|
||||||
|
|
||||||
# Example of client certificate usage
|
# Example of client certificate usage
|
||||||
# ssl-cert=/etc/mysql/client-cert.pem
|
# ssl-cert=/etc/mysql/client-cert.pem
|
||||||
# ssl-key=/etc/mysql/client-key.pem
|
# ssl-key=/etc/mysql/client-key.pem
|
||||||
|
|
|
@ -4,8 +4,6 @@
|
||||||
#
|
#
|
||||||
|
|
||||||
[mysql]
|
[mysql]
|
||||||
# Default is Latin1, if you need UTF-8 set this (also in server section)
|
|
||||||
default-character-set = utf8mb4
|
|
||||||
|
|
||||||
[mysql_upgrade]
|
[mysql_upgrade]
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
# NOTE: This file is read only by the traditional SysV init script, not systemd.
|
# NOTE: THIS FILE IS READ ONLY BY THE TRADITIONAL SYSV INIT SCRIPT, NOT SYSTEMD.
|
||||||
# MariaDB systemd does _not_ utilize mysqld_safe nor read this file.
|
# MARIADB SYSTEMD DOES _NOT_ UTILIZE MYSQLD_SAFE NOR READ THIS FILE.
|
||||||
#
|
#
|
||||||
# For similar behavior, systemd users should create the following file:
|
# For similar behavior, systemd users should create the following file:
|
||||||
# /etc/systemd/system/mariadb.service.d/migrated-from-my.cnf-settings.conf
|
# /etc/systemd/system/mariadb.service.d/migrated-from-my.cnf-settings.conf
|
||||||
|
@ -22,8 +22,7 @@
|
||||||
# This will be passed to all mysql clients
|
# This will be passed to all mysql clients
|
||||||
# It has been reported that passwords should be enclosed with ticks/quotes
|
# It has been reported that passwords should be enclosed with ticks/quotes
|
||||||
# especially if they contain "#" chars...
|
# especially if they contain "#" chars...
|
||||||
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
|
|
||||||
socket = /run/mysqld/mysqld.sock
|
|
||||||
nice = 0
|
nice = 0
|
||||||
skip_log_error
|
skip_log_error
|
||||||
syslog
|
syslog
|
||||||
|
|
|
@ -14,8 +14,6 @@
|
||||||
|
|
||||||
user = mysql
|
user = mysql
|
||||||
pid-file = /run/mysqld/mysqld.pid
|
pid-file = /run/mysqld/mysqld.pid
|
||||||
socket = /run/mysqld/mysqld.sock
|
|
||||||
#port = 3306
|
|
||||||
basedir = /usr
|
basedir = /usr
|
||||||
datadir = /var/lib/mysql
|
datadir = /var/lib/mysql
|
||||||
tmpdir = /tmp
|
tmpdir = /tmp
|
||||||
|
|
1
debian/additions/my.cnf
vendored
1
debian/additions/my.cnf
vendored
|
@ -1 +0,0 @@
|
||||||
mariadb.cnf
|
|
2
debian/mariadb-plugin-connect.install
vendored
2
debian/mariadb-plugin-connect.install
vendored
|
@ -1,2 +1,2 @@
|
||||||
etc/mysql/conf.d/connect.cnf etc/mysql/mariadb.conf.d
|
etc/mysql/mariadb.conf.d/connect.cnf
|
||||||
usr/lib/mysql/plugin/ha_connect.so
|
usr/lib/mysql/plugin/ha_connect.so
|
||||||
|
|
|
@ -1,2 +1,2 @@
|
||||||
etc/mysql/conf.d/cracklib_password_check.cnf etc/mysql/mariadb.conf.d
|
etc/mysql/mariadb.conf.d/cracklib_password_check.cnf
|
||||||
usr/lib/mysql/plugin/cracklib_password_check.so
|
usr/lib/mysql/plugin/cracklib_password_check.so
|
||||||
|
|
2
debian/mariadb-plugin-gssapi-server.install
vendored
2
debian/mariadb-plugin-gssapi-server.install
vendored
|
@ -1,2 +1,2 @@
|
||||||
etc/mysql/conf.d/auth_gssapi.cnf etc/mysql/mariadb.conf.d
|
etc/mysql/mariadb.conf.d/auth_gssapi.cnf
|
||||||
usr/lib/mysql/plugin/auth_gssapi.so
|
usr/lib/mysql/plugin/auth_gssapi.so
|
||||||
|
|
2
debian/mariadb-plugin-oqgraph.install
vendored
2
debian/mariadb-plugin-oqgraph.install
vendored
|
@ -1,2 +1,2 @@
|
||||||
etc/mysql/conf.d/oqgraph.cnf etc/mysql/mariadb.conf.d
|
etc/mysql/mariadb.conf.d/oqgraph.cnf
|
||||||
usr/lib/mysql/plugin/ha_oqgraph.so
|
usr/lib/mysql/plugin/ha_oqgraph.so
|
||||||
|
|
2
debian/mariadb-plugin-rocksdb.install
vendored
2
debian/mariadb-plugin-rocksdb.install
vendored
|
@ -1,4 +1,4 @@
|
||||||
etc/mysql/conf.d/rocksdb.cnf etc/mysql/mariadb.conf.d
|
etc/mysql/mariadb.conf.d/rocksdb.cnf
|
||||||
usr/bin/mariadb-ldb
|
usr/bin/mariadb-ldb
|
||||||
usr/bin/myrocks_hotbackup
|
usr/bin/myrocks_hotbackup
|
||||||
usr/lib/mysql/plugin/ha_rocksdb.so
|
usr/lib/mysql/plugin/ha_rocksdb.so
|
||||||
|
|
2
debian/mariadb-plugin-spider.install
vendored
2
debian/mariadb-plugin-spider.install
vendored
|
@ -1,2 +1,2 @@
|
||||||
etc/mysql/conf.d/spider.cnf etc/mysql/mariadb.conf.d
|
etc/mysql/mariadb.conf.d/spider.cnf
|
||||||
usr/lib/mysql/plugin/ha_spider.so
|
usr/lib/mysql/plugin/ha_spider.so
|
||||||
|
|
1
debian/mysql-common.install
vendored
1
debian/mysql-common.install
vendored
|
@ -1 +0,0 @@
|
||||||
debian/additions/my.cnf etc/mysql
|
|
1
debian/mysql-common.links
vendored
Normal file
1
debian/mysql-common.links
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
etc/mysql/mariadb.cnf etc/mysql/my.cnf
|
|
@ -50,8 +50,14 @@ ELSEIF(PLUGIN_PARTITION MATCHES "^NO$")
|
||||||
ELSE()
|
ELSE()
|
||||||
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/storage/spider/hs_client)
|
INCLUDE_DIRECTORIES(${CMAKE_SOURCE_DIR}/storage/spider/hs_client)
|
||||||
|
|
||||||
MYSQL_ADD_PLUGIN(spider ${SPIDER_SOURCES}
|
IF(DEB)
|
||||||
STORAGE_ENGINE COMPONENT spider-engine MODULE_ONLY MODULE_OUTPUT_NAME "ha_spider")
|
SET(extra_options COMPONENT spider-engine)
|
||||||
|
ELSE()
|
||||||
|
SET(extra_options CONFIG spider.cnf)
|
||||||
|
ENDIF()
|
||||||
|
|
||||||
|
MYSQL_ADD_PLUGIN(spider ${SPIDER_SOURCES} ${extra_options}
|
||||||
|
STORAGE_ENGINE MODULE_ONLY)
|
||||||
IF(NOT TARGET spider)
|
IF(NOT TARGET spider)
|
||||||
RETURN()
|
RETURN()
|
||||||
ENDIF()
|
ENDIF()
|
||||||
|
|
5
storage/spider/spider.cnf
Normal file
5
storage/spider/spider.cnf
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
[mariadb]
|
||||||
|
#
|
||||||
|
# uncomment the following line to enable SPIDER storage engine
|
||||||
|
#
|
||||||
|
#plugin-load-add=ha_spider.so
|
Loading…
Reference in a new issue