|
|
53b0e5 |
1) Documentation files
|
|
|
53b0e5 |
|
|
|
53b0e5 |
--- galera-26.4.8/CMakeLists.txt 2021-04-08 08:05:44.000000000 +0200
|
|
|
53b0e5 |
+++ galera-26.4.8/CMakeLists.txt_patched 2021-06-10 01:40:26.886770832 +0200
|
|
|
53b0e5 |
@@ -106,14 +106,19 @@ add_subdirectory(galera)
|
|
|
53b0e5 |
add_subdirectory(scripts/packages)
|
|
|
53b0e5 |
add_subdirectory(wsrep/tests)
|
|
|
53b0e5 |
|
|
|
53b0e5 |
+# Make the intall destination for documentation files configurable
|
|
|
53b0e5 |
+if(NOT DEFINED INSTALL_DOCDIR)
|
|
|
53b0e5 |
+ set(INSTALL_DOCDIR "doc" CACHE STRING "path to install documentaion to")
|
|
|
53b0e5 |
+endif()
|
|
|
53b0e5 |
+
|
|
|
53b0e5 |
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES ".*BSD")
|
|
|
53b0e5 |
install(FILES
|
|
|
53b0e5 |
${CMAKE_SOURCE_DIR}/AUTHORS
|
|
|
53b0e5 |
${CMAKE_SOURCE_DIR}/COPYING
|
|
|
53b0e5 |
${CMAKE_SOURCE_DIR}/README
|
|
|
53b0e5 |
- DESTINATION doc)
|
|
|
53b0e5 |
+ DESTINATION ${INSTALL_DOCDIR} )
|
|
|
53b0e5 |
install(FILES ${CMAKE_SOURCE_DIR}/asio/LICENSE_1_0.txt
|
|
|
53b0e5 |
- DESTINATION doc
|
|
|
53b0e5 |
+ DESTINATION ${INSTALL_DOCDIR}
|
|
|
53b0e5 |
RENAME LICENSE.asio)
|
|
|
53b0e5 |
endif()
|
|
|
53b0e5 |
|
|
|
53b0e5 |
|
|
|
53b0e5 |
|
|
|
53b0e5 |
2) Configuration file
|
|
|
53b0e5 |
3) Executable files
|
|
|
53b0e5 |
4) Systemd service file
|
|
|
53b0e5 |
|
|
|
53b0e5 |
--- galera-26.4.8/garb/CMakeLists.txt 2021-06-10 03:54:55.482520883 +0200
|
|
|
53b0e5 |
+++ galera-26.4.8/garb/CMakeLists.txt_patched 2021-06-10 03:54:41.070274710 +0200
|
|
|
53b0e5 |
@@ -31,14 +31,51 @@ target_compile_options(garbd
|
|
|
53b0e5 |
target_link_libraries(garbd gcs4garb gcomm gcache
|
|
|
53b0e5 |
${Boost_PROGRAM_OPTIONS_LIBRARIES})
|
|
|
53b0e5 |
|
|
|
53b0e5 |
-install(TARGETS garbd DESTINATION bin)
|
|
|
53b0e5 |
+# Make the install destination for garbd binary configurable
|
|
|
53b0e5 |
+if(NOT DEFINED INSTALL_GARBD)
|
|
|
53b0e5 |
+ set(INSTALL_GARBD "bin" CACHE STRING "path to install garbd binary to")
|
|
|
53b0e5 |
+endif()
|
|
|
53b0e5 |
+
|
|
|
53b0e5 |
+install(TARGETS garbd
|
|
|
53b0e5 |
+ DESTINATION ${INSTALL_GARBD})
|
|
|
53b0e5 |
+
|
|
|
53b0e5 |
if (NOT ${CMAKE_SYSTEM_NAME} MATCHES ".*BSD")
|
|
|
53b0e5 |
+
|
|
|
53b0e5 |
+ # Make the install destination for garbd-systemd wrapper script configurable
|
|
|
53b0e5 |
+ if(NOT DEFINED INSTALL_GARBD-SYSTEMD)
|
|
|
53b0e5 |
+ set(INSTALL_GARBD-SYSTEMD "share" CACHE STRING "path to install garbd-systemd wrapper script to")
|
|
|
53b0e5 |
+ endif()
|
|
|
53b0e5 |
+
|
|
|
53b0e5 |
+ install(FILES
|
|
|
53b0e5 |
+ ${CMAKE_CURRENT_SOURCE_DIR}/files/garb-systemd
|
|
|
53b0e5 |
+ DESTINATION ${INSTALL_GARBD-SYSTEMD})
|
|
|
53b0e5 |
+
|
|
|
53b0e5 |
+ # Make the install destination for garbd configuration file configurable
|
|
|
53b0e5 |
+ if(NOT DEFINED INSTALL_CONFIGURATION)
|
|
|
53b0e5 |
+ set(INSTALL_CONFIGURATION "share" CACHE STRING "path to install garbd configuration to")
|
|
|
53b0e5 |
+ endif()
|
|
|
53b0e5 |
+
|
|
|
53b0e5 |
install(FILES
|
|
|
53b0e5 |
${CMAKE_CURRENT_SOURCE_DIR}/files/garb.cnf
|
|
|
53b0e5 |
+ DESTINATION ${INSTALL_CONFIGURATION}
|
|
|
53b0e5 |
+ RENAME garb)
|
|
|
53b0e5 |
+
|
|
|
53b0e5 |
+ # Make the install destination for garbd systemd service file configurable
|
|
|
53b0e5 |
+ if(NOT DEFINED INSTALL_SYSTEMD_SERVICE)
|
|
|
53b0e5 |
+ set(INSTALL_SYSTEMD_SERVICE "share" CACHE STRING "path to install garbd Systemd service to")
|
|
|
53b0e5 |
+ endif()
|
|
|
53b0e5 |
+
|
|
|
53b0e5 |
+ install(FILES
|
|
|
53b0e5 |
${CMAKE_CURRENT_SOURCE_DIR}/files/garb.service
|
|
|
53b0e5 |
- ${CMAKE_CURRENT_SOURCE_DIR}/files/garb-systemd
|
|
|
53b0e5 |
- DESTINATION share)
|
|
|
53b0e5 |
+ DESTINATION ${INSTALL_SYSTEMD_SERVICE})
|
|
|
53b0e5 |
+
|
|
|
53b0e5 |
+ # Make the install destination for manpage configurable
|
|
|
53b0e5 |
+ if(NOT DEFINED INSTALL_MANPAGE)
|
|
|
53b0e5 |
+ set(INSTALL_MANPAGE "man/man8" CACHE STRING "path to install manpage to")
|
|
|
53b0e5 |
+ endif()
|
|
|
53b0e5 |
+
|
|
|
53b0e5 |
install(FILES
|
|
|
53b0e5 |
${CMAKE_SOURCE_DIR}/man/garbd.8
|
|
|
53b0e5 |
- DESTINATION man/man8)
|
|
|
53b0e5 |
+ DESTINATION ${INSTALL_MANPAGE})
|
|
|
53b0e5 |
+
|
|
|
53b0e5 |
endif()
|
|
|
53b0e5 |
|
|
|
53b0e5 |
|
|
|
53b0e5 |
|
|
|
53b0e5 |
5) Shared library path
|
|
|
53b0e5 |
|
|
|
53b0e5 |
--- galera-26.4.8/galera/src/CMakeLists.txt 2021-06-10 03:13:05.465005845 +0200
|
|
|
53b0e5 |
+++ galera-26.4.8/galera/src/CMakeLists.txt_patched 2021-06-10 03:16:53.388699046 +0200
|
|
|
53b0e5 |
@@ -112,7 +112,12 @@ endif()
|
|
|
53b0e5 |
|
|
|
53b0e5 |
target_link_libraries(galera_smm galera ${GALERA_LINK_OPTIONS})
|
|
|
53b0e5 |
|
|
|
53b0e5 |
-install(TARGETS galera_smm DESTINATION lib)
|
|
|
53b0e5 |
+# Make the install destination for garbd binary configurable
|
|
|
53b0e5 |
+if(NOT DEFINED INSTALL_LIBDIR)
|
|
|
53b0e5 |
+ set(INSTALL_LIBDIR "lib" CACHE STRING "path to install shared libraries to")
|
|
|
53b0e5 |
+endif()
|
|
|
53b0e5 |
+
|
|
|
53b0e5 |
+install(TARGETS galera_smm DESTINATION ${INSTALL_LIBDIR})
|
|
|
53b0e5 |
|
|
|
53b0e5 |
# The following checks are guaranteed to work only
|
|
|
53b0e5 |
# Linux platform, we skip them on others.
|
|
|
53b0e5 |
|