summaryrefslogtreecommitdiffstats
path: root/cmake
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2019-10-24 20:59:30 +0200
committerMauro Sardara <msardara@cisco.com>2019-10-25 11:59:49 +0200
commitbaaeb1af53ab4c64b31786bddfd7573445f21342 (patch)
tree5934885d9732b8c890d8ee89787ba5d3f2dbd527 /cmake
parentcf3d6ef0cbda50c9917421213a77097250f3d67b (diff)
[HICN-358] Enable systemctl service after package installation.
Change-Id: I1c9a7099fbf59c09fb22475e9695373f316d0b6e Signed-off-by: Mauro Sardara <msardara@cisco.com>
Diffstat (limited to 'cmake')
-rw-r--r--cmake/Modules/Packager.cmake6
1 files changed, 5 insertions, 1 deletions
diff --git a/cmake/Modules/Packager.cmake b/cmake/Modules/Packager.cmake
index 6f77fd3a8..e5e3fa731 100644
--- a/cmake/Modules/Packager.cmake
+++ b/cmake/Modules/Packager.cmake
@@ -136,7 +136,7 @@ macro(make_packages)
set(CPACK_${type}_${uc}_PACKAGE_NAME "${lc}")
set(CPACK_COMPONENT_${uc}_DESCRIPTION "${${lc}_DESCRIPTION}")
- if (NOT ${${lc}_DEB_PACKAGE_CONTROL_EXTRA} STREQUAL "")
+ if (${lc}_DEB_PACKAGE_CONTROL_EXTRA)
set(CPACK_DEBIAN_${uc}_PACKAGE_CONTROL_EXTRA "${${lc}_DEB_PACKAGE_CONTROL_EXTRA}")
endif()
endforeach()
@@ -183,6 +183,10 @@ macro(make_packages)
if (NOT ${${lc}_RPM_POST_UNINSTALL_SCRIPT_FILE} STREQUAL "")
set(CPACK_RPM_${uc}_POST_UNINSTALL_SCRIPT_FILE "${${lc}_RPM_POST_UNINSTALL_SCRIPT_FILE}")
endif()
+
+ if (NOT ${${lc}_RPM_PRE_UNINSTALL_SCRIPT_FILE} STREQUAL "")
+ set(CPACK_RPM_${uc}_PRE_UNINSTALL_SCRIPT_FILE "${${lc}_RPM_PRE_UNINSTALL_SCRIPT_FILE}")
+ endif()
endforeach()
endif()