1 # --- T2-COPYRIGHT-NOTE-BEGIN ---
2 # This copyright note is auto-generated by scripts/Create-CopyPatch.
4 # T2 SDE: package/.../heimdal/heimdal.conf
5 # Copyright (C) 2004 - 2020 The T2 SDE Project
7 # More information can be found in the files COPYING and README.
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
19 localstatedir=/var/heimdal
21 var_insert CC_WRAPPER_INSERT " " "-D_REENTRANT"
23 if [ $stagelevel -ge 5 ]; then
24 if pkginstalled openssl; then
26 var_append extraconfopt ' ' "--with-openssl=$( pkgprefix sysconfdir openssl )"
29 if [ "$SDECFG_PKG_HEIMDAL_LDAP" = "1" ]; then
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/"
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"