From: Maxime Ripard <maxime.ripard@free-electrons.com>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v3] lighttpd: use standard web root directory
Date: Fri, 20 Jul 2012 14:51:39 +0200 [thread overview]
Message-ID: <5009545B.1090802@free-electrons.com> (raw)
In-Reply-To: <CAHt8ZCN8bh_yqEj5Nspkw7D_nZ=7UkChnFHNdbhZTiCQY77aEQ@mail.gmail.com>
Hi Simon,
Le 20/07/2012 14:38, Simon Dawson a ?crit :
> On 20 July 2012 13:23, Maxime Ripard <maxime.ripard@free-electrons.com> wrote:
>>> define LIGHTTPD_INSTALL_CONFIG
>>> - mkdir -p $(TARGET_DIR)/etc/lighttpd
>>> - mkdir -p $(TARGET_DIR)/etc/lighttpd/conf.d
>>> - mkdir -p $(TARGET_DIR)/srv/www/htdocs
>>> + $(INSTALL) -d -m 0755 $(TARGET_DIR)/etc/lighttpd/conf.d
>>> + $(INSTALL) -d -m 0755 $(TARGET_DIR)/var/www
>>
>> Why do you remove the mkdirs here ?
>
> They are redundant, since install is called with the -d option for the
> directories in question. (/srv/www/htdocs is no longer used.)
Ok, my question was more about why you replaced them by install -d
actually, but mostly out of curiosity :)
>>> define LIGHTTPD_UNINSTALL_TARGET_CMDS
>>> - rm -f $(TARGET_DIR)/usr/sbin/lighttpd
>>> - rm -f $(TARGET_DIR)/usr/sbin/lighttpd-angel
>>> - rm -rf $(TARGET_DIR)/usr/lib/lighttpd
>>> + $(RM) $(TARGET_DIR)/usr/sbin/lighttpd
>>> + $(RM) $(TARGET_DIR)/usr/sbin/lighttpd-angel
>>> + $(RM) -r $(TARGET_DIR)/usr/lib/lighttpd
>>> endef
>>
>> Why do you drop the -f here ? Depending on the user's shell and its
>> configuration, rm might require the user to confirm this removal, which
>> is not the case with rm -f.
>
> The $(RM) make variable includes the -f option.
Ok, didn't know that.
Then you can add my
Acked-By: Maxime Ripard <maxime.ripard@free-electrons.com>
To your next iteration with your signed-off-by in the patch.
--
Maxime Ripard, Free Electrons
Kernel, drivers, real-time and embedded Linux
development, consulting, training and support.
http://free-electrons.com
next prev parent reply other threads:[~2012-07-20 12:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-20 10:17 [Buildroot] [PATCH v3] lighttpd: use standard web root directory spdawson at gmail.com
2012-07-20 12:23 ` Maxime Ripard
2012-07-20 12:38 ` Simon Dawson
2012-07-20 12:51 ` Maxime Ripard [this message]
2012-07-20 12:55 ` Simon Dawson
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=5009545B.1090802@free-electrons.com \
--to=maxime.ripard@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