From: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH] darkhttpd: new package
Date: Sat, 17 Sep 2016 14:10:52 +0200 [thread overview]
Message-ID: <20160917141052.61d23a72@free-electrons.com> (raw)
In-Reply-To: <1474111899-5705-1-git-send-email-eric.le.bihan.dev@free.fr>
Hello,
On Sat, 17 Sep 2016 13:31:39 +0200, Eric Le Bihan wrote:
> This new package provides darkhttpd, a simple, fast HTTP 1.1 web server
> for static content.
>
> Signed-off-by: Eric Le Bihan <eric.le.bihan.dev@free.fr>
Thanks for this patch. A few comments/questions below.
> diff --git a/package/darkhttpd/Config.in b/package/darkhttpd/Config.in
> new file mode 100644
> index 0000000..bd12588
> --- /dev/null
> +++ b/package/darkhttpd/Config.in
> @@ -0,0 +1,18 @@
> +config BR2_PACKAGE_DARKHTTPD
> + bool "darkhttpd"
Did you validate the architecture/toolchain dependencies? MMU, C++,
wchar, etc. ?
> + Note: when Busybox or SysV init system is used, darkhttpd logs to
> + /var/log/darkhttpd.log, which may grow beyond the file system limits.
> + Please consider using a log rotating system such as logrotate or
> + change the path to the log file using the configuration file.
Is it really worth having such a comment here? I believe this applies
to many (all?) daemons.
> +# Allow a few customizations from a config file
> +test -r /etc/default/darkhttpd && . /etc/default/darkhttpd
> +
> +DARKHTTPD_PROG=/usr/sbin/darkhttpd
> +DARKHTTPD_PIDFILE=/var/run/darkhttpd.pid
> +DARKHTTPD_FLAGS="$DARKHTTPD_FLAGS --chroot --uid nobody --gid www-data"
> +DARKHTTPD_ARGS="${DARKHTTPD_ROOT:-/var/www} --log /var/log/darkhttpd.log $DARKHTTPD_FLAGS"
I don't understand why you have this construction of _ARGS in several
steps. What about:
DARKHTTPD_ARGS="${DARKHTTPD_ROOT:-/var/www} --log /var/log/darkhttpd.log $DARKHTTPD_ARGS --chroot --uid nobody --gid www-data"
instead (assuming the variable in the /etc/default file is
DARKHTTP_ARGS instead of DARKHTTP_FLAGS, the former being much more
common than the latter IMO).
> +DARKHTTPD_MAKE_OPTS = CC="$(TARGET_CC)"
Can you use $(TARGET_CONFIGURE_OPTS) instead ?
Thanks!
Thomas
--
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
next prev parent reply other threads:[~2016-09-17 12:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-09-17 11:31 [Buildroot] [PATCH] darkhttpd: new package Eric Le Bihan
2016-09-17 12:10 ` Thomas Petazzoni [this message]
2016-09-25 16:25 ` Eric Le Bihan
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=20160917141052.61d23a72@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