2017-02-09 09:22:55 +01:00
|
|
|
TERMUX_PKG_HOMEPAGE=https://www.privoxy.org
|
2017-07-07 03:02:23 +02:00
|
|
|
TERMUX_PKG_DESCRIPTION="Non-caching web proxy with advanced filtering capabilities"
|
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"
|
2022-02-23 21:58:10 +01:00
|
|
|
TERMUX_PKG_VERSION=3.0.33
|
2017-02-09 09:22:55 +01:00
|
|
|
TERMUX_PKG_SRCURL=https://www.privoxy.org/sf-download-mirror/Sources/$TERMUX_PKG_VERSION%20%28stable%29/privoxy-$TERMUX_PKG_VERSION-stable-src.tar.gz
|
2022-02-23 21:58:10 +01:00
|
|
|
TERMUX_PKG_SHA256=04b104e70dac61561b9dd110684b250fafc8c13dbe437a60fae18ddd9a881fae
|
|
|
|
# Termux-services adds the run scripts to TERMUX_PKG_CONFFILES. Those ones can
|
|
|
|
# not be copied in termux_step_post_massage so setup special variable for that
|
|
|
|
DEFAULT_CONFFILES="\
|
|
|
|
etc/privoxy/config
|
|
|
|
etc/privoxy/match-all.action
|
|
|
|
etc/privoxy/trust
|
|
|
|
etc/privoxy/user.action
|
|
|
|
etc/privoxy/user.filter
|
|
|
|
etc/privoxy/default.action
|
|
|
|
etc/privoxy/default.filter"
|
2020-01-05 21:06:06 +01:00
|
|
|
TERMUX_PKG_CONFFILES=$DEFAULT_CONFFILES
|
2019-01-03 02:03:37 +01:00
|
|
|
TERMUX_PKG_EXTRA_CONFIGURE_ARGS="
|
|
|
|
ac_cv_lib_pcreposix_regcomp=no
|
|
|
|
--sysconfdir=$TERMUX_PREFIX/etc/privoxy
|
|
|
|
"
|
2019-04-24 20:33:38 +02:00
|
|
|
TERMUX_PKG_DEPENDS="pcre, libpcreposix, zlib"
|
2019-08-12 17:28:41 +02:00
|
|
|
TERMUX_PKG_BUILD_IN_SRC=true
|
2022-02-23 21:58:10 +01:00
|
|
|
TERMUX_PKG_SERVICE_SCRIPT=("privoxy"
|
|
|
|
"if [ -f \"$TERMUX_ANDROID_HOME/.config/privoxy/config\" ]; then \
|
|
|
|
CONFIG=\"$TERMUX_ANDROID_HOME/.config/privoxy/config\"; else \
|
|
|
|
CONFIG=\"$TERMUX_PREFIX/etc/privoxy/config\"; fi\n\
|
|
|
|
exec privoxy --no-daemon \$CONFIG 2>&1")
|
2017-02-09 09:22:55 +01:00
|
|
|
|
|
|
|
termux_step_pre_configure() {
|
2019-08-08 14:25:54 +02:00
|
|
|
# Certain packages are not safe to build on device because their
|
|
|
|
# build.sh script deletes specific files in $TERMUX_PREFIX.
|
2019-08-12 17:28:41 +02:00
|
|
|
if $TERMUX_ON_DEVICE_BUILD; then
|
2019-08-08 14:25:54 +02:00
|
|
|
termux_error_exit "Package '$TERMUX_PKG_NAME' is not safe for on-device builds."
|
|
|
|
fi
|
|
|
|
|
2022-02-23 21:58:10 +01:00
|
|
|
autoheader
|
|
|
|
autoconf
|
2017-02-09 09:22:55 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
termux_step_post_massage() {
|
2022-02-23 21:58:10 +01:00
|
|
|
# copy default config files
|
|
|
|
for f in $DEFAULT_CONFFILES; do
|
|
|
|
cp "$TERMUX_PKG_SRCDIR/$(basename $f)" \
|
|
|
|
"$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/$f"
|
|
|
|
done
|
2017-02-09 09:22:55 +01:00
|
|
|
}
|