Skip to content

Commit

Permalink
backends: remove libbareoscats from packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
alaaeddineelamri committed Mar 23, 2023
1 parent 91db1a3 commit 2f0e185
Show file tree
Hide file tree
Showing 12 changed files with 1 addition and 49 deletions.
28 changes: 0 additions & 28 deletions core/cmake/bareos-symlink-default-db-backend.cmake

This file was deleted.

@@ -1,9 +1,6 @@
lib/libbareossql.so.%%DISTVERSION%%
lib/libbareossql.so.%%LIBVERSION%%
lib/libbareossql.so
lib/libbareoscats.so.%%DISTVERSION%%
lib/libbareoscats.so.%%LIBVERSION%%
lib/libbareoscats.so
@dir(bareos,bareos,755) lib/bareos/scripts/ddl
@dir(bareos,bareos,755) lib/bareos/scripts/ddl/creates
@dir(bareos,bareos,755) lib/bareos/scripts/ddl/drops
Expand Down
Expand Up @@ -14,4 +14,3 @@ lib/bareos/scripts/ddl/updates/postgresql.2004_2171.sql
lib/bareos/scripts/ddl/updates/postgresql.2171_2192.sql
lib/bareos/scripts/ddl/updates/postgresql.2192_2210.sql
lib/bareos/scripts/ddl/updates/postgresql.bee.1017_2004.sql
lib/libbareoscats-postgresql.so
Expand Up @@ -5,7 +5,7 @@ COMMENT= Backup archiving recovery open sourced (database-common)
PLIST= ${PKGDIR}/pkg-plist.database-common
MASTERDIR= ${.CURDIR}/../bareos.com-common

LIB_DEPENDS+= libbareos.so:sysutils/baroes.com-common
LIB_DEPENDS+= libbareos.so:sysutils/bareos.com-common


# optional overrides, used by build system.
Expand Down
Expand Up @@ -7,7 +7,6 @@ MASTERDIR= ${.CURDIR}/../bareos.com-common

LIB_DEPENDS+= libbareos.so:sysutils/bareos.com-common
LIB_DEPENDS+= libbareossql.so:sysutils/bareos.com-database-common
LIB_DEPENDS+= libbareoscats.so:sysutils/bareos.com-database-common

USES+=pgsql

Expand Down
Expand Up @@ -10,7 +10,6 @@ LIB_DEPENDS+= libbareosfind.so:sysutils/bareos.com-common
LIB_DEPENDS+= libbareossd.so:sysutils/bareos.com-common

LIB_DEPENDS+= libbareossql.so:sysutils/bareos.com-database-common
LIB_DEPENDS+= libbareoscats.so:sysutils/bareos.com-database-common

# optional overrides, used by build system.
.-include "overrides.mk"
Expand Down
Expand Up @@ -18,7 +18,6 @@ LIB_DEPENDS+= libbareoslmdb.so:sysutils/bareos.com-common
LIB_DEPENDS+= libbareosfind.so:sysutils/bareos.com-common

LIB_DEPENDS+= libbareossql.so:sysutils/bareos.com-database-common
LIB_DEPENDS+= libbareoscats.so:sysutils/bareos.com-database-common

RUN_DEPENDS+= bareos-dbcheck:sysutils/bareos.com-database-tools

Expand Down
2 changes: 0 additions & 2 deletions core/platforms/packaging/bareos.spec
Expand Up @@ -1436,7 +1436,6 @@ mkdir -p %{?buildroot}/%{_libdir}/bareos/plugins/vmware_plugin
# catalog independent files
%defattr(-, root, root)
%{library_dir}/libbareossql*.so.*
%{library_dir}/libbareoscats*.so.*
%dir %{script_dir}/ddl
%dir %{script_dir}/ddl/creates
%dir %{script_dir}/ddl/drops
Expand All @@ -1454,7 +1453,6 @@ mkdir -p %{?buildroot}/%{_libdir}/bareos/plugins/vmware_plugin
# postgresql catalog files
%defattr(-, root, root)
%{script_dir}/ddl/*/postgresql*.sql
%{backend_dir}/libbareoscats-postgresql.so*

%files database-tools
# dbtools with link to db libs (dbcheck, bscan)
Expand Down
4 changes: 0 additions & 4 deletions core/platforms/win32/winbareos.nsi
Expand Up @@ -704,7 +704,6 @@ SectionIn 2 3
File "testfind.exe"
File "bregex.exe"
File "bwild.exe"
File "libbareoscats.dll"

# install configuration as templates
SetOutPath "$INSTDIR\defaultconfigs\bareos-dir.d"
Expand All @@ -722,7 +721,6 @@ SectionIn 2 3
SetShellVarContext all

SetOutPath "$INSTDIR"
File "libbareoscats-postgresql.dll"

# edit sql ddl files
nsExec::ExecToLog '$PLUGINSDIR\sed.exe -f "$PLUGINSDIR\postgres.sed" -i-template "$PLUGINSDIR\postgresql-grant.sql"'
Expand Down Expand Up @@ -2032,8 +2030,6 @@ ConfDeleteSkip:
Delete "$INSTDIR\libbareosfind.dll"
Delete "$INSTDIR\libbareoslmdb.dll"
Delete "$INSTDIR\libbareossql.dll"
Delete "$INSTDIR\libbareoscats.dll"
Delete "$INSTDIR\libbareoscats-postgresql.dll"

Delete "$INSTDIR\libcrypto-*.dll"
Delete "$INSTDIR\libgcc_s_*-1.dll"
Expand Down
1 change: 0 additions & 1 deletion debian/bareos-database-common.install.in
@@ -1,5 +1,4 @@
@libdir@/libbareossql.so*
@libdir@/libbareoscats.so*
@scriptdir@/create_bareos_database
@scriptdir@/drop_bareos_database
@scriptdir@/drop_bareos_tables
Expand Down
1 change: 0 additions & 1 deletion debian/bareos-database-postgresql.install.in
@@ -1,4 +1,3 @@
@backenddir@/libbareoscats-postgresql.so*
@scriptdir@/ddl/*/postgresql*.sql
/usr/share/dbconfig-common/data/bareos-database-common/install/pgsql
/usr/share/dbconfig-common/data/bareos-database-common/upgrade-dbadmin/pgsql/*
Expand Down
5 changes: 0 additions & 5 deletions debian/rules
Expand Up @@ -99,11 +99,6 @@ else
endif


override_dh_install:
chrpath -d $(CURDIR)/debian/tmp/usr/lib/bareos/backends/libbareoscats-postgresql* || true
dh_install


override_dh_systemd_enable:
ifeq (build-universal-client,$(filter build-universal-client,$(DEB_BUILD_OPTIONS)))
dh_systemd_enable --name bareos-filedaemon
Expand Down

0 comments on commit 2f0e185

Please sign in to comment.