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.

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