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.

82 lines
2.9 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 - 2014 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 atstage cross; then
  15. # currently this config cache variables have only be checked
  16. # against a native glibc build
  17. # TODO: check other libc implementations like musl
  18. var_append configcache ' ' "i_cv_epoll_works=yes"
  19. var_append configcache ' ' "i_cv_inotify_works=yes"
  20. var_append configcache ' ' "i_cv_posix_fallocate_works=yes"
  21. var_append configcache ' ' "i_cv_signed_size_t=no"
  22. var_append configcache ' ' "i_cv_gmtime_max_time_t=40"
  23. var_append configcache ' ' "i_cv_signed_time_t=yes"
  24. var_append configcache ' ' "i_cv_mmap_plays_with_write=yes"
  25. var_append configcache ' ' "i_cv_fd_passing=yes"
  26. var_append configcache ' ' "i_cv_c99_vsnprintf=yes"
  27. var_append configcache ' ' "lib_cv_va_copy=yes"
  28. var_append configcache ' ' "lib_cv___va_copy=yes"
  29. var_append configcache ' ' "lib_cv_va_val_copy=no"
  30. fi
  31. # install development headers by default
  32. var_append confopt ' ' "--enable-header-install"
  33. # SQL plugin support
  34. var_append extraconfopt ' ' "--with-sql=plugin"
  35. # package/option mappings for auto-configuration
  36. pkg_dovecot_options="openldap:ldap=plugin postgresql:pgsql mysql sqlite \
  37. clucene:lucene"
  38. # automatic feature selection according to the package/option mappings
  39. pkg_dovecot_autoconfig() {
  40. local args="$@"
  41. for x in $args; do
  42. local package="${x%:*}"
  43. local option="${x#*:}"
  44. [ ! -z "$option" ] || option="$package"
  45. if pkginstalled -f "$package"; then
  46. pkgprefix -t "$package"
  47. var_append extraconfopt ' ' "--with-$option"
  48. case $package in
  49. *sql*) enable_sql=true ;;
  50. esac
  51. fi
  52. done
  53. # generic SQL support/build drivers as plugins
  54. if $enable_sql; then
  55. var_append extraconfopt ' ' "--with-sql=plugin"
  56. fi
  57. }
  58. pkg_dovecot_autoconfig "$pkg_dovecot_options"
  59. # development version support
  60. pkg_dovecot_devel_version() {
  61. # development version does not include the docs
  62. if [ ! -f doc/wiki/Authentication.txt ]; then
  63. var_append extraconfopt ' ' "--without-docs"
  64. # fool autogen.sh to not fetch exported wiki pages
  65. touch doc/wiki/Authentication.txt
  66. fi
  67. # development version does not include UnicodeData.txt
  68. if [ ! -f src/lib/UnicodeData.txt ]; then
  69. echo_warning "Copying local copy of 'UnicodeData.txt' into 'src/lib'"
  70. cp -vp $( match_source_file -p ".*unicodedata.*\.txt" dovecot ) src/lib/UnicodeData.txt
  71. fi
  72. }
  73. hook_add preconf 5 'pkg_dovecot_devel_version'
  74. hook_add preconf 9 'autoreconf -vfi -I .'