1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/heimdal/heimdal.conf
3 # Copyright (C) 2004 - 2023 The T2 SDE Project
5 # This Copyright note is generated by scripts/Create-CopyPatch,
6 # more information can be found in the files COPYING and README.
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 [ $prefix_auto=1 ]; then
16 localstatedir=/var/heimdal
18 var_insert CC_WRAPPER_INSERT " " "-D_REENTRANT"
20 if [ $stagelevel -ge 5 ]; then
21 if pkginstalled openssl; then
23 var_append extraconfopt ' ' "--with-openssl=$(pkgprefix sysconfdir openssl)"
26 if [ "$SDECFG_PKG_HEIMDAL_LDAP" = "1" ]; then
28 var_append extraconfopt ' ' "--with-openldap=/$(pkgprefix openldap)"
29 [ "$SDECFG_PKG_OPENLDAP_CLIENTONLY" = "0" ] &&
30 hook_add postmake 5 "cp -v `match_source_file -p schema` \
31 $(pkgprefix sysconfdir openldap)/schema/"
35 var_append extraconfopt ' ' "--enable-shared"
36 var_append extraconfopt ' ' "--libexecdir=$sbindir"
38 pkg_heimdal_preconf() {
39 sed -i -e "s/#undef HAVE_RES_NSEARCH//" lib/roken/resolve.c
42 hook_add preconf 5 "pkg_heimdal_preconf"
44 # install sample krb5.conf
45 hook_add postmake 6 "cp -v krb5.conf $sysconfdir/krb5.conf-dist"