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.24
4 TERMUX_PKG_DEPENDS
="libcrypt, krb5, openssl, libnettle"
5 TERMUX_PKG_SRCURL
=http
://www.squid-cache.org
/Versions
/v3
/3.5/squid-
${TERMUX_PKG_VERSION}.
tar.xz
6 TERMUX_PKG_SHA256
=4fe29f582eef357faa541a53835b6885e24e6f28b80a3abcdf3b57f5393bbdb2
7 # disk-io requires shmem, msgctl and store-io requires disk-io
8 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
=" --disable-strict-error-checking --disable-auto-locale --disable-disk-io --disable-storeio"
9 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
+=" --with-openssl --enable-auth --with-nettle --disable-translation --with-size-optimizations"
10 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
+=" --libexecdir=$TERMUX_PREFIX/libexec/squid --sysconfdir=$TERMUX_PREFIX/etc/squid --datarootdir=$TERMUX_PREFIX/share/squid"
12 termux_step_pre_configure
() {
13 #CPPFLAGS="$CPPFLAGS -DTERMUX_SHMEM_STUBS"
14 TERMUX_PKG_EXTRA_CONFIGURE_ARGS
+=" squid_cv_gnu_atomics=yes"
15 LDFLAGS
="$LDFLAGS -llog"
17 # needed for building cf_gen
19 # else it picks up our cross CXXFLAGS
20 export BUILDCXXFLAGS
=' '