OpenSDE Packages Database (without history before r20070)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

67 lines
2.2 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../bacula/bacula.conf
  5. # Copyright (C) 2004 - 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This program is free software; you can redistribute it and/or modify
  10. # it under the terms of the GNU General Public License as published by
  11. # the Free Software Foundation; version 2 of the License. A copy of the
  12. # GNU General Public License can be found in the file COPYING.
  13. # --- T2-COPYRIGHT-NOTE-END ---
  14. if [ $prefix_auto = 1 ] ; then
  15. if [ ! -z $SDECFG_PKG_BACULA_PREFIX ] ; then
  16. prefix="$SDECFG_PKG_BACULA_PREFIX"
  17. else
  18. prefix="opt/bacula"
  19. fi
  20. set_confopt
  21. fi
  22. # smartalloc is highly recommended
  23. var_append confopt " " "--enable-smartalloc"
  24. var_append confopt " " "--enable-conio"
  25. var_append confopt " " "--with-working-dir=$root/$prefix/working"
  26. # wxwidgets gui
  27. pkginstalled wxwidgets && var_append confopt " " "--enable-wx-console --enable-tray-monitor"
  28. # gnome gui
  29. pkginstalled gnome-common && var_append confopt " " "--enable-gnome"
  30. # ssl encryption support
  31. if pkginstalled openssl; then
  32. var_append extraconfopt " " "--with-openssl"
  33. fi
  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. fi
  40. elif [ "$SDECFG_PKG_BACULA_DB" = "postgresql" ] ; then
  41. # checking for postgresql support
  42. if pkginstalled postgresql ; then
  43. pkgprefix -t postgresql
  44. var_append extraconfopt " " "--with-postgresql=$root/$( pkgprefix postgresql )"
  45. fi
  46. elif [ "$SDECFG_PKG_BACULA_DB" = "sqlite" ] ; then
  47. # checking for sqlite3 support
  48. if pkginstalled sqlite ; then
  49. pkgprefix -t sqlite
  50. var_append extraconfopt " " "--with-sqlite3=$root/$( pkgprefix sqlite )"
  51. fi
  52. elif [ "$SDECFG_PKG_BACULA_DB" = "sqlite2" ] ; then
  53. # checking for sqlite2 support
  54. if pkginstalled sqlite2 ; then
  55. pkgprefix -t sqlite2
  56. var_append extraconfopt " " "--with-sqlite=$root/$( pkgprefix sqlite2 )"
  57. fi
  58. else
  59. var_append extraconfopt " " "--enable-client-only"
  60. echo "Bacula: no database selected, build bacula client only"
  61. fi