You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

98 lines
2.9 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../heimdal/heimdal.conf
# Copyright (C) 2007 - 2014 The OpenSDE Project
# Copyright (C) 2004 - 2006 The T2 SDE Project
#
# 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 as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
if [ $prefix_auto = 1 ]; then
prefix=opt/heimdal
set_confopt
fi
localstatedir=/var/heimdal
# we patch cf/pthreads.m4
autogen=1
# build static tools we need for cross-compiling at stage 1
# tools needed: asn1_compile
if atstage toolchain; then
heimdal_toolchain_custmain() {
./autogen.sh
eval $configscript $confopt $extraconfopt
eval $MAKE -C include krb5-types.h
eval $MAKE -C lib/roken
eval $MAKE -C lib/vers
eval $MAKE -C lib/com_err
eval $MAKE -C lib/asn1
# also build slc
eval $MAKE -C lib/libedit
eval $MAKE -C lib/sl
# install asn1_compile
eval $MAKE -C lib/asn1 asn1_compile $makeopt install
# install slc
eval $MAKE -C lib/sl slc $makeopt install
}
custmain='heimdal_toolchain_custmain'
prefix=
set_confopt
var_append extraconfopt ' ' "--disable-shared"
fi
if atstage native; then
if pkginstalled -f openssl; then
pkgprefix -t openssl
var_append extraconfopt ' ' "--with-openssl=$( pkgprefix sysconfdir openssl )"
# do not install hcrypto related manpages
var_append patchfiles ' ' "$confdir/*no-hcrypto-manpages.diff"
fi
if [ "$SDECFG_PKG_HEIMDAL_LDAP" = "1" ] && pkginstalled -f openldap; 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
# use system sqlite if available
if pkginstalled -f sqlite; then
pkgprefix -t sqlite
var_append extraconfopt ' ' "--with-sqlite3=$( pkgprefix -r sqlite )"
fi
# use system readline if available which also avoids the installation of the
# included libeditline
if pkginstalled -f readline; then
pkgprefix -t readline
var_append extraconfopt ' ' "--with-readline=$( pkgprefix -r readline )"
fi
if ! atstage toolchain; then
var_append extraconfopt ' ' "--enable-shared"
# install sample krb5.conf
hook_add postmake 6 "cp -v krb5.conf $root$sysconfdir/krb5.conf-dist"
fi
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"
# do not install catpages
var_append makeinstopt ' ' "INSTALL_CATPAGES=no"