gnupg2: Update from 2.2.5 to 2.2.6
[termux-packages] / disabled-packages / dovecot / build.sh
CommitLineData
698b1561
VB
1TERMUX_PKG_HOMEPAGE=https://www.dovecot.org
2TERMUX_PKG_DESCRIPTION="Secure IMAP and POP3 email server"
3TERMUX_PKG_VERSION=2.2.31
4TERMUX_PKG_SRCURL=https://www.dovecot.org/releases/2.2/dovecot-$TERMUX_PKG_VERSION.tar.gz
5TERMUX_PKG_SHA256=034be40907748128d65088a4f59789b2f99ae7b33a88974eae0b6a68ece376a1
6TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas"
7TERMUX_PKG_DEPENDS="openssl, libcrypt"
8# turning on icu gives undefined reference to __cxa_call_unexpected
9TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
10--with-zlib
11--with-ssl=openssl
12--with-ssldir=$TERMUX_PREFIX/etc/tls
13--without-icu
14--without-shadow
15i_cv_epoll_works=yes
16i_cv_posix_fallocate_works=yes
17i_cv_signed_size_t=no
18i_cv_gmtime_max_time_t=40
19i_cv_signed_time_t=yes
20i_cv_mmap_plays_with_write=yes
21i_cv_fd_passing=yes
22i_cv_c99_vsnprintf=yes
23lib_cv_va_copy=yes
24lib_cv___va_copy=yes
25"
26
27termux_step_pre_configure () {
28 LDFLAGS="$LDFLAGS -llog"
29
30 for i in `find $TERMUX_PKG_SRCDIR/src/director -type f`; do sed 's|\bstruct user\b|struct usertest|g' -i $i; done
31
32 if [ "$TERMUX_ARCH" == "aarch64" ]; then
33 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="lib_cv_va_val_copy=yes"
34 else
35 TERMUX_PKG_EXTRA_CONFIGURE_ARGS+="lib_cv_va_val_copy=no"
36 fi
37}
38
39termux_step_post_make_install () {
40 for binary in doveadm doveconf; do
41 mv $TERMUX_PREFIX/bin/$binary $TERMUX_PREFIX/libexec/dovecot/$binary
42 cat > $TERMUX_PREFIX/bin/$binary <<HERE
43#!$TERMUX_PREFIX/bin/sh
44export LD_LIBRARY_PATH=$TERMUX_PREFIX/lib/dovecot:\$LD_LIBRARY_PATH
45exec $TERMUX_PREFIX/libexec/dovecot/$binary $@
46HERE
47 chmod u+x $TERMUX_PREFIX/bin/$binary
48 done
49}