tor update and enable squid cache server (#1077)
[termux-packages] / packages / squid / build.sh
1 TERMUX_PKG_HOMEPAGE=http://www.squid-cache.org
2 TERMUX_PKG_DESCRIPTION="Full-featured Web proxy cache server"
3 TERMUX_PKG_VERSION=3.5.26
4 TERMUX_PKG_DEPENDS="libcrypt, openssl"
5 TERMUX_PKG_SRCURL=http://www.squid-cache.org/Versions/v3/3.5/squid-${TERMUX_PKG_VERSION}.tar.xz
6 TERMUX_PKG_SHA256=baa1eecb7d6e18881f4455060d80ee7cb95ae7e2695fdccf7e21ccc8f879a982
7 TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas"
8 # disk-io requires msgctl and store-io requires disk-io
9 TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
10 --disable-strict-error-checking
11 --disable-disk-io
12 --disable-storeio
13 --without-mit-krb5
14 --with-dl
15 --with-openssl
16 --enable-auth
17 --without-libnettle
18 --enable-translation
19 --with-size-optimizations
20 --without-libxml2
21 --libexecdir=$TERMUX_PREFIX/libexec/squid
22 --sysconfdir=$TERMUX_PREFIX/etc/squid
23 --datarootdir=$TERMUX_PREFIX/share/squid
24 squid_cv_gnu_atomics=yes
25 "
26
27 termux_step_pre_configure () {
28 LDFLAGS="$LDFLAGS -llog"
29
30 # needed for building cf_gen
31 export BUILDCXX=g++
32 # else it picks up our cross CXXFLAGS
33 export BUILDCXXFLAGS=' '
34 }
35