From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 1/3] package/squid: enable ICAP server support in squid and define logdir, pidfile and swapdir
Date: Sun, 5 Oct 2014 23:52:32 +0200 [thread overview]
Message-ID: <20141005235232.66d3c09c@free-electrons.com> (raw)
In-Reply-To: <1411032426-11463-2-git-send-email-guillaume.gardet@oliseo.fr>
Dear Guillaume GARDET,
On Thu, 18 Sep 2014 11:27:04 +0200, Guillaume GARDET wrote:
> This patch adds ICAP server support to squid and also defines logdir,
> pidfile and swapdir.
>
> Signed-off-by: Guillaume GARDET <guillaume.gardet@oliseo.fr>
Thanks for this contribution. A few comments below.
>
> diff --git a/package/squid/squid.mk b/package/squid/squid.mk
> index 6dffae8..f68a402 100644
> --- a/package/squid/squid.mk
> +++ b/package/squid/squid.mk
> @@ -26,7 +26,11 @@ SQUID_CONF_OPT = --enable-async-io=8 --enable-linux-netfilter \
> --enable-auth-negotiate="wrapper" \
> --enable-auth-ntlm="fake" \
> --disable-strict-error-checking \
> - --enable-external-acl-helpers="file_userip"
> + --enable-external-acl-helpers="file_userip" \
> + --with-logdir=/var/log/squid/ \
> + --with-pidfile=/var/run/squid.pid \
> + --with-swapdir=/var/cache/squid/ \
> + --enable-icap-client
>
> # On uClibc librt needs libpthread
> ifeq ($(BR2_TOOLCHAIN_HAS_THREADS)$(BR2_TOOLCHAIN_USES_UCLIBC),yy)
> @@ -45,6 +49,10 @@ define SQUID_CLEANUP_TARGET
> cachemgr.conf mime.conf.default squid.conf.default)
> endef
>
> -SQUID_POST_INSTALL_TARGET_HOOKS += SQUID_CLEANUP_TARGET
> +define SQUID_CREATE_MISSING_FOLDER
> + mkdir -p $(TARGET_DIR)/var/log/squid/
> +endef
> +
> +SQUID_POST_INSTALL_TARGET_HOOKS += SQUID_CLEANUP_TARGET SQUID_CREATE_MISSING_FOLDER
>
> $(eval $(autotools-package))
I believe the changes of adding the log directory, pidfile and swapdir
on one side, and adding the ICAP client option on the other side should
be two separate patches.
Also, how much does the ICAP client support adds to Squid size? I'm
trying to see if this should be optional instead of always enabled like
you're proposing.
Thanks,
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com
next prev parent reply other threads:[~2014-10-05 21:52 UTC|newest]
Thread overview: 38+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-09-18 9:27 [Buildroot] [PATCH 0/3] Add ICAP server support Guillaume GARDET
2014-09-18 9:27 ` [Buildroot] [PATCH 1/3] package/squid: enable ICAP server support in squid and define logdir, pidfile and swapdir Guillaume GARDET
2014-10-05 21:52 ` Thomas Petazzoni [this message]
2014-10-08 20:03 ` Guillaume GARDET - Oliséo
2014-10-08 20:18 ` Thomas Petazzoni
2014-10-08 20:24 ` Gustavo Zacarias
2014-10-16 9:52 ` Guillaume GARDET - Oliséo
2014-10-16 10:02 ` Thomas Petazzoni
2014-09-18 9:27 ` [Buildroot] [PATCH 2/3] New package: c-icap c-icap is an implementation of an ICAP server. Squid 3.x proxy server supports it Guillaume GARDET
2014-10-05 21:56 ` Thomas Petazzoni
2014-09-18 9:27 ` [Buildroot] [PATCH 3/3] New package: c-icap-modules Additionals modules for c-icap server Guillaume GARDET
2014-10-05 22:01 ` Thomas Petazzoni
2014-09-26 11:58 ` [Buildroot] [PATCH 0/3] Add ICAP server support Guillaume GARDET - Oliséo
2014-11-12 16:16 ` [Buildroot] [PATCH V2 0/4] " Guillaume GARDET
2014-11-12 16:16 ` [Buildroot] [PATCH V2 1/4] package/squid: define the log directory, pidfile and swapdir Guillaume GARDET
2014-11-12 16:16 ` [Buildroot] [PATCH V2 2/4] package/squid: enable ICAP server support in squid Guillaume GARDET
2014-11-16 21:38 ` Thomas Petazzoni
2014-11-18 12:47 ` Guillaume GARDET - Oliséo
2014-11-18 13:04 ` Thomas Petazzoni
2014-11-12 16:16 ` [Buildroot] [PATCH V2 3/4] c-icap: new package Guillaume GARDET
2014-11-16 21:48 ` Thomas Petazzoni
2014-11-12 16:16 ` [Buildroot] [PATCH V2 4/4] c-icap-modules: " Guillaume GARDET
2014-11-16 21:38 ` [Buildroot] [PATCH V2 0/4] Add ICAP server support Thomas Petazzoni
2014-11-18 14:54 ` [Buildroot] [PATCH V3 0/5] " Guillaume GARDET
2014-11-18 14:54 ` [Buildroot] [PATCH V3 1/5] package/squid: define the log directory, pidfile and swapdir Guillaume GARDET
2014-11-23 21:17 ` Thomas Petazzoni
2014-11-18 14:54 ` [Buildroot] [PATCH V3 2/5] package/squid: add init script Guillaume GARDET
2014-11-23 21:18 ` Thomas Petazzoni
2014-11-29 19:41 ` Guillaume GARDET - Oliséo
2014-11-30 8:33 ` Thomas Petazzoni
2014-11-18 14:54 ` [Buildroot] [PATCH V3 3/5] package/squid: enable ICAP client support in squid Guillaume GARDET
2014-11-23 21:18 ` Thomas Petazzoni
2014-11-18 14:54 ` [Buildroot] [PATCH V3 4/5] c-icap: new package Guillaume GARDET
2015-07-10 17:09 ` Thomas Petazzoni
2015-07-15 16:14 ` Guillaume GARDET - Oliséo
2014-11-18 14:54 ` [Buildroot] [PATCH V3 5/5] c-icap-modules: " Guillaume GARDET
2015-07-12 22:26 ` Thomas Petazzoni
2015-07-15 16:15 ` Guillaume GARDET - Oliséo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20141005235232.66d3c09c@free-electrons.com \
--to=thomas.petazzoni@free-electrons.com \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox