Repository: qpid-dispatch
Updated Branches:
  refs/heads/master 392289b75 -> 1dbfefa07


DISPATCH-859 - Introduced SYSTEMD and SYSVINIT cmake switches to install files 
accordingly.


Project: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/repo
Commit: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/commit/1dbfefa0
Tree: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/tree/1dbfefa0
Diff: http://git-wip-us.apache.org/repos/asf/qpid-dispatch/diff/1dbfefa0

Branch: refs/heads/master
Commit: 1dbfefa07379c2091734d7745a65547caa3a15c0
Parents: 392289b
Author: Ganesh Murthy <gmur...@redhat.com>
Authored: Fri Oct 20 16:51:51 2017 -0400
Committer: Ganesh Murthy <gmur...@redhat.com>
Committed: Fri Oct 20 16:51:51 2017 -0400

----------------------------------------------------------------------
 CMakeLists.txt | 13 +++++++++++++
 1 file changed, 13 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/qpid-dispatch/blob/1dbfefa0/CMakeLists.txt
----------------------------------------------------------------------
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 10ca71b..7ee16cb 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -31,6 +31,8 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PATH} 
"${CMAKE_SOURCE_DIR}/cmake")
 # Build time switch to turn off memory pooling.
 option(USE_MEMORY_POOL "Use per-thread memory pools" ON)
 option(QD_MEMORY_STATS "Track memory pool usage statistics" ON)
+option(SYSTEMD "Install systemd compatible startup script" OFF)
+option(SYSVINIT "Install sysvinit compatible startup script" OFF)
 
 file(STRINGS "${CMAKE_SOURCE_DIR}/VERSION.txt" QPID_DISPATCH_VERSION)
 
@@ -189,6 +191,17 @@ install(FILES
   README
   DESTINATION ${QD_DOC_INSTALL_DIR})
 
+# SYSTEMD or SYSVINIT
+if(SYSTEMD AND SYSVINIT)
+  message(FATAL_ERROR "Both SYSTEMD and SYSVINIT are set to ON. Only one can 
be set to ON")
+endif()
+if(SYSTEMD)
+    install(FILES etc/qdrouterd.service DESTINATION 
${SYSCONF_INSTALL_DIR}/qpid-dispatch)
+endif(SYSTEMD)
+if(SYSVINIT)
+    install(FILES etc/qdrouterd DESTINATION 
${SYSCONF_INSTALL_DIR}/qpid-dispatch)
+endif(SYSVINIT)
+
 
 add_subdirectory(src) # Build src first so other subdirs can use 
QPID_DISPATCH_LIB
 


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@qpid.apache.org
For additional commands, e-mail: commits-h...@qpid.apache.org

Reply via email to