From 5de0e2019c6484ca997c48819a4daff2f5611673 Mon Sep 17 00:00:00 2001 From: Leonid Plyushch Date: Mon, 23 Sep 2019 19:03:04 +0300 Subject: [PATCH] squid: create cache & log directories --- packages/squid/build.sh | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/squid/build.sh b/packages/squid/build.sh index fcea0027b..0053c1f91 100644 --- a/packages/squid/build.sh +++ b/packages/squid/build.sh @@ -3,7 +3,7 @@ TERMUX_PKG_DESCRIPTION="Full-featured Web proxy cache server" TERMUX_PKG_LICENSE="GPL-2.0" TERMUX_PKG_MAINTAINER="Vishal Biswas @vishalbiswas" TERMUX_PKG_VERSION=4.8 -TERMUX_PKG_REVISION=1 +TERMUX_PKG_REVISION=2 TERMUX_PKG_SRCURL=http://squid.mirror.globo.tech/archive/4/squid-$TERMUX_PKG_VERSION.tar.xz TERMUX_PKG_SHA256=78cdb324d93341d36d09d5f791060f6e8aaa5ff3179f7c949cd910d023a86210 TERMUX_PKG_DEPENDS="libc++, libcrypt, libxml2, libltdl, openssl, resolv-conf" @@ -58,6 +58,8 @@ termux_step_post_make_install() { } termux_step_post_massage() { - # Ensure that /var/run exists as it required for pid files. + # 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" mkdir -p "$TERMUX_PKG_MASSAGEDIR/$TERMUX_PREFIX/var/run" }