# --- T2-COPYRIGHT-NOTE-BEGIN --- # T2 SDE: package/*/heimdal/heimdal.conf # Copyright (C) 2004 - 2023 The T2 SDE Project # # This Copyright note is generated by scripts/Create-CopyPatch, # more information can be found in the files COPYING and README. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License version 2. # --- T2-COPYRIGHT-NOTE-END --- if [ $prefix_auto=1 ]; then prefix=opt/heimdal set_confopt fi localstatedir=/var/heimdal var_insert CC_WRAPPER_INSERT " " "-D_REENTRANT" if [ $stagelevel -ge 5 ]; then if pkginstalled openssl; then pkgprefix -t openssl var_append extraconfopt ' ' "--with-openssl=$(pkgprefix sysconfdir openssl)" fi if [ "$SDECFG_PKG_HEIMDAL_LDAP" = "1" ]; then pkgprefix -t openldap var_append extraconfopt ' ' "--with-openldap=/$(pkgprefix openldap)" [ "$SDECFG_PKG_OPENLDAP_CLIENTONLY" = "0" ] && hook_add postmake 5 "cp -v `match_source_file -p schema` \ $(pkgprefix sysconfdir openldap)/schema/" fi fi var_append extraconfopt ' ' "--enable-shared" var_append extraconfopt ' ' "--libexecdir=$sbindir" pkg_heimdal_preconf() { sed -i -e "s/#undef HAVE_RES_NSEARCH//" lib/roken/resolve.c } hook_add preconf 5 "pkg_heimdal_preconf" # install sample krb5.conf hook_add postmake 6 "cp -v krb5.conf $sysconfdir/krb5.conf-dist"