summaryrefslogtreecommitdiff
path: root/cmake/plugin.cmake
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-09-08 19:42:53 +0200
committerSergei Golubchik <serg@mariadb.org>2018-09-21 13:31:37 +0200
commit21d157abaaffe41382ccb0524d8f255f79bec8b1 (patch)
treed3862876b27c0672eb783543cd59635e90e55683 /cmake/plugin.cmake
parent5c83305c4c395cf79f19c6fc63e8d566e3815598 (diff)
downloadmariadb-git-21d157abaaffe41382ccb0524d8f255f79bec8b1.tar.gz
MDEV-14560 Extra engines enabled through additional config are not loaded on first installation
RPM solution: Make all server plugins to restart the server when installed. To avoid multiple server restarts, do it only once in posttrans scriptlet. Add support for CPACK_RPM_<component>_POST_TRANS_SCRIPT_FILE
Diffstat (limited to 'cmake/plugin.cmake')
-rw-r--r--cmake/plugin.cmake2
1 files changed, 2 insertions, 0 deletions
diff --git a/cmake/plugin.cmake b/cmake/plugin.cmake
index 26acf442620..9b7af6065e2 100644
--- a/cmake/plugin.cmake
+++ b/cmake/plugin.cmake
@@ -243,6 +243,8 @@ MACRO(MYSQL_ADD_PLUGIN)
ENDIF()
INSTALL(FILES ${ARG_CONFIG} COMPONENT ${ARG_COMPONENT} DESTINATION ${INSTALL_SYSCONF2DIR})
SET(CPACK_RPM_${ARG_COMPONENT}_USER_FILELIST ${ignored} "%config(noreplace) ${INSTALL_SYSCONF2DIR}/*" PARENT_SCOPE)
+ SET(CPACK_RPM_${ARG_COMPONENT}_POST_INSTALL_SCRIPT_FILE ${CMAKE_SOURCE_DIR}/support-files/rpm/plugin-postin.sh PARENT_SCOPE)
+ SET(CPACK_RPM_${ARG_COMPONENT}_POST_TRANS_SCRIPT_FILE ${CMAKE_SOURCE_DIR}/support-files/rpm/server-posttrans.sh PARENT_SCOPE)
ENDIF()
ENDIF()
ELSE()