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.

81 lines
2.7 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/parse-config
  6. # Copyright (C) 2006 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 pkginstalled -f heimdal; then
  17. pkgprefix -t heimdal
  18. KRB5PREFIX=$root/$( pkgprefix heimdal )
  19. KRB5INC=$root$( pkgprefix includedir heimdal )
  20. KRB5LIB=$root$( pkgprefix libdir heimdal )
  21. # Set up an environment variable to point to the package
  22. # config file.
  23. KRB5_CONFIG=$root$( pkgprefix bindir heimdal )/krb5-config
  24. export KRB5_CONFIG
  25. # config tweaks
  26. case "$pkg" in
  27. postgresql)
  28. # packages 'sensitive' to the massive enabling
  29. var_append extraconfopt " " "--with-krb5" ;;
  30. *) # massive enabling of heimdal support
  31. # prefix-less
  32. var_append extraconfopt " " "--with-kerberos" #This usually supports 4 only
  33. #var_append extraconfopt " " "--with-krb4" #4 Only and not recommended
  34. var_append extraconfopt " " "--with-gss" #From mutt
  35. # prefix-based
  36. var_append extraconfopt " " "--with-krb5${KRB5PREFIX:+=$KRB5PREFIX}" #From nfs-utils
  37. var_append extraconfopt " " "--with-kerberos5${KRB5PREFIX:+=$KRB5PREFIX}" #From openssh and fetchmail
  38. var_append extraconfopt " " "--enable-gssapi${KRB5PREFIX:+=$KRB5PREFIX}" #From cyrus-sasl2
  39. var_append extraconfopt " " "--with-krb5-includes${KRB5INC:+=$KRB5INC}" #From evolution-data-server
  40. var_append extraconfopt " " "--with-krb5-libs${KRB5LIB:+=$KRB5LIB}" #From evolution-data-server
  41. var_append extraconfopt " " "--with-gssapi-includes${KRB5INC:+=$KRB5INC}" #From curl
  42. var_append extraconfopt " " "--with-gssapi-libs${KRB5LIB:+=$KRB5LIB}" #From curl
  43. # and well known mandatory dependencies
  44. var_append extraconfopt " " "--with-ssl" #from ethereal
  45. ;;
  46. esac
  47. # make tweaks
  48. case "$pkg" in
  49. emacs)
  50. var_append GCC_WRAPPER_APPEND " " "-I$KRB5INC"
  51. var_append GCC_WRAPPER_APPEND " " "-L$KRB5LIB"
  52. ;;
  53. cvs|curl|openssh|postgresql)
  54. KRB5LIBS="`krb5-config --libs gssapi` -lhdb -lkadm5clnt -lkadm5srv"
  55. KRB5CFLAGS=`krb5-config --cflags gssapi`
  56. var_append CPP_wRAPPER_APPEND ' ' "$KRB5CFLAGS"
  57. for x in CXX GCC; do
  58. var_append ${x}_WRAPPER_APPEND ' ' "$KRB5CFLAGS"
  59. var_append ${x}_WRAPPER_APPEND ' ' "$KRB5LIBS"
  60. done
  61. unset KRB5LIBS KRB5CFLAGS
  62. ;;
  63. esac
  64. # and clean the enviroment
  65. unset KRB5PREFIX KRB5INC KRB5LIB
  66. fi