* added graalvm (22.0.0.1) - A high-performance JDK distribution
[t2.git] / package / security / heimdal / heimdal.conf
blob085900da5c4f08d50bdb4ed98cdf07c0a6eaaafe
1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
3
4 # T2 SDE: package/.../heimdal/heimdal.conf
5 # Copyright (C) 2004 - 2020 The T2 SDE Project
6
7 # More information can be found in the files COPYING and README.
8
9 # This program is free software; you can redistribute it and/or modify
10 # it under the terms of the GNU General Public License as published by
11 # the Free Software Foundation; version 2 of the License. A copy of the
12 # GNU General Public License can be found in the file COPYING.
13 # --- T2-COPYRIGHT-NOTE-END ---
15 if [ $prefix_auto=1 ]; then
16         prefix=opt/heimdal
17         set_confopt
19 localstatedir=/var/heimdal
21 var_insert CC_WRAPPER_INSERT " " "-D_REENTRANT"
23 if [ $stagelevel -ge 5 ]; then
24         if pkginstalled openssl; then
25                 pkgprefix -t openssl
26                 var_append extraconfopt ' ' "--with-openssl=$( pkgprefix sysconfdir openssl )"
27         fi
29         if [ "$SDECFG_PKG_HEIMDAL_LDAP" = "1" ]; then
30                 pkgprefix -t openldap
31                 var_append extraconfopt ' ' "--with-openldap=/$( pkgprefix openldap )"
32                 [ "$SDECFG_PKG_OPENLDAP_CLIENTONLY" = "0" ] &&
33                         hook_add postmake 5 "cp -v `match_source_file -p schema` \
34                                 $(pkgprefix sysconfdir openldap)/schema/"
35         fi
38 var_append extraconfopt ' ' "--enable-shared"
39 var_append extraconfopt ' ' "--libexecdir=$sbindir"
41 pkg_heimdal_preconf() {
42         sed -i -e "s/#undef HAVE_RES_NSEARCH//" lib/roken/resolve.c
45 hook_add preconf 5 "pkg_heimdal_preconf"
47 # install sample krb5.conf
48 hook_add postmake 6 "cp -v krb5.conf $sysconfdir/krb5.conf-dist"