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.

50 lines
1.7 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 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. prefix="opt/openldap"
  19. set_confopt
  20. # we want to keep a good record of openldap's sysconfdir
  21. var_remove_regex confopt ' ' "--sysconfdir=.*"
  22. var_append extraconfopt ' ' "--sysconfdir=${sysconfdir%/openldap}"
  23. fi
  24. pkginstalled tcp_wrappers && var_append extraconfopt ' ' '--enable-wrappers'
  25. var_append extraconfopt ' ' "--enable-shared"
  26. var_append extraconfopt ' ' "--libexec=$sbindir"
  27. # also desired backends (meta needs ldap)
  28. var_append extraconfopt ' ' "--enable-meta --enable-ldap"
  29. if [ "$SDECFG_PKG_OPENLDAP_CLIENTONLY" = "1" ]; then
  30. var_append extraconfopt ' ' "--without-cyrus-sasl --disable-slapd \
  31. --disable-slurpd"
  32. fi
  33. hook_add premake 3 'eval $MAKE depend'
  34. pkgprefix -t bdb
  35. var_append CPP_WRAPPER_APPEND ' ' "-I$( pkgprefix includedir bdb )"
  36. var_append GCC_WRAPPER_APPEND ' ' "-DLDAP_DEBUG"
  37. # work around - needs to be fixed, treading support hangs ... -ReneR
  38. [ $arch = powerpc ] && var_append extraconfopt ' ' '--disable-bdb'