]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cmake: add "WITH_SUBMAN" option
authorKefu Chai <kchai@redhat.com>
Thu, 21 Jul 2016 17:42:39 +0000 (01:42 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 25 Jul 2016 07:39:01 +0000 (15:39 +0800)
it is used by ceph.spec.in for installing subscription manager cron job
on rhel.

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/CMakeLists.txt
src/script/CMakeLists.txt [new file with mode: 0644]

index a09ed17f5afa4c9aa842be8e366ed83cfb51ac05..8784350b775a475dc646d7b58d61a9ddb6256a51 100644 (file)
@@ -878,3 +878,5 @@ if (IS_DIRECTORY "${PROJECT_SOURCE_DIR}/.git")
     COMMAND git submodule update --force --init --recursive
     WORKING_DIRECTORY "${PROJECT_SOURCE_DIR}")
 endif()
+
+add_subdirectory(script)
diff --git a/src/script/CMakeLists.txt b/src/script/CMakeLists.txt
new file mode 100644 (file)
index 0000000..7a20ba3
--- /dev/null
@@ -0,0 +1,7 @@
+option(WITH_SUBMAN "install subscription manager cron job" OFF)
+
+if(WITH_SUBMAN)
+  install(PROGRAMS
+    ${CMAKE_CURRENT_SOURCE_DIR}/subman
+    DESTINATION ${CMAKE_INSTALL_SYSCONFDIR}/cron.hourly)
+endif()