2021-08-25 19:19:44 +00:00
|
|
|
--- mysql-8.0.22/scripts/CMakeLists.txt.old 2020-10-26 10:23:30.666696561 +0100
|
|
|
|
+++ mysql-8.0.22/scripts/CMakeLists.txt 2020-10-26 10:25:14.447914251 +0100
|
|
|
|
@@ -507,4 +507,33 @@
|
|
|
|
)
|
|
|
|
ENDIF()
|
2020-09-15 19:05:01 +00:00
|
|
|
ENDIF()
|
2021-08-25 19:19:44 +00:00
|
|
|
+
|
2020-09-15 19:05:01 +00:00
|
|
|
+ # files for systemd
|
|
|
|
+ SET(SYSTEMD_SCRIPTS
|
|
|
|
+ mysql.tmpfiles.d
|
|
|
|
+ mysql.service
|
|
|
|
+ mysql@.service
|
|
|
|
+ mysql-prepare-db-dir
|
|
|
|
+ mysql-wait-ready
|
|
|
|
+ mysql-wait-stop
|
|
|
|
+ mysql-check-socket
|
|
|
|
+ mysql-check-upgrade
|
|
|
|
+ mysql-scripts-common
|
|
|
|
+ mysql_config_multilib
|
|
|
|
+ mysql.init
|
|
|
|
+ my.cnf
|
|
|
|
+ server.cnf
|
|
|
|
+ )
|
|
|
|
+ FOREACH(file ${SYSTEMD_SCRIPTS})
|
|
|
|
+ IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file}.sh)
|
|
|
|
+ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${file}.sh
|
|
|
|
+ ${CMAKE_CURRENT_BINARY_DIR}/${file} ESCAPE_QUOTES @ONLY)
|
|
|
|
+ ELSEIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file}.in)
|
|
|
|
+ CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${file}.in
|
|
|
|
+ ${CMAKE_CURRENT_BINARY_DIR}/${file} ESCAPE_QUOTES @ONLY)
|
|
|
|
+ ELSE()
|
|
|
|
+ MESSAGE(FATAL_ERROR "Can not find ${file}.sh or ${file}.in in "
|
|
|
|
+ "${CMAKE_CURRENT_SOURCE_DIR}" )
|
|
|
|
+ ENDIF()
|
|
|
|
+ ENDFOREACH()
|
|
|
|
ENDIF()
|