Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH 2/3] New package: c-icap c-icap is an implementation of an ICAP server. Squid 3.x proxy server supports it.
Date: Sun, 5 Oct 2014 23:56:49 +0200	[thread overview]
Message-ID: <20141005235649.100b5767@free-electrons.com> (raw)
In-Reply-To: <1411032426-11463-3-git-send-email-guillaume.gardet@oliseo.fr>

Dear Guillaume GARDET,

The title of the commit should just be:

	c-icap: new package

On Thu, 18 Sep 2014 11:27:05 +0200, Guillaume GARDET wrote:

> diff --git a/package/c-icap/Config.in b/package/c-icap/Config.in
> new file mode 100644
> index 0000000..827bfbf
> --- /dev/null
> +++ b/package/c-icap/Config.in
> @@ -0,0 +1,10 @@
> +config BR2_PACKAGE_C_ICAP
> +        bool "c-icap"
> +        help
> +          c-icap is an implementation of an ICAP server. It can be used with 
> +          HTTP proxies that support the ICAP protocol to implement content 
> +          adaptation and filtering services.
> +          Most of the commercial HTTP proxies must support the ICAP protocol.
> +          The open source Squid 3.x proxy server supports it.
> +
> +          http://c-icap.sourceforge.net/
> \ No newline at end of file

Missing new line at the end of the file.

Also, did you check that this package indeed builds with a minimal
toolchain such as
http://autobuild.buildroot.org/toolchains/configs/br-arm-basic.config ?
It's also good to check if it builds with
http://autobuild.buildroot.org/toolchains/configs/bfin-linux-uclibc.config
and then
http://autobuild.buildroot.org/toolchains/configs/bfin-uclinux.config.



> diff --git a/package/c-icap/c-icap.mk b/package/c-icap/c-icap.mk
> new file mode 100644
> index 0000000..d35d958
> --- /dev/null
> +++ b/package/c-icap/c-icap.mk
> @@ -0,0 +1,24 @@
> +################################################################################
> +#
> +# c-icap
> +#
> +################################################################################
> +
> +C_ICAP_VERSION = 0.3.4
> +C_ICAP_SOURCE = c_icap-$(C_ICAP_VERSION).tar.gz
> +C_ICAP_SITE = http://downloads.sourceforge.net/c-icap/
> +C_ICAP_INSTALL_STAGING = YES

Is this package really installing some libraries used by other packages?

> +C_ICAP_INSTALL_TARGET = YES

Not needed, this is the default.

The C_ICAP_LICENSE and C_ICAP_LICENSE_FILES variables are missing.

> +C_ICAP_CONF_OPT = --sysconfdir=/etc --with-process-mutexes=posix --enable-large-files

--enable-large-files seems to indicate you at least need largefile
support. Or you should make it optional with something like

ifeq ($(BR2_LARGEFILE),y)
ICAP_CONF_OPTS += --enable-large-files
else
ICAP_CONF_OPTS += --disable-large-files
endif

> +C_ICAP_DEPENDENCIES = 

Not needed, it defaults to empty.

> +define C_ICAP_INSTALL_TARGET_CONFIGS
> +	mkdir -p $(TARGET_DIR)/var/run/c-icap/
> +	mkdir -p $(TARGET_DIR)/tmp/c-icap/
> +	mkdir -p $(STAGING_DIR)/var/run/c-icap/
> +	mkdir -p $(STAGING_DIR)/tmp/c-icap/

Creating these directories in $(STAGING_DIR) is not needed. Just
curious, why is /tmp/c-icap/ necessary?

> +endef
> +
> +C_ICAP_POST_INSTALL_TARGET_HOOKS = C_ICAP_INSTALL_TARGET_CONFIGS
> +
> +$(eval $(autotools-package))
> \ No newline at end of file

Missing newline at end of file.

Could you take those comments into account and send an updated version?

Thanks a lot!

Thomas Petazzoni
-- 
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com

  reply	other threads:[~2014-10-05 21:56 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
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 [this message]
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=20141005235649.100b5767@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