nginx: new package
PATCH v2 1/1 nginx: new package
nginx module selection is, by default, the same as the one sets by the upstream configure script.
Patches improving the cross-compilation support have already been sent upstream for integration [1-5].
Fixes bug: #3427 [6]
[1] http://mailman.nginx.org/pipermail/nginx-devel/2014-August/005722.html
[2] http://mailman.nginx.org/pipermail/nginx-devel/2014-August/005724.html
[3] http://mailman.nginx.org/pipermail/nginx-devel/2014-August/005725.html
[4] http://mailman.nginx.org/pipermail/nginx-devel/2014-August/005723.html
[5] http://mailman.nginx.org/pipermail/nginx-devel/2014-August/005726.html
[6] https://bugs.uclibc.org/show_bug.cgi?id=3427
---
changes v1 -> v2:
- add SSL module knobs (ThomasP)
- turn all BR2_PACKAGE_* symbols fully uppercase (ThomasP)
- add pid file option to start-stop-daemon (ThomasP)
- do not pass default "-I..." "-L..." locations (ThomasP)
- fix --prefix (ThomasP)
- fix missing brackets
--- package/Config.in | 1 + package/nginx/Config.in | 330 +++++++++++++++++++++ package/nginx/S50nginx | 26 ++ ...izeof-rework-autotest-to-be-cross-compila.patch | 88 ++++++ ...e-add-mechanism-allowing-to-force-feature.patch | 135 +++++++++ ...x_feature_run_force_result-for-each-featu.patch | 209 +++++++++++++ ...bxslt-conf-allow-to-override-ngx_feature_.patch | 42 +++ ...nix-make-sys_nerr-guessing-cross-friendly.patch | 133 +++++++++ package/nginx/nginx.logrotate | 9 + package/nginx/nginx.mk | 229 ++++++++++++++ package/nginx/nginx.service | 15 + 11 files changed, 1217 insertions(+) create mode 100644 package/nginx/Config.in create mode 100755 package/nginx/S50nginx create mode 100644 package/nginx/nginx-0001-auto-type-sizeof-rework-autotest-to-be-cross-compila.patch create mode 100644 package/nginx/nginx-0002-auto-feature-add-mechanism-allowing-to-force-feature.patch create mode 100644 package/nginx/nginx-0003-auto-set-ngx_feature_run_force_result-for-each-featu.patch create mode 100644 package/nginx/nginx-0004-auto-lib-libxslt-conf-allow-to-override-ngx_feature_.patch create mode 100644 package/nginx/nginx-0005-auto-unix-make-sys_nerr-guessing-cross-friendly.patch create mode 100644 package/nginx/nginx.logrotate create mode 100644 package/nginx/nginx.mk create mode 100644 package/nginx/nginx.service
package/Config.in +1 -0
@@ -1024,6 +1024,7 @@ endif source "package/network-manager/Config.in" source "package/nfacct/Config.in" source "package/nftables/Config.in" + source "package/nginx/Config.in" source "package/ngircd/Config.in" source "package/ngrep/Config.in" source "package/nmap/Config.in"
package/nginx/Config.in new file +330 -0
330 lines not on this page · raw message
package/nginx/S50nginx new file +26 -0
@@ -0,0 +1,26 @@ +#!/bin/sh +# +# Start/stop nginx +# + +PIDFILE=/var/run/nginx.pid + +case "$1" in + start) + echo "Starting nginx..." + start-stop-daemon -S -x -p $PIDFILE nginx + ;; + stop) + echo -n "Stopping nginx..." + start-stop-daemon -K -o -p $PIDFILE + ;; + restart|reload) + "$0" stop + "$0" start + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 +esac + +exit $?
package/nginx/nginx-0001-auto-type-sizeof-rework-autotest-to-be-cross-compila.patch new file +88 -0
88 lines not on this page · raw message
package/nginx/nginx-0002-auto-feature-add-mechanism-allowing-to-force-feature.patch new file +135 -0
135 lines not on this page · raw message
package/nginx/nginx-0003-auto-set-ngx_feature_run_force_result-for-each-featu.patch new file +209 -0
209 lines not on this page · raw message
package/nginx/nginx-0004-auto-lib-libxslt-conf-allow-to-override-ngx_feature_.patch new file +42 -0
42 lines not on this page · raw message
package/nginx/nginx-0005-auto-unix-make-sys_nerr-guessing-cross-friendly.patch new file +133 -0
133 lines not on this page · raw message
package/nginx/nginx.logrotate new file +9 -0
@@ -0,0 +1,9 @@ +/var/log/nginx/*log { + missingok + create 640 http log + sharedscripts + compress + postrotate + test ! -r /var/run/nginx.pid || kill -USR1 `cat /var/run/nginx.pid` + endscript +}
package/nginx/nginx.mk new file +229 -0
229 lines not on this page · raw message
package/nginx/nginx.service new file +15 -0
@@ -0,0 +1,15 @@ +[Unit] +Description=A high performance web server and a reverse proxy server +After=syslog.target network.target + +[Service] +Type=forking +PIDFile=/var/run/nginx.pid +ExecStartPre=/usr/bin/nginx -t -q -g 'pid /var/run/nginx.pid; daemon on; master_process on;' +ExecStart=/usr/bin/nginx -g 'pid /var/run/nginx.pid; daemon on; master_process on;' +ExecReload=/usr/bin/nginx -g 'pid /var/run/nginx.pid; daemon on; master_process on;' -s reload +ExecStop=/usr/bin/nginx -g 'pid /var/run/nginx.pid;' -s quit +PrivateDevices=yes + +[Install] +WantedBy=multi-user.target
Signature · 1 line
2.0.3
PATCH v2 1/1 nginx: new package
package/nginx/nginx.mk line 7
Quoted 7 lines · Samuel Martin
package/nginx/nginx.mk new file +7
-0+################################################################################ +# +# nginx +# +################################################################################ + +NGINX_VERSION = 1.7.3
Hi Samuel, nice work.
Any particular reason to go latest mainline instead of latest stable? From a security point of view it'll probably be harder to track down future discoveries/fixes.
Thanks!
Regards.
PATCH v2 1/1 nginx: new package
Hi Gustavo, all,
Quoted 14 lines · Gustavo Zacarias
package/nginx/nginx.mk line 7
Quoted 7 lines · Samuel Martin
package/nginx/nginx.mk new file +7
-0+################################################################################ +# +# nginx +# +################################################################################ + +NGINX_VERSION = 1.7.3Hi Samuel, nice work.
Any particular reason to go latest mainline instead of latest stable? From a security point of view it'll probably be harder to track down future discoveries/fixes.
None, just the habit to use the latest release ;-) I can easily rollback to the 1.6.0 version.
Quoted 3 lines
Thanks!
Regards.
Cheers,
Signature · 1 line
Samuel