1# BAREOS® - Backup Archiving REcovery Open Sourced 2# 3# Copyright (C) 2018-2020 Bareos GmbH & Co. KG 4# 5# This program is Free Software; you can redistribute it and/or 6# modify it under the terms of version three of the GNU Affero General Public 7# License as published by the Free Software Foundation and included 8# in the file LICENSE. 9# 10# This program is distributed in the hope that it will be useful, but 11# WITHOUT ANY WARRANTY; without even the implied warranty of 12# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 13# Affero General Public License for more details. 14# 15# You should have received a copy of the GNU Affero General Public License 16# along with this program; if not, write to the Free Software 17# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 18# 02110-1301, USA. 19 20 21if(GENERATE_DEBIAN_CONTROL) 22 23 if(HAVE_TRAYMONITOR) 24 file(READ ${CMAKE_SOURCE_DIR}/debian/control.bareos-traymonitor 25 DEBIAN_CONTROL_TRAYMONITOR 26 ) 27 endif() 28 29 if(HAVE_GLUSTERFS) 30 file(READ 31 ${CMAKE_SOURCE_DIR}/debian/control.bareos-filedaemon-glusterfs-plugin 32 DEBIAN_CONTROL_FILEDAEMON_GLUSTERFS_PLUGIN 33 ) 34 file(READ ${CMAKE_SOURCE_DIR}/debian/control.bareos-storage-glusterfs 35 DEBIAN_CONTROL_STORAGE_GLUSTERFS 36 ) 37 endif() 38 39 if(HAVE_CEPHFS) 40 file(READ ${CMAKE_SOURCE_DIR}/debian/control.bareos-filedaemon-ceph-plugin 41 DEBIAN_CONTROL_FILEDAEMON_CEPH_PLUGIN 42 ) 43 file(READ ${CMAKE_SOURCE_DIR}/debian/control.bareos-storage-ceph 44 DEBIAN_CONTROL_STORAGE_CEPH 45 ) 46 endif() 47 48 if(TARGET droplet) 49 file(READ ${CMAKE_SOURCE_DIR}/debian/control.bareos-storage-droplet DEBIAN_CONTROL_STORAGE_DROPLET) 50 endif() 51 52 #python (2) plugins 53 if(Python2_FOUND) 54 file(READ 55 ${CMAKE_SOURCE_DIR}/debian/control.bareos-filedaemon-python2-plugin 56 DEBIAN_CONTROL_FILEDAEMON_PYTHON_PLUGIN 57 ) 58 file(READ ${CMAKE_SOURCE_DIR}/debian/control.bareos-storage-python2-plugin 59 DEBIAN_CONTROL_STORAGE_PYTHON_PLUGIN 60 ) 61 file(READ ${CMAKE_SOURCE_DIR}/debian/control.bareos-director-python2-plugin 62 DEBIAN_CONTROL_DIRECTOR_PYTHON_PLUGIN 63 ) 64 endif() 65 66 # python 3 plugins 67 if(Python3_FOUND) 68 file(READ 69 ${CMAKE_SOURCE_DIR}/debian/control.bareos-filedaemon-python3-plugin 70 DEBIAN_CONTROL_FILEDAEMON_PYTHON3_PLUGIN 71 ) 72 file(READ ${CMAKE_SOURCE_DIR}/debian/control.bareos-storage-python3-plugin 73 DEBIAN_CONTROL_STORAGE_PYTHON3_PLUGIN 74 ) 75 file(READ ${CMAKE_SOURCE_DIR}/debian/control.bareos-director-python3-plugin 76 DEBIAN_CONTROL_DIRECTOR_PYTHON3_PLUGIN 77 ) 78 endif() 79 80 # python plugin common files 81 if(Python2_FOUND OR Python3_FOUND) 82 file( 83 READ 84 ${CMAKE_SOURCE_DIR}/debian/control.bareos-filedaemon-python-plugins-common 85 DEBIAN_CONTROL_FILEDAEMON_PYTHON_PLUGINS_COMMON 86 ) 87 file(READ 88 ${CMAKE_SOURCE_DIR}/debian/control.bareos-storage-python-plugins-common 89 DEBIAN_CONTROL_STORAGEDAEMON_PYTHON_PLUGINS_COMMON 90 ) 91 file( 92 READ 93 ${CMAKE_SOURCE_DIR}/debian/control.bareos-director-python-plugins-common 94 DEBIAN_CONTROL_DIRECTOR_PYTHON_PLUGINS_COMMON 95 ) 96 endif() 97 98 if(${PLATFORM} MATCHES "univention") 99 # only required for univention 100 file(READ ${CMAKE_SOURCE_DIR}/debian/control.univention-bareos 101 DEBIAN_CONTROL_UNIVENTION_BAREOS 102 ) 103 endif() 104 105 file(READ ${CMAKE_SOURCE_DIR}/debian/control.bareos-webui 106 DEBIAN_CONTROL_BAREOS_WEBUI 107 ) 108 109 if(VIXDISKLIB_FOUND) 110 file(READ ${CMAKE_SOURCE_DIR}/debian/control.vmware DEBIAN_CONTROL_VMWARE) 111 endif() 112 113endif() 114