nginx: Add support for altering build configuration
PATCH 1/2 nginx: Add support for altering build configuration
Passing EXTRA_OECONF to ./configure, this allows to alter build configure
--- meta-webserver/recipes-httpd/nginx/nginx_1.9.5.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta-webserver/recipes-httpd/nginx/nginx_1.9.5.bb +4 -1
@@ -27,6 +27,8 @@ inherit update-rc.d useradd CFLAGS_append = " -fPIE -pie" CXXFLAGS_append = " -fPIE -pie" +EXTRA_OECONF = "" + do_configure () { if [ "${SITEINFO_BITS}" = "64" ]; then PTRSIZE=8
@@ -55,7 +57,8 @@ do_configure () { --pid-path=/run/nginx/nginx.pid \ --prefix=${prefix} \ --with-http_ssl_module \ - --with-http_gzip_static_module + --with-http_gzip_static_module \ + ${EXTRA_OECONF} } do_install () {
Signature · 12 lines
1.9.1 --------------------------------------------------------------------- Intel Finland Oy Registered Address: PL 281, 00181 Helsinki Business Identity Code: 0357606 - 4 Domiciled in Helsinki This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
PATCH 2/2 nginx: Fix systemd service file
systemd service file expects full path of the executatbles.
--- meta-webserver/recipes-httpd/nginx/files/nginx.service | 2 +- meta-webserver/recipes-httpd/nginx/nginx_1.9.5.bb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
meta-webserver/recipes-httpd/nginx/files/nginx.service +1 -1
@@ -4,7 +4,7 @@ After=network.target [Service] Type=forking PIDFile=@SYSCONFDIR@/nginx/run/nginx.pid -ExecStartPre=mkdir -p @LOCALSTATEDIR@/log/nginx +ExecStartPre=@BASEBINDIR@/mkdir -p @LOCALSTATEDIR@/log/nginx ExecStart=@SYSCONFDIR@/init.d/nginx start ExecStop=@SYSCONFDIR@/init.d/nginx stop [Install]
meta-webserver/recipes-httpd/nginx/nginx_1.9.5.bb +1 -0
@@ -94,6 +94,7 @@ do_install () { install -m 0644 ${WORKDIR}/nginx.service ${D}${systemd_unitdir}/system/ sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' \ -e 's,@LOCALSTATEDIR@,${localstatedir},g' \ + -e 's,@BASEBINDIR@,${base_bindir},g' \ ${D}${systemd_unitdir}/system/nginx.service fi }
Signature · 12 lines
1.9.1 --------------------------------------------------------------------- Intel Finland Oy Registered Address: PL 281, 00181 Helsinki Business Identity Code: 0357606 - 4 Domiciled in Helsinki This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
sorry for noice: please ignore these patches. Wrong list
________________________________________
From: [email protected] [[email protected]] on behalf of Amarnath Valluri [[email protected]]
Sent: Friday, November 06, 2015 3:18 PM
To: [email protected]
Subject: [OE-core] [oe][PATCH 1/2] nginx: Add support for altering build configuration
Passing EXTRA_OECONF to ./configure, this allows to alter build configure
--- meta-webserver/recipes-httpd/nginx/nginx_1.9.5.bb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
meta-webserver/recipes-httpd/nginx/nginx_1.9.5.bb +4 -1
@@ -27,6 +27,8 @@ inherit update-rc.d useradd CFLAGS_append = " -fPIE -pie" CXXFLAGS_append = " -fPIE -pie" +EXTRA_OECONF = "" + do_configure () { if [ "${SITEINFO_BITS}" = "64" ]; then PTRSIZE=8
@@ -55,7 +57,8 @@ do_configure () { --pid-path=/run/nginx/nginx.pid \ --prefix=${prefix} \ --with-http_ssl_module \ - --with-http_gzip_static_module + --with-http_gzip_static_module \ + ${EXTRA_OECONF} } do_install () {
--
1.9.1
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
Re: [oe][PATCH 2/2] nginx: Fix systemd service file
In reply to Amarnath Vallurisorry for noice: please ignore these patches. Wrong list
________________________________________
From: [email protected] [[email protected]] on behalf of Amarnath Valluri [[email protected]]
Sent: Friday, November 06, 2015 3:18 PM
To: [email protected]
Subject: [OE-core] [oe][PATCH 2/2] nginx: Fix systemd service file
systemd service file expects full path of the executatbles.
--- meta-webserver/recipes-httpd/nginx/files/nginx.service | 2 +- meta-webserver/recipes-httpd/nginx/nginx_1.9.5.bb | 1 + 2 files changed, 2 insertions(+), 1 deletion(-)
meta-webserver/recipes-httpd/nginx/files/nginx.service +1 -1
@@ -4,7 +4,7 @@ After=network.target [Service] Type=forking PIDFile=@SYSCONFDIR@/nginx/run/nginx.pid -ExecStartPre=mkdir -p @LOCALSTATEDIR@/log/nginx +ExecStartPre=@BASEBINDIR@/mkdir -p @LOCALSTATEDIR@/log/nginx ExecStart=@SYSCONFDIR@/init.d/nginx start ExecStop=@SYSCONFDIR@/init.d/nginx stop [Install]
meta-webserver/recipes-httpd/nginx/nginx_1.9.5.bb +1 -0
@@ -94,6 +94,7 @@ do_install () { install -m 0644 ${WORKDIR}/nginx.service ${D}${systemd_unitdir}/system/ sed -i -e 's,@SYSCONFDIR@,${sysconfdir},g' \ -e 's,@LOCALSTATEDIR@,${localstatedir},g' \ + -e 's,@BASEBINDIR@,${base_bindir},g' \ ${D}${systemd_unitdir}/system/nginx.service fi }
--
1.9.1
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.
--
_______________________________________________
Openembedded-core mailing list
[email protected]
http://lists.openembedded.org/mailman/listinfo/openembedded-core
---------------------------------------------------------------------
Intel Finland Oy
Registered Address: PL 281, 00181 Helsinki
Business Identity Code: 0357606 - 4
Domiciled in Helsinki
This e-mail and any attachments may contain confidential material for the sole use of the intended recipient(s). Any review or distribution by others is strictly prohibited. If you are not the intended recipient, please contact the sender and delete all copies.