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