2017-03-07 00:49:37 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://web.mit.edu/kerberos
|
|
|
|
TERMUX_PKG_DESCRIPTION="The Kerberos network authentication system"
|
2019-01-21 15:00:12 +01:00
|
|
|
TERMUX_PKG_LICENSE="MIT"
|
2020-03-24 15:27:02 +01:00
|
|
|
TERMUX_PKG_VERSION=1.18
|
2018-07-02 12:02:19 +02:00
|
|
|
TERMUX_PKG_SRCURL=https://fossies.org/linux/misc/krb5-$TERMUX_PKG_VERSION.tar.gz
|
2020-03-24 15:27:02 +01:00
|
|
|
TERMUX_PKG_SHA256=73913934d711dcf9d5f5605803578edb44b9a11786df3c1b2711f4e1752f2c88
|
2019-03-04 16:01:58 +01:00
|
|
|
TERMUX_PKG_DEPENDS="libandroid-support, libandroid-glob, readline, openssl, libdb"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_BREAKS="krb5-dev"
|
|
|
|
TERMUX_PKG_REPLACES="krb5-dev"
|
2017-04-03 17:35:03 +02:00
|
|
|
TERMUX_PKG_CONFFILES="etc/krb5.conf var/krb5kdc/kdc.conf"
|
2019-07-20 10:42:33 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
--disable-static
|
|
|
|
--with-readline
|
2017-04-02 17:06:58 +02:00
|
|
|
--without-system-verto
|
|
|
|
--with-netlib=-lc
|
|
|
|
--enable-dns-for-realm
|
|
|
|
--sbindir=$TERMUX_PREFIX/bin
|
|
|
|
--with-size-optimizations
|
|
|
|
--with-system-db
|
2017-04-03 17:35:03 +02:00
|
|
|
DEFCCNAME=$TERMUX_PREFIX/tmp/krb5cc_%{uid}
|
|
|
|
DEFKTNAME=$TERMUX_PREFIX/etc/krb5.keytab
|
|
|
|
DEFCKTNAME=$TERMUX_PREFIX/var/krb5/user/%{euid}/client.keytab
|
2017-04-02 17:06:58 +02:00
|
|
|
"
|
2017-02-08 00:13:27 +01:00
|
|
|
|
2017-09-20 00:48:04 +02:00
|
|
|
termux_step_post_extract_package() {
|
|
|
|
TERMUX_PKG_SRCDIR+="/src"
|
|
|
|
}
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_pre_configure() {
|
2017-09-20 00:48:04 +02:00
|
|
|
# cannot test these when cross compiling
|
|
|
|
export krb5_cv_attr_constructor_destructor='yes,yes'
|
|
|
|
export ac_cv_func_regcomp='yes'
|
|
|
|
export ac_cv_printf_positional='yes'
|
2017-02-08 00:13:27 +01:00
|
|
|
|
2017-09-20 00:48:04 +02:00
|
|
|
# bionic doesn't have getpass
|
|
|
|
cp "$TERMUX_PKG_BUILDER_DIR/netbsd_getpass.c" "$TERMUX_PKG_SRCDIR/clients/kpasswd/"
|
2017-02-08 00:13:27 +01:00
|
|
|
|
2017-09-20 00:48:04 +02:00
|
|
|
CFLAGS="$CFLAGS -D_PASSWORD_LEN=PASS_MAX"
|
2019-12-30 01:05:41 +01:00
|
|
|
export LIBS="-landroid-glob"
|
2017-02-08 00:13:27 +01:00
|
|
|
}
|
2017-04-02 17:06:58 +02:00
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_post_make_install() {
|
2017-04-03 17:35:03 +02:00
|
|
|
# Enable logging to STDERR by default
|
|
|
|
echo -e "\tdefault = STDERR" >> $TERMUX_PKG_SRCDIR/config-files/krb5.conf
|
|
|
|
|
2017-04-02 17:06:58 +02:00
|
|
|
# Sample KDC config file
|
|
|
|
install -dm 700 $TERMUX_PREFIX/var/krb5kdc
|
|
|
|
install -pm 600 $TERMUX_PKG_SRCDIR/config-files/kdc.conf $TERMUX_PREFIX/var/krb5kdc/kdc.conf
|
|
|
|
|
|
|
|
# Default configuration file
|
|
|
|
install -pm 600 $TERMUX_PKG_SRCDIR/config-files/krb5.conf $TERMUX_PREFIX/etc/krb5.conf
|
|
|
|
|
|
|
|
install -dm 700 $TERMUX_PREFIX/share/aclocal
|
|
|
|
install -m 600 $TERMUX_PKG_SRCDIR/util/ac_check_krb5.m4 $TERMUX_PREFIX/share/aclocal
|
|
|
|
}
|