aboutsummaryrefslogtreecommitdiffstats
path: root/hicn-light/cmake/Modules/Packaging.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 /hicn-light/cmake/Modules/Packaging.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 'hicn-light/cmake/Modules/Packaging.cmake')
-rw-r--r--hicn-light/cmake/Modules/Packaging.cmake17
1 files changed, 16 insertions, 1 deletions
diff --git a/hicn-light/cmake/Modules/Packaging.cmake b/hicn-light/cmake/Modules/Packaging.cmake
index 006261b03..2b9f4a7b9 100644
--- a/hicn-light/cmake/Modules/Packaging.cmake
+++ b/hicn-light/cmake/Modules/Packaging.cmake
@@ -25,7 +25,22 @@ set(${HICN_LIGHT}_DEB_DEPENDENCIES
CACHE STRING "Dependencies for deb/rpm package."
)
+set(${HICN_LIGHT}_DEB_PACKAGE_CONTROL_EXTRA
+ "${CMAKE_CURRENT_SOURCE_DIR}/config/postinst;${CMAKE_CURRENT_SOURCE_DIR}/config/prerm"
+ CACHE STRING "Control scripts conffiles, postinst, postrm, prerm."
+)
+
set(${HICN_LIGHT}_RPM_DEPENDENCIES
"lib${LIBHICN} >= stable_version, libparc >= 1.0"
CACHE STRING "Dependencies for deb/rpm package."
-) \ No newline at end of file
+)
+
+set(${HICN_LIGHT}_RPM_POST_INSTALL_SCRIPT_FILE
+ "${CMAKE_CURRENT_SOURCE_DIR}/config/post"
+ CACHE STRING "Install script that will be copied in the %post section"
+)
+
+set(${HICN_LIGHT}_RPM_PRE_UNINSTALL_SCRIPT_FILE
+ "${CMAKE_CURRENT_SOURCE_DIR}/config/preun"
+ CACHE STRING "Install script that will be copied in the %post section"
+)