2017-06-12 01:47:45 +02:00
|
|
|
TERMUX_PKG_HOMEPAGE=http://www.squid-cache.org
|
|
|
|
TERMUX_PKG_DESCRIPTION="Full-featured Web proxy cache server"
|
2019-01-21 13:53:58 +01:00
|
|
|
TERMUX_PKG_LICENSE="GPL-2.0"
|
2020-12-20 14:16:34 +01:00
|
|
|
TERMUX_PKG_MAINTAINER="@termux"
|
2021-07-17 23:29:21 +02:00
|
|
|
TERMUX_PKG_VERSION=4.16
|
2019-05-07 23:44:27 +02:00
|
|
|
TERMUX_PKG_SRCURL=http://squid.mirror.globo.tech/archive/4/squid-$TERMUX_PKG_VERSION.tar.xz
|
2021-07-17 23:29:21 +02:00
|
|
|
TERMUX_PKG_SHA256=7e00e891757c1c02dae546c9898f440c6031b684d8c243d6edab529076e3ba63
|
2020-08-07 21:12:33 +02:00
|
|
|
TERMUX_PKG_DEPENDS="libc++, libcrypt, libxml2, libltdl, libgnutls, resolv-conf"
|
2019-09-23 15:56:39 +02:00
|
|
|
|
2020-08-23 10:50:40 +02:00
|
|
|
#disk-io uses XSI message queue which are not available on Android.
|
2019-09-23 15:56:39 +02:00
|
|
|
# Option 'cache_dir' will be unusable.
|
2017-06-12 01:47:45 +02:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
2020-08-07 21:12:33 +02:00
|
|
|
ac_cv_func_memrchr=yes
|
|
|
|
ac_cv_func_strtoll=yes
|
|
|
|
ac_cv_search_shm_open=
|
2017-06-12 03:11:00 +02:00
|
|
|
ac_cv_lib_sasl2_sasl_errstring=no
|
2017-07-14 00:23:37 +02:00
|
|
|
ac_cv_dbopen_libdb=no
|
2017-11-19 04:57:34 +01:00
|
|
|
squid_cv_gnu_atomics=yes
|
2019-09-23 15:56:39 +02:00
|
|
|
--datarootdir=$TERMUX_PREFIX/share/squid
|
|
|
|
--libexecdir=$TERMUX_PREFIX/libexec/squid
|
|
|
|
--mandir=$TERMUX_PREFIX/share/man
|
|
|
|
--sysconfdir=$TERMUX_PREFIX/etc/squid
|
|
|
|
--with-logdir=$TERMUX_PREFIX/var/log/squid
|
|
|
|
--with-pidfile=$TERMUX_PREFIX/var/run/squid.pid
|
2017-07-14 00:23:37 +02:00
|
|
|
--disable-external-acl-helpers
|
2017-06-12 01:47:45 +02:00
|
|
|
--disable-strict-error-checking
|
2019-09-23 15:56:39 +02:00
|
|
|
--enable-auth
|
|
|
|
--enable-auth-basic
|
|
|
|
--enable-auth-digest
|
|
|
|
--enable-auth-negotiate
|
|
|
|
--enable-auth-ntlm
|
|
|
|
--enable-delay-pools
|
|
|
|
--enable-linux-netfilter
|
|
|
|
--enable-removal-policies="lru,heap"
|
|
|
|
--enable-snmp
|
2017-06-12 01:47:45 +02:00
|
|
|
--disable-disk-io
|
|
|
|
--disable-storeio
|
2019-09-23 15:56:39 +02:00
|
|
|
--enable-translation
|
2017-06-12 01:47:45 +02:00
|
|
|
--with-dl
|
2020-08-07 21:12:33 +02:00
|
|
|
--without-openssl
|
|
|
|
--disable-ssl-crtd
|
2017-06-12 01:47:45 +02:00
|
|
|
--with-size-optimizations
|
2020-08-07 21:12:33 +02:00
|
|
|
--with-gnutls
|
|
|
|
--with-libnettle
|
2019-09-23 15:56:39 +02:00
|
|
|
--without-mit-krb5
|
2019-11-21 00:34:37 +01:00
|
|
|
--with-maxfd=256
|
2017-06-12 01:47:45 +02:00
|
|
|
"
|
|
|
|
|
2019-02-08 10:37:29 +01:00
|
|
|
termux_step_pre_configure() {
|
2017-06-12 01:47:45 +02:00
|
|
|
# needed for building cf_gen
|
|
|
|
export BUILDCXX=g++
|
|
|
|
# else it picks up our cross CXXFLAGS
|
|
|
|
export BUILDCXXFLAGS=' '
|
|
|
|
}
|
|
|
|
|
2019-06-28 12:35:06 +02:00
|
|
|
termux_step_post_make_install() {
|
|
|
|
local _SQUID_LOGDIR=$TERMUX_PREFIX/var/logs
|
|
|
|
mkdir -p $_SQUID_LOGDIR
|
|
|
|
echo "Squid logs here by default" > $_SQUID_LOGDIR/README.squid
|
|
|
|
}
|
2019-09-23 14:43:37 +02:00
|
|
|
|
|
|
|
termux_step_post_massage() {
|
2019-09-23 18:03:04 +02:00
|
|
|
# Ensure that necessary directories exist, otherwise squid fill fail.
|
|
|
|
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/var/cache/squid"
|
|
|
|
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/var/log/squid"
|
2019-09-23 14:43:37 +02:00
|
|
|
mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/var/run"
|
|
|
|
}
|