Blame SOURCES/mysql-scripts.patch

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