Skip to content

Commit 07d1c85

Browse files
committed
post-fix for #1504
1 parent d3f4748 commit 07d1c85

18 files changed

+30
-23
lines changed

cmake/install_layout.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,7 @@ SET(INSTALL_BINDIR_DEB "bin")
175175
SET(INSTALL_SBINDIR_DEB "sbin")
176176
SET(INSTALL_SCRIPTDIR_DEB "bin")
177177
SET(INSTALL_SYSCONFDIR_DEB "/etc")
178-
SET(INSTALL_SYSCONF2DIR_DEB "/etc/mysql/conf.d")
178+
SET(INSTALL_SYSCONF2DIR_DEB "/etc/mysql/mariadb.conf.d")
179179
#
180180
SET(INSTALL_LIBDIR_DEB "lib/${CMAKE_CXX_LIBRARY_ARCHITECTURE}")
181181
SET(INSTALL_PLUGINDIR_DEB "lib/mysql/plugin")

cmake/plugin.cmake

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -252,7 +252,6 @@ MACRO(MYSQL_ADD_PLUGIN)
252252
SET(ARG_CONFIG "${CMAKE_CURRENT_BINARY_DIR}/CMakeFiles/${target}.cnf")
253253
FILE(WRITE ${ARG_CONFIG} "[mariadb]\nplugin-load-add=${ARG_MODULE_OUTPUT_NAME}.so\n")
254254
ENDIF()
255-
INSTALL(FILES ${ARG_CONFIG} COMPONENT ${ARG_COMPONENT} DESTINATION ${INSTALL_SYSCONF2DIR})
256255
SET(CPACK_RPM_${ARG_COMPONENT}_USER_FILELIST ${ignored} "%config(noreplace) ${INSTALL_SYSCONF2DIR}/*" PARENT_SCOPE)
257256
SET(CPACK_RPM_${ARG_COMPONENT}_POST_INSTALL_SCRIPT_FILE ${CMAKE_SOURCE_DIR}/support-files/rpm/plugin-postin.sh PARENT_SCOPE)
258257
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)
262261
SET(ARG_COMPONENT Server)
263262
ENDIF()
264263
MYSQL_INSTALL_TARGETS(${target} DESTINATION ${INSTALL_PLUGINDIR} COMPONENT ${ARG_COMPONENT})
264+
IF(ARG_CONFIG AND INSTALL_SYSCONF2DIR)
265+
INSTALL(FILES ${ARG_CONFIG} COMPONENT ${ARG_COMPONENT} DESTINATION ${INSTALL_SYSCONF2DIR})
266+
ENDIF()
265267
ENDIF()
266268

267269
GET_FILENAME_COMPONENT(subpath ${CMAKE_CURRENT_SOURCE_DIR} NAME)

debian/additions/mariadb.cnf

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@
1818
#
1919
[client-server]
2020

21+
socket = /run/mysqld/mysqld.sock
22+
#port = 3306
23+
2124
# Import all .cnf files from configuration directory
2225
!includedir /etc/mysql/conf.d/
2326
!includedir /etc/mysql/mariadb.conf.d/

debian/additions/mariadb.conf.d/50-client.cnf

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,6 @@
77
# Default is Latin1, if you need UTF-8 set this (also in server section)
88
default-character-set = utf8mb4
99

10-
# socket location
11-
socket = /run/mysqld/mysqld.sock
12-
1310
# Example of client certificate usage
1411
# ssl-cert=/etc/mysql/client-cert.pem
1512
# ssl-key=/etc/mysql/client-key.pem

debian/additions/mariadb.conf.d/50-mysql-clients.cnf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@
44
#
55

66
[mysql]
7-
# Default is Latin1, if you need UTF-8 set this (also in server section)
8-
default-character-set = utf8mb4
97

108
[mysql_upgrade]
119

debian/additions/mariadb.conf.d/50-mysqld_safe.cnf

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# NOTE: This file is read only by the traditional SysV init script, not systemd.
2-
# MariaDB systemd does _not_ utilize mysqld_safe nor read this file.
1+
# NOTE: THIS FILE IS READ ONLY BY THE TRADITIONAL SYSV INIT SCRIPT, NOT SYSTEMD.
2+
# MARIADB SYSTEMD DOES _NOT_ UTILIZE MYSQLD_SAFE NOR READ THIS FILE.
33
#
44
# For similar behavior, systemd users should create the following file:
55
# /etc/systemd/system/mariadb.service.d/migrated-from-my.cnf-settings.conf
@@ -22,8 +22,7 @@
2222
# This will be passed to all mysql clients
2323
# It has been reported that passwords should be enclosed with ticks/quotes
2424
# especially if they contain "#" chars...
25-
# Remember to edit /etc/mysql/debian.cnf when changing the socket location.
26-
socket = /run/mysqld/mysqld.sock
25+
2726
nice = 0
2827
skip_log_error
2928
syslog

debian/additions/mariadb.conf.d/50-server.cnf

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,6 @@
1414

1515
user = mysql
1616
pid-file = /run/mysqld/mysqld.pid
17-
socket = /run/mysqld/mysqld.sock
18-
#port = 3306
1917
basedir = /usr
2018
datadir = /var/lib/mysql
2119
tmpdir = /tmp

debian/additions/my.cnf

Lines changed: 0 additions & 1 deletion
This file was deleted.

debian/mariadb-plugin-connect.install

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
etc/mysql/conf.d/connect.cnf etc/mysql/mariadb.conf.d
1+
etc/mysql/mariadb.conf.d/connect.cnf
22
usr/lib/mysql/plugin/ha_connect.so
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
etc/mysql/conf.d/cracklib_password_check.cnf etc/mysql/mariadb.conf.d
1+
etc/mysql/mariadb.conf.d/cracklib_password_check.cnf
22
usr/lib/mysql/plugin/cracklib_password_check.so

0 commit comments

Comments
 (0)