* [meta-webserver][PATCH 0/1] nostromo needs user/group defined
@ 2013-08-09 17:31 Joe Slater
2013-08-09 17:31 ` [meta-webserver][PATCH 1/1] nostromo: make sure usr/group www-data exist Joe Slater
0 siblings, 1 reply; 3+ messages in thread
From: Joe Slater @ 2013-08-09 17:31 UTC (permalink / raw)
To: openembedded-devel
Included nostromo in a qemux86-64 system, booted and connected to
nhttpd via host browser to verify at least minimal functionality.
Also checked that nhttpd is running as user www-data.
Joe Slater (1):
nostromo: make sure usr/group www-data exist
recipes-httpd/nostromo/nostromo_1.9.5.bb | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
--
1.7.3.4
^ permalink raw reply [flat|nested] 3+ messages in thread
* [meta-webserver][PATCH 1/1] nostromo: make sure usr/group www-data exist
2013-08-09 17:31 [meta-webserver][PATCH 0/1] nostromo needs user/group defined Joe Slater
@ 2013-08-09 17:31 ` Joe Slater
2013-08-13 7:52 ` Paul Eggleton
0 siblings, 1 reply; 3+ messages in thread
From: Joe Slater @ 2013-08-09 17:31 UTC (permalink / raw)
To: openembedded-devel
CQID: 422203
nostromo runs as user/group www-data and needs these
to exist when we install it.
Signed-off-by: Joe Slater <jslater@windriver.com>
---
recipes-httpd/nostromo/nostromo_1.9.5.bb | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diff --git a/recipes-httpd/nostromo/nostromo_1.9.5.bb b/recipes-httpd/nostromo/nostromo_1.9.5.bb
index 94c32d8..98195b1 100644
--- a/recipes-httpd/nostromo/nostromo_1.9.5.bb
+++ b/recipes-httpd/nostromo/nostromo_1.9.5.bb
@@ -17,7 +17,7 @@ TARGET_CC_ARCH += "${LDFLAGS}"
DEPENDS = "openssl"
-inherit update-rc.d
+inherit update-rc.d useradd
INITSCRIPT_NAME = "nostromo"
INITSCRIPT_PARAMS = "defaults 70"
@@ -26,6 +26,11 @@ do_compile() {
oe_runmake
}
+# we need user/group www-data to exist when we install
+#
+USERADD_PACKAGES = "${PN}"
+USERADD_PARAM_${PN} = "--system -g www-data www-data"
+
do_install() {
install -d ${D}/${sbindir}
install -m 0755 src/nhttpd/nhttpd ${D}/${sbindir}/nhttpd
--
1.7.3.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [meta-webserver][PATCH 1/1] nostromo: make sure usr/group www-data exist
2013-08-09 17:31 ` [meta-webserver][PATCH 1/1] nostromo: make sure usr/group www-data exist Joe Slater
@ 2013-08-13 7:52 ` Paul Eggleton
0 siblings, 0 replies; 3+ messages in thread
From: Paul Eggleton @ 2013-08-13 7:52 UTC (permalink / raw)
To: Joe Slater; +Cc: openembedded-devel
Hi Joe,
On Friday 09 August 2013 10:31:20 Joe Slater wrote:
> CQID: 422203
>
> nostromo runs as user/group www-data and needs these
> to exist when we install it.
>
> Signed-off-by: Joe Slater <jslater@windriver.com>
> ---
> recipes-httpd/nostromo/nostromo_1.9.5.bb | 7 ++++++-
> 1 files changed, 6 insertions(+), 1 deletions(-)
>
> diff --git a/recipes-httpd/nostromo/nostromo_1.9.5.bb
> b/recipes-httpd/nostromo/nostromo_1.9.5.bb index 94c32d8..98195b1 100644
> --- a/recipes-httpd/nostromo/nostromo_1.9.5.bb
> +++ b/recipes-httpd/nostromo/nostromo_1.9.5.bb
> @@ -17,7 +17,7 @@ TARGET_CC_ARCH += "${LDFLAGS}"
>
> DEPENDS = "openssl"
>
> -inherit update-rc.d
> +inherit update-rc.d useradd
>
> INITSCRIPT_NAME = "nostromo"
> INITSCRIPT_PARAMS = "defaults 70"
> @@ -26,6 +26,11 @@ do_compile() {
> oe_runmake
> }
>
> +# we need user/group www-data to exist when we install
> +#
> +USERADD_PACKAGES = "${PN}"
> +USERADD_PARAM_${PN} = "--system -g www-data www-data"
> +
> do_install() {
> install -d ${D}/${sbindir}
> install -m 0755 src/nhttpd/nhttpd ${D}/${sbindir}/nhttpd
I've applied this, but it was actually against the wrong directory path. In
future could you please send patches generated against meta-oe?
Thanks,
Paul
--
Paul Eggleton
Intel Open Source Technology Centre
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2013-08-13 7:52 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-09 17:31 [meta-webserver][PATCH 0/1] nostromo needs user/group defined Joe Slater
2013-08-09 17:31 ` [meta-webserver][PATCH 1/1] nostromo: make sure usr/group www-data exist Joe Slater
2013-08-13 7:52 ` Paul Eggleton
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.