diff --git a/extra/nginx-mainline/PKGBUILD b/extra/nginx-mainline/PKGBUILD index 8c10b13b4..1be986400 100644 --- a/extra/nginx-mainline/PKGBUILD +++ b/extra/nginx-mainline/PKGBUILD @@ -7,7 +7,7 @@ # - build armv7h and aarch64 with -fPIC pkgname=nginx-mainline -pkgver=1.11.10 +pkgver=1.12.0 pkgrel=1 pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server, mainline release' arch=('i686' 'x86_64') @@ -32,13 +32,13 @@ source=($url/download/nginx-$pkgver.tar.gz{,.asc} service logrotate) validpgpkeys=('B0F4253373F8F6F510D42178520A9993A1C052F8') # Maxim Dounin -md5sums=('6fb10f579055d27a2240d51c7d85c190' +md5sums=('995eb0a140455cf0cfc497e5bd7f94b3' 'SKIP' - 'ce9a06bcaf66ec4a3c4eb59b636e0dfd' - 'd6a6d4d819f03a675bacdfabd25aa37e') + '09862c34cd9593bc40da81f88c5fc4b2' + '6a01fb17af86f03707c8ae60f98a2dc2') _common_flags=( - --with-pcre-jit + --with-compat --with-file-aio --with-http_addition_module --with-http_auth_request_module @@ -58,15 +58,16 @@ _common_flags=( --with-http_v2_module --with-mail --with-mail_ssl_module + --with-pcre-jit --with-stream + --with-stream_geoip_module + --with-stream_realip_module --with-stream_ssl_module + --with-stream_ssl_preread_module --with-threads ) _mainline_flags=( - --with-stream_ssl_preread_module - --with-stream_geoip_module - --with-stream_realip_module ) build() { @@ -123,9 +124,7 @@ package() { gzip -9c man/nginx.8 > "$pkgdir"/usr/share/man/man8/nginx.8.gz for i in ftdetect indent syntax; do - install -Dm644 contrib/vim/${i}/nginx.vim \ - "${pkgdir}/usr/share/vim/vimfiles/${i}/nginx.vim" + install -Dm644 contrib/vim/$i/nginx.vim \ + "$pkgdir/usr/share/vim/vimfiles/$i/nginx.vim" done } - -# vim:set ts=2 sw=2 et: diff --git a/extra/nginx-mainline/logrotate b/extra/nginx-mainline/logrotate index 6fcf5581a..e0afbb927 100644 --- a/extra/nginx-mainline/logrotate +++ b/extra/nginx-mainline/logrotate @@ -5,6 +5,6 @@ sharedscripts compress postrotate - test ! -r /var/run/nginx.pid || kill -USR1 `cat /var/run/nginx.pid` + test ! -r /run/nginx.pid || kill -USR1 `cat /run/nginx.pid` endscript } diff --git a/extra/nginx-mainline/service b/extra/nginx-mainline/service index 29d3aa877..28c1163ba 100644 --- a/extra/nginx-mainline/service +++ b/extra/nginx-mainline/service @@ -1,14 +1,17 @@ [Unit] Description=A high performance web server and a reverse proxy server -After=syslog.target network.target +After=network.target [Service] Type=forking PIDFile=/run/nginx.pid -ExecStartPre=/usr/bin/nginx -t -q -g 'pid /run/nginx.pid; daemon on; master_process on;' -ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid; daemon on; master_process on;' -ExecReload=/usr/bin/nginx -g 'pid /run/nginx.pid; daemon on; master_process on;' -s reload -ExecStop=/usr/bin/nginx -g 'pid /run/nginx.pid;' -s quit +PrivateDevices=yes +SyslogLevel=err + +ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid; error_log stderr;' +ExecReload=/usr/bin/nginx -s reload +KillSignal=SIGQUIT +KillMode=mixed [Install] WantedBy=multi-user.target