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.6 KiB

  1. #!/bin/sh
  2. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. #
  5. # Filename: package/.../heimdal/heimdal.conf
  6. # Copyright (C) 2007 The OpenSDE Project
  7. # Copyright (C) 2004 - 2006 The T2 SDE Project
  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. if [ $prefix_auto=1 ]; then
  17. prefix=opt/heimdal
  18. set_confopt
  19. fi
  20. localstatedir=/var/heimdal
  21. var_insert CC_WRAPPER_INSERT " " "-D_REENTRANT"
  22. if atstage native; then
  23. if pkginstalled openssl; then
  24. pkgprefix -t openssl
  25. var_append extraconfopt ' ' "--with-openssl=$( pkgprefix sysconfdir openssl )"
  26. fi
  27. if [ "$SDECFG_PKG_HEIMDAL_LDAP" = "1" ]; then
  28. pkgprefix -t openldap
  29. var_append extraconfopt ' ' "--with-openldap=/$( pkgprefix openldap )"
  30. [ "$SDECFG_PKG_OPENLDAP_CLIENTONLY" = "0" ] && \
  31. hook_add postmake 5 "cp -v `match_source_file -p schema` \
  32. $(pkgprefix sysconfdir openldap)/schema/"
  33. fi
  34. fi
  35. var_append extraconfopt ' ' "--enable-shared"
  36. var_append extraconfopt ' ' "--libexecdir=$sbindir"
  37. pkg_heimdal_preconf() {
  38. sed -i -e "s/#undef HAVE_RES_NSEARCH//" lib/roken/resolve.c
  39. }
  40. hook_add preconf 5 "pkg_heimdal_preconf"
  41. # install sample krb5.conf
  42. hook_add postmake 6 "cp -v krb5.conf $sysconfdir/krb5.conf-dist"