ganapathi / rpms / mariadb

Forked from rpms/mariadb 4 years ago
Clone

Blame SOURCES/mariadb-scripts.patch

a555f2
We have some downstream patches and other scripts that include variables to
a555f2
be expanded by cmake. Cmake needs to know about them, so adding them manually.
a555f2
a555f2
--- mariadb-10.3.8/scripts/CMakeLists.txt	2018-07-02 09:34:11.000000000 +0200
a555f2
+++ mariadb-10.3.8/scripts/CMakeLists.txt_patched	2018-07-03 10:58:15.954670153 +0200
a555f2
@@ -361,6 +361,34 @@ ELSE()
a555f2
       COMPONENT ${${file}_COMPONENT}
a555f2
      )
a555f2
   ENDFOREACH()
a555f2
+
a555f2
+  # files for systemd
a555f2
+  SET(SYSTEMD_SCRIPTS
a555f2
+    mysql.tmpfiles.d
a555f2
+    mysql.service
a555f2
+    mysql@.service
a555f2
+    mysql-prepare-db-dir
a555f2
+    mysql-check-socket
a555f2
+    mysql-check-upgrade
a555f2
+    mysql-scripts-common
a555f2
+    mysql_config_multilib
a555f2
+    clustercheck
a555f2
+    galera_new_cluster
a555f2
+    my.cnf
a555f2
+  )
a555f2
+  FOREACH(file ${SYSTEMD_SCRIPTS})
a555f2
+    IF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file}.sh)
a555f2
+      CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${file}.sh
a555f2
+        ${CMAKE_CURRENT_BINARY_DIR}/${file} ESCAPE_QUOTES @ONLY)
a555f2
+    ELSEIF(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${file}.in)
a555f2
+      CONFIGURE_FILE(${CMAKE_CURRENT_SOURCE_DIR}/${file}.in
a555f2
+        ${CMAKE_CURRENT_BINARY_DIR}/${file} ESCAPE_QUOTES @ONLY)
a555f2
+    ELSE()
a555f2
+      MESSAGE(FATAL_ERROR "Can not find ${file}.sh or ${file}.in in "
a555f2
+        "${CMAKE_CURRENT_SOURCE_DIR}" )
a555f2
+    ENDIF()
a555f2
+  ENDFOREACH()
a555f2
+
a555f2
 ENDIF()
a555f2
 
a555f2
 # Install libgcc as  mylibgcc.a