[oe] [meta-webserver][PATCH] Add nginx http webserver
Koen Kooi
koen at dominion.thruhere.net
Mon Dec 2 14:38:44 UTC 2013
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Sébastien Mennetrier schreef op 02-12-13 15:11:
> From: Sébastien <s.mennetrier at 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-----
More information about the Openembedded-devel
mailing list