Blame SOURCES/mysql-scripts.patch

80384c
diff -rup mysql-5.6.19-orig/scripts/CMakeLists.txt mysql-5.6.19/scripts/CMakeLists.txt
80384c
--- mysql-5.6.19-orig/scripts/CMakeLists.txt	2014-07-22 10:07:12.053410263 +0200
80384c
+++ mysql-5.6.19/scripts/CMakeLists.txt	2014-07-22 10:10:44.102502369 +0200
80384c
@@ -381,6 +381,34 @@ ELSE()
80384c
     ENDIF()
80384c
     INSTALL_SCRIPT(${CMAKE_CURRENT_BINARY_DIR}/${file} COMPONENT ${${file}_COMPONENT})
80384c
   ENDFOREACH()
80384c
+
80384c
+  # files for systemd
80384c
+  SET(SYSTEMD_SCRIPTS
80384c
+    mysql.tmpfiles.d
80384c
+    mysql.service
80384c
+    mysql-prepare-db-dir
80384c
+    mysql-wait-ready
80384c
+    mysql-wait-stop
80384c
+    mysql-check-socket
80384c
+    mysql-check-upgrade
80384c
+    mysql-scripts-common
80384c
+    mysql_config_multilib
80384c
+    mysql.init
80384c
+    my.cnf
80384c
+    server.cnf
80384c
+  )
80384c
+  FOREACH(file ${SYSTEMD_SCRIPTS})
80384c
+    IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file}.sh)
80384c
+      CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${file}.sh
80384c
+        ${CMAKE_CURRENT_BINARY_DIR}/${file} ESCAPE_QUOTES @ONLY)
80384c
+    ELSEIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file}.in)
80384c
+      CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${file}.in
80384c
+        ${CMAKE_CURRENT_BINARY_DIR}/${file} ESCAPE_QUOTES @ONLY)
80384c
+    ELSE()
80384c
+      MESSAGE(FATAL_ERROR "Can not find ${file}.sh or ${file}.in in "
80384c
+        "${CMAKE_CURRENT_SOURCE_DIR}" )
80384c
+    ENDIF()
80384c
+  ENDFOREACH()
80384c
 ENDIF()
80384c
 
80384c
 # Install libgcc as  mylibgcc.a