All of lore.kernel.org
 help / color / mirror / Atom feed
From: Paul Eggleton <paul.eggleton@linux.intel.com>
To: Sebastien MENNETRIER <s.mennetrier@innotis.org>
Cc: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-webserver][PATCH] Add nginx http webserver
Date: Mon, 02 Dec 2013 15:03:05 +0000	[thread overview]
Message-ID: <1618185.ZWhYWpivda@helios> (raw)
In-Reply-To: <CABgO3_PQBTfeogsTJjSs6u_04jP5FceqVvqkRjNnpZgiOt+OaQ@mail.gmail.com>

On Monday 02 December 2013 15:56:34 Sebastien MENNETRIER wrote:
> 2013/12/2 Koen Kooi <koen@dominion.thruhere.net>
> > Sébastien Mennetrier schreef op 02-12-13 15:11:
> > > +    install -d ${D}${sysconfdir}/init.d +    cat ${WORKDIR}/init | \ +
> > > sed -e 's,/usr/sbin/,${sbindir}/,g' \ +            -e
> > > 's,/etc/,${sysconfdir}/,g' > ${D}/${sysconfdir}/init.d/nginx +    chmod
> > > 755 ${D}/${sysconfdir}/init.d/nginx
> > 
> > I think using sed -i will be easier to understand, I haven't seen any pipe
> > based modifications in an OE recipe yet.
> > 
 > This method is used in apache2 recipe... But I can modify if it's
> necessary.

Right, it's probably not ideal there either (and it was probably me that wrote 
that...) When you do change this for the nginx recipe, be sure to sed -i the 
destination file after copying (rather than the source before) so that re-
executing do_install will work.

Cheers,
Paul

-- 

Paul Eggleton
Intel Open Source Technology Centre


  reply	other threads:[~2013-12-02 15:04 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-02 14:11 [meta-webserver][PATCH] Add nginx http webserver Sébastien Mennetrier
2013-12-02 14:38 ` Koen Kooi
2013-12-02 14:56   ` Sebastien MENNETRIER
2013-12-02 15:03     ` Paul Eggleton [this message]
  -- strict thread matches above, loose matches on Subject: below --
2013-12-02 13:16 Sébastien Mennetrier
2013-12-02 13:55 ` Paul Eggleton

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=1618185.ZWhYWpivda@helios \
    --to=paul.eggleton@linux.intel.com \
    --cc=openembedded-devel@lists.openembedded.org \
    --cc=s.mennetrier@innotis.org \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.