1 # Copyright (c) 2014 Samsung Electronics Co., Ltd All Rights Reserved
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
16 # @file CMakeLists.txt
17 # @author Lukasz Pawelczyk (l.pawelczyk@partner.samsung.com)
20 MESSAGE(STATUS "Installing configs to " ${SC_CONFIG_INSTALL_DIR})
22 FILE(GLOB container_CONF containers/*.conf)
23 FILE(GLOB admin_CONF libvirt-config/*.xml)
24 FILE(GLOB template_CONF templates/*.conf templates/*.xml)
26 ## Generate ####################################################################
27 CONFIGURE_FILE(systemd/security-containers.service.in
28 ${CMAKE_BINARY_DIR}/systemd/security-containers.service)
31 ## Install #####################################################################
32 INSTALL(FILES daemon.conf
33 DESTINATION ${SC_CONFIG_INSTALL_DIR})
35 # preprocess d-bus configs
36 CONFIGURE_FILE(dbus-1/system.d/org.tizen.containers.host.conf.in
37 ${CMAKE_BINARY_DIR}/dbus-1/system.d/org.tizen.containers.host.conf)
39 INSTALL(FILES ${CMAKE_BINARY_DIR}/dbus-1/system.d/org.tizen.containers.host.conf
40 DESTINATION ${SYSCONF_INSTALL_DIR}/dbus-1/system.d/)
42 INSTALL(FILES ${container_CONF}
43 DESTINATION ${SC_CONFIG_INSTALL_DIR}/containers)
45 INSTALL(FILES ${admin_CONF}
46 DESTINATION ${SC_CONFIG_INSTALL_DIR}/libvirt-config)
48 INSTALL(FILES ${template_CONF}
49 DESTINATION ${SC_CONFIG_INSTALL_DIR}/templates)
51 INSTALL(FILES ${CMAKE_BINARY_DIR}/systemd/security-containers.service
52 DESTINATION ${SYSTEMD_UNIT_DIR})