[icinga-checkins] icinga.org: icinga2/feature/cmake-4962: Don' t install init script on Windows.

git at icinga.org git at icinga.org
Sat Nov 2 10:42:39 CET 2013


Module: icinga2
Branch: feature/cmake-4962
Commit: 2feefe16cd5485bcd06e10653b8a92d1af2ce646
URL:    https://git.icinga.org/?p=icinga2.git;a=commit;h=2feefe16cd5485bcd06e10653b8a92d1af2ce646

Author: Gunnar Beutner <gunnar at beutner.name>
Date:   Fri Nov  1 17:44:12 2013 +0100

Don't install init script on Windows.

---

 etc/CMakeLists.txt |   14 ++++++++------
 1 file changed, 8 insertions(+), 6 deletions(-)

diff --git a/etc/CMakeLists.txt b/etc/CMakeLists.txt
index 00c8d62..37c6f61 100644
--- a/etc/CMakeLists.txt
+++ b/etc/CMakeLists.txt
@@ -26,9 +26,11 @@ install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ../feat
 install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ../features-available/notification.conf ${CMAKE_INSTALL_FULL_SYSCONFDIR}/icinga2/features-enabled/notification.conf)")
 install(CODE "execute_process(COMMAND ${CMAKE_COMMAND} -E create_symlink ../features-available/syslog.conf ${CMAKE_INSTALL_FULL_SYSCONFDIR}/icinga2/features-enabled/syslog.conf)")
 
-configure_file(init.d/icinga2.cmake init.d/icinga2)
-install(
-  FILES ${CMAKE_CURRENT_BINARY_DIR}/init.d/icinga2
-  DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/init.d
-  PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
-)
+if(NOT WIN32)
+  configure_file(init.d/icinga2.cmake init.d/icinga2)
+  install(
+    FILES ${CMAKE_CURRENT_BINARY_DIR}/init.d/icinga2
+    DESTINATION ${CMAKE_INSTALL_FULL_SYSCONFDIR}/init.d
+    PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE WORLD_READ WORLD_EXECUTE
+  )
+endif()





More information about the icinga-checkins mailing list