Skip to content

Commit

Permalink
fix BAREOS headers in all cmake files
Browse files Browse the repository at this point in the history
  • Loading branch information
pstorz authored and franku committed Jul 20, 2020
1 parent 61c1ca6 commit 9dc8c28
Show file tree
Hide file tree
Showing 5 changed files with 114 additions and 19 deletions.
53 changes: 36 additions & 17 deletions core/src/dird/dbcopy/CMakeLists.txt
@@ -1,20 +1,39 @@
# BAREOS® - Backup Archiving REcovery Open Sourced
#
# Copyright (C) 2020-2020 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(dynamic-cats-backends)
add_executable(bareos-dbcopy dbcopy.cc database_table_descriptions.cc
database_column_descriptions.cc column_description.cc
database_import.cc database_import_mysql.cc database_export.cc
database_export_postgresql.cc progress.cc)
target_link_libraries(bareos-dbcopy
bareos
dird_objects
bareosfind
bareoscats
bareossql
$<$<BOOL:HAVE_PAM>:${PAM_LIBRARIES}>
${LMDB_LIBS}
add_executable(
bareos-dbcopy
dbcopy.cc
database_table_descriptions.cc
database_column_descriptions.cc
column_description.cc
database_import.cc
database_import_mysql.cc
database_export.cc
database_export_postgresql.cc
progress.cc
)
target_link_libraries(
bareos-dbcopy bareos dird_objects bareosfind bareoscats bareossql
$<$<BOOL:HAVE_PAM>:${PAM_LIBRARIES}> ${LMDB_LIBS}
)

install(TARGETS
bareos-dbcopy
DESTINATION "${sbindir}"
)
endif() #dynamic-cats-backends
install(TARGETS bareos-dbcopy DESTINATION "${sbindir}")
endif() # dynamic-cats-backends
19 changes: 19 additions & 0 deletions core/src/vmware/vadp_dumper/CMakeLists.txt
@@ -1,3 +1,22 @@
# BAREOS® - Backup Archiving REcovery Open Sourced
#
# Copyright (C) 2020-2020 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.

include_directories(${VIXDISKLIB_INCLUDE_DIRS})
get_filename_component(
VIX_DISKLIB_LIBRARY_DIR ${VIXDISKLIB_LIBRARIES} DIRECTORY
Expand Down
19 changes: 19 additions & 0 deletions core/src/vmware/vmware-vix-disklib/CMakeLists.txt
@@ -1,3 +1,22 @@
# BAREOS® - Backup Archiving REcovery Open Sourced
#
# Copyright (C) 2020-2020 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.

install(
DIRECTORY /usr/lib/vmware-vix-disklib/lib64/
DESTINATION /usr/lib/vmware-vix-disklib/lib64
Expand Down
19 changes: 19 additions & 0 deletions core/src/vmware/vmware_cbt_tool/CMakeLists.txt
@@ -1,3 +1,22 @@
# BAREOS® - Backup Archiving REcovery Open Sourced
#
# Copyright (C) 2020-2020 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.

install(
FILES vmware_cbt_tool.py
PERMISSIONS OWNER_READ OWNER_WRITE OWNER_EXECUTE GROUP_READ GROUP_EXECUTE
Expand Down
23 changes: 21 additions & 2 deletions core/src/vmware/vmware_plugin/CMakeLists.txt
@@ -1,3 +1,22 @@
# BAREOS® - Backup Archiving REcovery Open Sourced
#
# Copyright (C) 2020-2020 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.

get_property(LIB64 GLOBAL PROPERTY FIND_LIBRARY_USE_LIB64_PATHS)
if("${LIB64}" STREQUAL "TRUE")
set(LIBSUFFIX 64)
Expand All @@ -20,8 +39,8 @@ install(DIRECTORY
DESTINATION "${INSTALL_LIB_DIR}/bareos/plugins/vmware_plugin/"
)
install(
# as this command is not handled by "INSTALL DESTINATION",
# the target path must be evaluated manually.
# as this command is not handled by "INSTALL DESTINATION", the target path
# must be evaluated manually.
CODE "
execute_process(COMMAND ln -sf \
../bareos-fd-vmware.py \
Expand Down

0 comments on commit 9dc8c28

Please sign in to comment.