* updated krdc (21.12.1 -> 21.12.2), untested
[t2-trunk.git] / package / network / bacula / bacula.conf
blobedc29f3cf13a94fbc2adaf9b453574e8de9f37df
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/bacula/bacula.conf
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
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"
15         else
16                 prefix="opt/bacula"
17         fi
18         set_confopt
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"
26 # wxwidgets gui
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
37                 pkgprefix -t mysql
38                 var_append extraconfopt " " "--with-mysql=$root/$( pkgprefix mysql )"
39                 [[ $libdir = *lib64 ]] && var_append GCC_WRAPPER_INSERT " " "-L$root/$( pkgprefix mysql )/lib64/mysql"
40         fi
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 )"
46         fi
47 elif [ "$SDECFG_PKG_BACULA_DB" = "sqlite" ]; then
48         # checking for sqlite3 support
49         if pkginstalled sqlite; then
50                 pkgprefix -t sqlite
51                 var_append extraconfopt " " "--with-sqlite3=$root/$( pkgprefix sqlite )"
52         fi
53 elif [ "$SDECFG_PKG_BACULA_DB" = "sqlite2" ]; then
54         # checking for sqlite2 support
55         if pkginstalled sqlite2; then
56                 pkgprefix -t sqlite2
57                 var_append extraconfopt " " "--with-sqlite=$root/$( pkgprefix sqlite2 )"
58         fi
59 else
60         var_append extraconfopt " " "--enable-client-only"
61         echo "Bacula: no database selected, build bacula client only"