Dash:
[t2.git] / package / security / heimdal / parse-config
blob666bb4ffff86d737a0ecaf7e0ec694767fb34540
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/heimdal/parse-config
3 # Copyright (C) 2004 - 2021 The T2 SDE Project
4
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
7
8 # This program is free software; you can redistribute it and/or modify
9 # it under the terms of the GNU General Public License version 2.
10 # --- T2-COPYRIGHT-NOTE-END ---
12 if pkginstalled heimdal && [ $stagelevel -ge 5 ]; then
13         [ -x $( pkgprefix bindir heimdal )/krb5-config ] && KRB5PREFIX="=`krb5-config --prefix`"
15         # Catch alls for kerberos configs
16         var_append extraconfopt " " "--with-kerberos"   #This usually supports 4 only
17         #var_append extraconfopt " " "--with-krb4"      #4 Only and not recommended
18         var_append extraconfopt " " "--with-krb5$KRB5PREFIX"    # From nfs-utils
19         var_append extraconfopt " " "--with-krb5-includes=$( pkgprefix includedir heimdal )" # from evolution-data-server
20         var_append extraconfopt " " "--with-krb5-libs=$( pkgprefix libdir heimdal )" # from evolution-data-server
21         var_append extraconfopt " " "--with-kerberos5$KRB5PREFIX"       #From openssh and fetchmail
22         var_append extraconfopt " " "--with-gss"        #From mutt
23         var_append extraconfopt " " "--with-gssapi$KRB5PREFIX"          #From cvs
24         var_append extraconfopt " " "--enable-gssapi$KRB5PREFIX"        #From cyrus-sasl2
26         if [ "$KRB5PREFIX" ]; then
27                 var_append extraconfopt " " "--with-gssapi-includes$KRB5PREFIX/include" # From curl
28                 var_append extraconfopt " " "--with-gssapi-libs$KRB5PREFIX/lib"         # From curl
29         fi