aboutsummaryrefslogtreecommitdiffstats
path: root/ctrl/facemgr/cmake/Modules/Packaging.cmake
diff options
context:
space:
mode:
authorMauro Sardara <msardara@cisco.com>2021-05-17 09:41:49 +0000
committerGerrit Code Review <gerrit@fd.io>2021-05-17 09:41:49 +0000
commit0982497d26806bad1a069766ac46a4f238d850ab (patch)
tree258b44677913b500c59fafaf46ab9d390328f757 /ctrl/facemgr/cmake/Modules/Packaging.cmake
parent9b1c12ef3312e4f7355b2218aaf24773b7d541ff (diff)
parente2b9f02e5e1420ea96d0174d75a53d42f5837e00 (diff)
Merge "[HICN-695] facemgr: add systemd service"
Diffstat (limited to 'ctrl/facemgr/cmake/Modules/Packaging.cmake')
-rw-r--r--ctrl/facemgr/cmake/Modules/Packaging.cmake15
1 files changed, 15 insertions, 0 deletions
diff --git a/ctrl/facemgr/cmake/Modules/Packaging.cmake b/ctrl/facemgr/cmake/Modules/Packaging.cmake
index 3a7e5a85c..bb4fa42fa 100644
--- a/ctrl/facemgr/cmake/Modules/Packaging.cmake
+++ b/ctrl/facemgr/cmake/Modules/Packaging.cmake
@@ -25,7 +25,22 @@ set(${FACEMGR}_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(${FACEMGR}_RPM_DEPENDENCIES
"libconfig, libevent-devel, lib${LIBHICNCTRL} >= stable_version"
CACHE STRING "Dependencies for deb/rpm package."
)
+
+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"
+)