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.

53 lines
1.8 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../openldap/openldap.conf
  5. # Copyright (C) 2007 - 2011 The OpenSDE Project
  6. # Copyright (C) 2004 - 2006 The T2 SDE Project
  7. # Copyright (C) 1998 - 2003 Clifford Wolf
  8. #
  9. # More information can be found in the files COPYING and README.
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; version 2 of the License. A copy of the
  14. # GNU General Public License can be found in the file COPYING.
  15. # --- SDE-COPYRIGHT-NOTE-END ---
  16. createdocs=0
  17. if [ "$prefix_auto" = 1 ]; then
  18. # we want to keep a good record of openldap's sysconfdir
  19. var_remove_regex confopt ' ' "--sysconfdir=.*"
  20. var_append extraconfopt ' ' "--sysconfdir=${sysconfdir%/openldap}"
  21. fi
  22. pkginstalled tcp_wrappers && var_append extraconfopt ' ' '--enable-wrappers'
  23. var_append extraconfopt ' ' "--enable-shared"
  24. var_append extraconfopt ' ' "--libexec=$sbindir"
  25. # also desired backends (meta needs ldap)
  26. var_append extraconfopt ' ' "--enable-meta --enable-ldap"
  27. if [ "$SDECFG_PKG_OPENLDAP_CLIENTONLY" = "1" ]; then
  28. var_append extraconfopt ' ' "--without-cyrus-sasl --disable-slapd \
  29. --disable-slurpd"
  30. else
  31. if pkginstalled cyrus-sasl2; then
  32. var_append extraconfopt ' ' '--enable-spasswd'
  33. fi
  34. fi
  35. hook_add premake 3 'eval $MAKE depend'
  36. pkgprefix -t bdb
  37. var_append CPP_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir bdb )"
  38. var_append GCC_WRAPPER_APPEND ' ' "-DLDAP_DEBUG"
  39. # work around - needs to be fixed, treading support hangs ... -ReneR
  40. [ $arch = powerpc ] && var_append extraconfopt ' ' '--disable-bdb'
  41. var_remove_regex confopt ' ' "\-\-docdir\=.*"