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.

64 lines
2.1 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../dovecot/dovecot.conf
  5. # Copyright (C) 2007 - 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. # install development headers by default
  15. var_append confopt ' ' "--enable-header-install"
  16. # SQL plugin support
  17. var_append extraconfopt ' ' "--with-sql=plugin"
  18. # package/option mappings for auto-configuration
  19. pkg_dovecot_options="openldap:ldap=plugin postgresql:pgsql mysql sqlite \
  20. clucene:lucene"
  21. # automatic feature selection according to the package/option mappings
  22. pkg_dovecot_autoconfig() {
  23. local args="$@"
  24. for x in $args; do
  25. local package="${x%:*}"
  26. local option="${x#*:}"
  27. [ ! -z "$option" ] || option="$package"
  28. if pkginstalled -f "$package"; then
  29. pkgprefix -t "$package"
  30. var_append extraconfopt ' ' "--with-$option"
  31. case $package in
  32. *sql*) enable_sql=true ;;
  33. esac
  34. fi
  35. done
  36. # generic SQL support/build drivers as plugins
  37. if $enable_sql; then
  38. var_append extraconfopt ' ' "--with-sql=plugin"
  39. fi
  40. }
  41. pkg_dovecot_autoconfig "$pkg_dovecot_options"
  42. # development version support
  43. pkg_dovecot_devel_version() {
  44. # development version does not include the docs
  45. if [ ! -f doc/wiki/Authentication.txt ]; then
  46. var_append extraconfopt ' ' "--without-docs"
  47. # fool autogen.sh to not fetch exported wiki pages
  48. touch doc/wiki/Authentication.txt
  49. fi
  50. # development version does not include UnicodeData.txt
  51. if [ ! -f src/lib/UnicodeData.txt ]; then
  52. echo_warning "Copying local copy of 'UnicodeData.txt' into 'src/lib'"
  53. cp -vp $( match_source_file -p ".*unicodedata.*\.txt" dovecot ) src/lib/UnicodeData.txt
  54. fi
  55. }
  56. hook_add preconf 5 'pkg_dovecot_devel_version'
  57. hook_add preconf 9 'autoreconf -vfi -I .'