* updated tzdata (2024a -> 2024b)
[t2sde.git] / package / security / heimdal / heimdal.conf
blob4e06e7cb28c2b8b0ab6910d522f2d863081a1d77
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # T2 SDE: package/*/heimdal/heimdal.conf
3 # Copyright (C) 2004 - 2023 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 [ $prefix_auto=1 ]; then
13         prefix=opt/heimdal
14         set_confopt
16 localstatedir=/var/heimdal
18 var_insert CC_WRAPPER_INSERT " " "-D_REENTRANT"
20 if [ $stagelevel -ge 5 ]; then
21         if pkginstalled openssl; then
22                 pkgprefix -t openssl
23                 var_append extraconfopt ' ' "--with-openssl=$(pkgprefix sysconfdir openssl)"
24         fi
26         if [ "$SDECFG_PKG_HEIMDAL_LDAP" = "1" ]; then
27                 pkgprefix -t openldap
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/"
32         fi
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"