diff options
author | Philipp Storz <philipp.storz@bareos.com> | 2018-01-29 14:08:04 +0300 |
---|---|---|
committer | Philipp Storz <philipp.storz@bareos.com> | 2018-01-29 17:52:51 +0300 |
commit | 636d315a52569d07704da5241ca27dce7e63547a (patch) | |
tree | 89db76bf916a074b4448c7280f93b18957794b3c /cmake | |
parent | 39ee58bea35322801a1a975753e029ad7e8b47dc (diff) |
cmake: ported generation of debian/control file
Diffstat (limited to 'cmake')
-rw-r--r-- | cmake/BareosGenerateDebianInfo.cmake | 43 | ||||
-rw-r--r-- | cmake/BareosSetVariableDefaults.cmake | 10 |
2 files changed, 53 insertions, 0 deletions
diff --git a/cmake/BareosGenerateDebianInfo.cmake b/cmake/BareosGenerateDebianInfo.cmake new file mode 100644 index 000000000..7ad97503a --- /dev/null +++ b/cmake/BareosGenerateDebianInfo.cmake @@ -0,0 +1,43 @@ +# BAREOS�� - Backup Archiving REcovery Open Sourced +# +# Copyright (C) 2018-2018 Bareos GmbH & Co. KG +# +# This program is Free Software; you can redistribute it and/or +# modify it under the terms of version three of the GNU Affero General Public +# License as published by the Free Software Foundation and included +# in the file LICENSE. +# +# This program is distributed in the hope that it will be useful, but +# WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +# Affero General Public License for more details. +# +# You should have received a copy of the GNU Affero General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA +# 02110-1301, USA. + + +IF(GENERATE_DEBIAN_CONTROL) + + IF(HAVE_TRAYMONITOR) + FILE(READ ./debian/control.bareos-traymonitor DEBIAN_CONTROL_TRAYMONITOR) + ENDIF() + + IF(HAVE_GLUSTERFS) + FILE(READ ./debian/control.bareos-filedaemon-glusterfs-plugin DEBIAN_CONTROL_FILEDAEMON_GLUSTERFS_PLUGIN) + FILE(READ ./debian/control.bareos-storage-glusterfs DEBIAN_CONTROL_STORAGE_GLUSTERFS) + ENDIF() + + IF(HAVE_CEPHFS) + FILE(READ ./debian/control.bareos-filedaemon-ceph-plugin DEBIAN_CONTROL_FILEDAEMON_CEPH_PLUGIN) + FILE(READ ./debian/control.bareos-storage-ceph DEBIAN_CONTROL_STORAGE_CEPH) + ENDIF() + + IF(HAVE_PYTHON) + FILE(READ ./debian/control.bareos-filedaemon-python-plugin DEBIAN_CONTROL_FILEDAEMON_PYTHON_PLUGIN) + FILE(READ ./debian/control.bareos-storage-python-plugin DEBIAN_CONTROL_STORAGE_PYTHON_PLUGIN) + FILE(READ ./debian/control.bareos-director-python-plugin DEBIAN_CONTROL_DIRECTOR_PYTHON_PLUGIN) + ENDIF() + +ENDIF() diff --git a/cmake/BareosSetVariableDefaults.cmake b/cmake/BareosSetVariableDefaults.cmake index 33e686d9f..21eae0248 100644 --- a/cmake/BareosSetVariableDefaults.cmake +++ b/cmake/BareosSetVariableDefaults.cmake @@ -488,6 +488,13 @@ IF(DEFINED test-plugin) SET(HAVE_TEST_PLUGIN 1) ENDIF() +IF(DEFINED dynamic-debian-package-list) + SET(GENERATE_DEBIAN_CONTROL ON) +ELSE() + SET(GENERATE_DEBIAN_CONTROL OFF) +ENDIF() + + # do not destroy bareos-config-lib.sh SET(DB_NAME "@DB_NAME@") SET(DB_USER "@DB_USER@") @@ -499,6 +506,9 @@ IF (${CMAKE_COMPILER_IS_GNUCC}) SET(HAVE_GCC 1) ENDIF() + + + set(lld "\"lld\"") set(llu "\"llu\"") |