Blame SOURCES/mysql-scripts.patch

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