1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/bacula/bacula.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 if [ $prefix_auto = 1 ]; then
13 if [ ! -z $SDECFG_PKG_BACULA_PREFIX ]; then
14 prefix="$SDECFG_PKG_BACULA_PREFIX"
21 # smartalloc is highly recommended
22 var_append confopt " " "--enable-smartalloc"
23 var_append confopt " " "--enable-conio"
24 var_append confopt " " "--with-working-dir=$root/$prefix/working"
27 pkginstalled wxwidgets && var_append confopt " " "--enable-wx-console --enable-tray-monitor"
29 # ssl encryption support
30 if pkginstalled openssl; then
31 var_append extraconfopt " " "--with-openssl"
34 if [ "$SDECFG_PKG_BACULA_DB" = "mysql" ]; then
35 # checking for mysql support
36 if pkginstalled mysql; then
38 var_append extraconfopt " " "--with-mysql=$root/$( pkgprefix mysql )"
39 [[ $libdir = *lib64 ]] && var_append GCC_WRAPPER_INSERT " " "-L$root/$( pkgprefix mysql )/lib64/mysql"
41 elif [ "$SDECFG_PKG_BACULA_DB" = "postgresql" ]; then
42 # checking for postgresql support
43 if pkginstalled postgresql; then
44 pkgprefix -t postgresql
45 var_append extraconfopt " " "--with-postgresql=$root/$( pkgprefix postgresql )"
47 elif [ "$SDECFG_PKG_BACULA_DB" = "sqlite" ]; then
48 # checking for sqlite3 support
49 if pkginstalled sqlite; then
51 var_append extraconfopt " " "--with-sqlite3=$root/$( pkgprefix sqlite )"
53 elif [ "$SDECFG_PKG_BACULA_DB" = "sqlite2" ]; then
54 # checking for sqlite2 support
55 if pkginstalled sqlite2; then
57 var_append extraconfopt " " "--with-sqlite=$root/$( pkgprefix sqlite2 )"
60 var_append extraconfopt " " "--enable-client-only"
61 echo "Bacula: no database selected, build bacula client only"