Commit | Line | Data |
---|---|---|
6254c89c VB |
1 | TERMUX_PKG_HOMEPAGE=https://web.mit.edu/kerberos |
2 | TERMUX_PKG_DESCRIPTION="The Kerberos network authentication system" | |
3 | TERMUX_PKG_VERSION=1.15.1 | |
4c8a7b9f | 4 | TERMUX_PKG_REVISION=2 |
c50b57f7 | 5 | TERMUX_PKG_DEPENDS="libandroid-support, libandroid-glob, readline, openssl, libutil, libdb" |
6254c89c VB |
6 | TERMUX_PKG_SRCURL="https://web.mit.edu/kerberos/dist/krb5/1.15/krb5-$TERMUX_PKG_VERSION.tar.gz" |
7 | TERMUX_PKG_SHA256=437c8831ddd5fde2a993fef425dedb48468109bb3d3261ef838295045a89eb45 | |
6254c89c | 8 | TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas" |
4c8a7b9f | 9 | TERMUX_PKG_CONFFILES="etc/krb5.conf var/krb5kdc/kdc.conf" |
c50b57f7 VB |
10 | TERMUX_PKG_EXTRA_CONFIGURE_ARGS="--with-readline |
11 | --without-system-verto | |
12 | --with-netlib=-lc | |
13 | --enable-dns-for-realm | |
14 | --sbindir=$TERMUX_PREFIX/bin | |
15 | --with-size-optimizations | |
16 | --with-system-db | |
4c8a7b9f VB |
17 | DEFCCNAME=$TERMUX_PREFIX/tmp/krb5cc_%{uid} |
18 | DEFKTNAME=$TERMUX_PREFIX/etc/krb5.keytab | |
19 | DEFCKTNAME=$TERMUX_PREFIX/var/krb5/user/%{euid}/client.keytab | |
c50b57f7 | 20 | " |
e38a1e2b | 21 | |
1b3f3ebd FF |
22 | termux_step_post_extract_package() { |
23 | TERMUX_PKG_SRCDIR+="/src" | |
24 | } | |
25 | ||
e38a1e2b | 26 | termux_step_pre_configure () { |
1b3f3ebd FF |
27 | # cannot test these when cross compiling |
28 | export krb5_cv_attr_constructor_destructor='yes,yes' | |
29 | export ac_cv_func_regcomp='yes' | |
30 | export ac_cv_printf_positional='yes' | |
e38a1e2b | 31 | |
1b3f3ebd FF |
32 | # bionic doesn't have getpass |
33 | cp "$TERMUX_PKG_BUILDER_DIR/netbsd_getpass.c" "$TERMUX_PKG_SRCDIR/clients/kpasswd/" | |
e38a1e2b | 34 | |
1b3f3ebd FF |
35 | CFLAGS="$CFLAGS -D_PASSWORD_LEN=PASS_MAX" |
36 | LDFLAGS="$LDFLAGS -landroid-glob -llog" | |
e38a1e2b | 37 | } |
c50b57f7 VB |
38 | |
39 | termux_step_post_make_install () { | |
4c8a7b9f VB |
40 | # Enable logging to STDERR by default |
41 | echo -e "\tdefault = STDERR" >> $TERMUX_PKG_SRCDIR/config-files/krb5.conf | |
42 | ||
c50b57f7 VB |
43 | # Sample KDC config file |
44 | install -dm 700 $TERMUX_PREFIX/var/krb5kdc | |
45 | install -pm 600 $TERMUX_PKG_SRCDIR/config-files/kdc.conf $TERMUX_PREFIX/var/krb5kdc/kdc.conf | |
46 | ||
47 | # Default configuration file | |
48 | install -pm 600 $TERMUX_PKG_SRCDIR/config-files/krb5.conf $TERMUX_PREFIX/etc/krb5.conf | |
49 | ||
50 | install -dm 700 $TERMUX_PREFIX/share/aclocal | |
51 | install -m 600 $TERMUX_PKG_SRCDIR/util/ac_check_krb5.m4 $TERMUX_PREFIX/share/aclocal | |
52 | } |