Openembedded Devel Discussions
 help / color / mirror / Atom feed
From: Koen Kooi <koen@dominion.thruhere.net>
To: openembedded-devel@lists.openembedded.org
Subject: Re: [meta-webserver][PATCH] Add nginx http webserver
Date: Mon, 02 Dec 2013 15:38:44 +0100	[thread overview]
Message-ID: <l7i615$91m$1@ger.gmane.org> (raw)
In-Reply-To: <1385993511-14838-1-git-send-email-s.mennetrier@innotis.org>

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sébastien Mennetrier schreef op 02-12-13 15:11:
> From: Sébastien <s.mennetrier@innotis.org>
=
> +    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.


> + +    install -d ${D}${sysconfdir}/nginx +    cat ${WORKDIR}/nginx.conf
> | \ +        sed -e 's,/var/,${localstatedir}/,g' >
> ${D}/${sysconfdir}/nginx/nginx.conf +    chmod 644
> ${D}/${sysconfdir}/nginx/nginx.conf +    install -d
> ${D}${sysconfdir}/nginx/sites-enabled + +    install -d
> ${D}${sysconfdir}/default/volatiles +    cat
> ${WORKDIR}/nginx-volatile.conf | \ +        sed -e
> 's,/var/,${localstatedir}/,g' >
> ${D}${sysconfdir}/default/volatiles/99_nginx +    chmod 644
> ${D}${sysconfdir}/default/volatiles/99_nginx + +    rm -fr
> "${D}${localstatedir}/run" +} + +CONFFILES_${PN} =
> "${sysconfdir}/nginx/nginx.conf \ +
> ${sysconfdir}/nginx/fastcgi.conf\ +
> ${sysconfdir}/nginx/fastcgi_params \ +        ${sysconfdir}/nginx/koi-utf
> \ +        ${sysconfdir}/nginx/koi-win \ +
> ${sysconfdir}/nginx/mime.types \ +        ${sysconfdir}/nginx/scgi_params
> \ +        ${sysconfdir}/nginx/uwsgi_params \ +
> ${sysconfdir}/nginx/win-utf \ +        ${sysconfdir}/init.d/nginx \ +" + 
> +INITSCRIPT_NAME = "nginx" +INITSCRIPT_PARAMS = "defaults 92 20" + 
> +FILES_${PN} += "${localstatedir} \ +                /run \ +
> " + +USERADD_PACKAGES = "${PN}" +USERADD_PARAM_${PN} = " \ +    --system
> --no-create-home \ +    --home ${localstatedir}/www/localhost \ +
> --groups www-data \ +    --user-group www"
> 

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (Darwin)
Comment: GPGTools - http://gpgtools.org

iD8DBQFSnJt0MkyGM64RGpERAu5zAJ40O7GXBDLlkBdThmA1OBstF+mJ9ACgmmjs
HwVpGhfux7+iRWIOYfJgTbw=
=QBo2
-----END PGP SIGNATURE-----



  reply	other threads:[~2013-12-02 14:38 UTC|newest]

Thread overview: 4+ 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 [this message]
2013-12-02 14:56   ` Sebastien MENNETRIER
2013-12-02 15:03     ` 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='l7i615$91m$1@ger.gmane.org' \
    --to=koen@dominion.thruhere.net \
    --cc=openembedded-devel@lists.openembedded.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox