- # 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'
+ # 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'
+
+ # bionic doesn't have getpass
+ cp "$TERMUX_PKG_BUILDER_DIR/netbsd_getpass.c" "$TERMUX_PKG_SRCDIR/clients/kpasswd/"
+
+ CFLAGS="$CFLAGS -D_PASSWORD_LEN=PASS_MAX"
+ LDFLAGS="$LDFLAGS -landroid-glob -llog"
+}
+
+termux_step_post_make_install () {
+ # Enable logging to STDERR by default
+ echo -e "\tdefault = STDERR" >> $TERMUX_PKG_SRCDIR/config-files/krb5.conf
+
+ # 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