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.

65 lines
2.2 KiB

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