Skip to content

Commit

Permalink
debian: fixup cmake changes
Browse files Browse the repository at this point in the history
* ignore files in the right location
* only configure files in core and debian, but not systemtests/regress
* add updated debian/control, so we don't see a change in git after
  configuring the project
  • Loading branch information
arogge committed Aug 7, 2020
1 parent 6c30724 commit af8813c
Show file tree
Hide file tree
Showing 4 changed files with 76 additions and 48 deletions.
46 changes: 46 additions & 0 deletions .gitignore
Expand Up @@ -20,6 +20,52 @@ autoconf/config.log

# debian
debian/*.log
debian/bareos-bconsole.install
debian/bareos-bconsole.postinst
debian/bareos-common.postinst
debian/bareos-common.preinst
debian/bareos-database-common.config
debian/bareos-database-common.install
debian/bareos-database-common.postinst
debian/bareos-database-mysql.install
debian/bareos-database-postgresql.dirs
debian/bareos-director.install
debian/bareos-database-sqlite3.install
debian/bareos-devel.install
debian/bareos-director-python-plugin.install
debian/bareos-director.bareos-dir.init
debian/bareos-common.install
debian/bareos-director.postinst
debian/bareos-director.preinst
debian/bareos-director.service
debian/bareos-filedaemon-ceph-plugin.install
debian/bareos-filedaemon-glusterfs-plugin.install
debian/bareos-filedaemon-ldap-python-plugin.install
debian/bareos-filedaemon-python-plugin.install
debian/bareos-filedaemon.bareos-fd.init
debian/bareos-filedaemon.install
debian/bareos-filedaemon.postinst
debian/bareos-filedaemon.preinst
debian/bareos-filedaemon.service
debian/bareos-regress-config.install
debian/bareos-regress-config.preinst
debian/bareos-storage-ceph.install
debian/bareos-storage-fifo.install
debian/bareos-storage-glusterfs.install
debian/bareos-storage-python-plugin.install
debian/bareos-storage-tape.install
debian/bareos-storage.bareos-sd.init
debian/bareos-storage.install
debian/bareos-storage.postinst
debian/bareos-storage.preinst
debian/bareos-storage.service
debian/bareos-tools.install
debian/bareos-traymonitor.install
debian/bareos-traymonitor.postinst
debian/univention-bareos.postinst
debian/bareos-database-postgresql.install
debian/bareos-database-tools.install
debian/bareos-filedaemon-percona-xtrabackup-python-plugin.install

# etags and cscope db
tags
Expand Down
47 changes: 0 additions & 47 deletions core/.gitignore
@@ -1,50 +1,3 @@
debian/bareos-bconsole.install
debian/bareos-bconsole.postinst
debian/bareos-common.postinst
debian/bareos-common.preinst
debian/bareos-database-common.config
debian/bareos-database-common.install
debian/bareos-database-common.postinst
debian/bareos-database-mysql.install
debian/bareos-database-postgresql.dirs
debian/bareos-director.install
debian/bareos-database-sqlite3.install
debian/bareos-devel.install
debian/bareos-director-python-plugin.install
debian/bareos-director.bareos-dir.init
debian/bareos-common.install
debian/bareos-director.postinst
debian/bareos-director.preinst
debian/bareos-director.service
debian/bareos-filedaemon-ceph-plugin.install
debian/bareos-filedaemon-glusterfs-plugin.install
debian/bareos-filedaemon-ldap-python-plugin.install
debian/bareos-filedaemon-python-plugin.install
debian/bareos-filedaemon.bareos-fd.init
debian/bareos-filedaemon.install
debian/bareos-filedaemon.postinst
debian/bareos-filedaemon.preinst
debian/bareos-filedaemon.service
debian/bareos-regress-config.install
debian/bareos-regress-config.preinst
debian/bareos-storage-ceph.install
debian/bareos-storage-fifo.install
debian/bareos-storage-glusterfs.install
debian/bareos-storage-python-plugin.install
debian/bareos-storage-tape.install
debian/bareos-storage.bareos-sd.init
debian/bareos-storage.install
debian/bareos-storage.postinst
debian/bareos-storage.preinst
debian/bareos-storage.service
debian/bareos-tools.install
debian/bareos-traymonitor.install
debian/bareos-traymonitor.postinst
debian/control
debian/univention-bareos.postinst
debian/bareos-database-postgresql.install
debian/bareos-database-tools.install
debian/bareos-filedaemon-percona-xtrabackup-python-plugin.install
platforms/aix/bareos-fd
platforms/alpha/bareos-fd
platforms/bsdi/bareos-dir
Expand Down
9 changes: 8 additions & 1 deletion core/cmake/BareosConfigureFile.cmake
Expand Up @@ -21,7 +21,14 @@
# configure file all *.in files
#

file(GLOB_RECURSE IN_FILES "${CMAKE_SOURCE_DIR}/*.in")
# if we're not the toplevel project, then we want to glob in core and debian subdirectories only
get_directory_property(have_parent PARENT_DIRECTORY)
if(have_parent)
file(GLOB_RECURSE IN_FILES "${CMAKE_SOURCE_DIR}/core/*.in" "${CMAKE_SOURCE_DIR}/debian/*.in")
else()
file(GLOB_RECURSE IN_FILES "${CMAKE_CURRENT_SOURCE_DIR}/*.in")
endif()

foreach(in_file ${IN_FILES})
string(
REGEX
Expand Down
22 changes: 22 additions & 0 deletions debian/control
Expand Up @@ -315,3 +315,25 @@ Description: Backup Archiving Recovery Open Sourced - common tools
data across a network of computers of different kinds.
.
This package provides scripts and configuration to run bareos-regress with the installed Bareos packages.






















0 comments on commit af8813c

Please sign in to comment.