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.

46 lines
1.3 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 - 2009 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. # use '/opt/dovecot' as default prefix
  15. if [ $prefix_auto = 1 ] ; then
  16. prefix="opt/dovecot"
  17. set_confopt
  18. fi
  19. # install development headers by default
  20. var_append confopt ' ' "--enable-header-install"
  21. # LDAP support
  22. if pkginstalled openldap ; then
  23. pkgprefix -t openldap
  24. var_append extraconfopt ' ' "--with-ldap"
  25. fi
  26. dovecotdir=
  27. dovecotsievedir=
  28. manage_sieve() {
  29. if [ -z "$dovecotdir" ] ; then
  30. dovecotdir="$PWD"
  31. var_append patchfiles ' ' "$( match_source_file -p diff )"
  32. elif [ -z "$dovecotsievedir" ] ; then
  33. dovecotsievedir="$PWD"
  34. var_append confopt ' ' "--with-dovecot=$dovecotdir"
  35. else
  36. var_append confopt ' ' "--with-dovecot=$dovecotdir"
  37. var_append confopt ' ' "--with-dovecot-sieve=$dovecotsievedir"
  38. fi
  39. }
  40. hook_add prepatch 5 'manage_sieve'