From 56a094561637b760b452eb11fa3dfef25b754d4b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Markus=20M=C3=A4kel=C3=A4?= Date: Sun, 18 Nov 2018 22:33:05 +0200 Subject: [PATCH] Add install scripts to maxscale-all package The combined package should have the post-install and post-uninstall scripts. --- cmake/package_deb.cmake | 2 +- cmake/package_rpm.cmake | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/cmake/package_deb.cmake b/cmake/package_deb.cmake index cbc18f593..87e9bf577 100644 --- a/cmake/package_deb.cmake +++ b/cmake/package_deb.cmake @@ -4,7 +4,7 @@ execute_process(COMMAND dpkg --print-architecture OUTPUT_VARIABLE DEB_ARCHITECTU set(CPACK_DEBIAN_PACKAGE_ARCHITECTURE ${DEB_ARCHITECTURE}) set(CPACK_DEBIAN_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}") -if(TARGET_COMPONENT STREQUAL "core") +if(TARGET_COMPONENT STREQUAL "core" OR TARGET_COMPONENT STREQUAL "all") set(CPACK_DEBIAN_PACKAGE_SHLIBDEPS ON) set(CPACK_DEBIAN_PACKAGE_CONTROL_EXTRA "${CMAKE_BINARY_DIR}/postinst;${CMAKE_BINARY_DIR}/postrm") elseif(TARGET_COMPONENT STREQUAL "devel") diff --git a/cmake/package_rpm.cmake b/cmake/package_rpm.cmake index 7980aa36c..9d38836f1 100644 --- a/cmake/package_rpm.cmake +++ b/cmake/package_rpm.cmake @@ -36,7 +36,7 @@ set(IGNORED_DIRS set(CPACK_RPM_USER_FILELIST "${IGNORED_DIRS}") -if(TARGET_COMPONENT STREQUAL "core") +if(TARGET_COMPONENT STREQUAL "core" OR TARGET_COMPONENT STREQUAL "all") set(CPACK_RPM_POST_INSTALL_SCRIPT_FILE ${CMAKE_BINARY_DIR}/postinst) set(CPACK_RPM_POST_UNINSTALL_SCRIPT_FILE ${CMAKE_BINARY_DIR}/postrm)