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.

60 lines
2.2 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../dspam/dspam.conf
  5. # Copyright (C) 2013 The OpenSDE 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. # --- SDE-COPYRIGHT-NOTE-END ---
  14. if [ $prefix_auto = 1 ]; then
  15. # use a dedicated sysconfdir
  16. sysconfdir="$sysconfdir/$pkg"
  17. fi
  18. storage="hash_drv"
  19. # enable what we need without dependency
  20. var_append confopt ' ' "--enable-daemon"
  21. var_append confopt ' ' "--enable-clamav"
  22. var_append confopt ' ' "--enable-debug"
  23. var_append confopt ' ' "--enable-bnr-debug"
  24. var_append confopt ' ' "--enable-verbose-debug"
  25. var_append confopt ' ' "--enable-external-lookup"
  26. var_append confopt ' ' "--enable-static=no"
  27. var_append confopt ' ' "--enable-split-configuration"
  28. var_append confopt ' ' "--enable-domain-scale"
  29. var_append confopt ' ' "--enable-long-usernames"
  30. var_append confopt ' ' "--with-dspam-home=$localstatedir/dspam"
  31. var_append confopt ' ' "--with-dspam-home-owner=dspam"
  32. var_append confopt ' ' "--with-dspam-home-group=dspam"
  33. var_append confopt ' ' "--with-dspam-owner=dspam"
  34. var_append confopt ' ' "--with-dspam-group=dspam"
  35. for x in postgresql:pgsql mysql:mysql; do
  36. if pkginstalled -f "${x%:*}"; then
  37. pkgprefix -t "${x%:*}"
  38. var_append confopt ' ' "--with-${x#*:}-includes=$root$( pkgprefix includedir ${x%:*} )"
  39. var_append confopt ' ' "--with-${x#*:}-libraries=$root$( pkgprefix libdir ${x%:*} )"
  40. storage="${storage},${x#*:}_drv"
  41. var_append confopt ' ' "--enable-preferences-extension"
  42. var_append confopt ' ' "--enable-virtual-users"
  43. fi
  44. done
  45. if pkginstalled -f sqlite; then
  46. pkgprefix -t sqlite
  47. var_append confopt ' ' "--with-sqlite-includes=$root$( pkgprefix includedir sqlite )"
  48. var_append confopt ' ' "--with-sqlite-libraries=$root$( pkgprefix libdir sqlite )"
  49. storage="${storage},sqlite3_drv"
  50. fi
  51. var_append confopt ' ' "--with-storage-driver=${storage}"