mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2024-11-28 22:57:37 +00:00
extra/nginx-mainline to 1.12.0-1
This commit is contained in:
parent
cf4f959530
commit
e4eb755bf3
3 changed files with 20 additions and 18 deletions
|
@ -7,7 +7,7 @@
|
||||||
# - build armv7h and aarch64 with -fPIC
|
# - build armv7h and aarch64 with -fPIC
|
||||||
|
|
||||||
pkgname=nginx-mainline
|
pkgname=nginx-mainline
|
||||||
pkgver=1.11.10
|
pkgver=1.12.0
|
||||||
pkgrel=1
|
pkgrel=1
|
||||||
pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server, mainline release'
|
pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server, mainline release'
|
||||||
arch=('i686' 'x86_64')
|
arch=('i686' 'x86_64')
|
||||||
|
@ -32,13 +32,13 @@ source=($url/download/nginx-$pkgver.tar.gz{,.asc}
|
||||||
service
|
service
|
||||||
logrotate)
|
logrotate)
|
||||||
validpgpkeys=('B0F4253373F8F6F510D42178520A9993A1C052F8') # Maxim Dounin <mdounin@mdounin.ru>
|
validpgpkeys=('B0F4253373F8F6F510D42178520A9993A1C052F8') # Maxim Dounin <mdounin@mdounin.ru>
|
||||||
md5sums=('6fb10f579055d27a2240d51c7d85c190'
|
md5sums=('995eb0a140455cf0cfc497e5bd7f94b3'
|
||||||
'SKIP'
|
'SKIP'
|
||||||
'ce9a06bcaf66ec4a3c4eb59b636e0dfd'
|
'09862c34cd9593bc40da81f88c5fc4b2'
|
||||||
'd6a6d4d819f03a675bacdfabd25aa37e')
|
'6a01fb17af86f03707c8ae60f98a2dc2')
|
||||||
|
|
||||||
_common_flags=(
|
_common_flags=(
|
||||||
--with-pcre-jit
|
--with-compat
|
||||||
--with-file-aio
|
--with-file-aio
|
||||||
--with-http_addition_module
|
--with-http_addition_module
|
||||||
--with-http_auth_request_module
|
--with-http_auth_request_module
|
||||||
|
@ -58,15 +58,16 @@ _common_flags=(
|
||||||
--with-http_v2_module
|
--with-http_v2_module
|
||||||
--with-mail
|
--with-mail
|
||||||
--with-mail_ssl_module
|
--with-mail_ssl_module
|
||||||
|
--with-pcre-jit
|
||||||
--with-stream
|
--with-stream
|
||||||
|
--with-stream_geoip_module
|
||||||
|
--with-stream_realip_module
|
||||||
--with-stream_ssl_module
|
--with-stream_ssl_module
|
||||||
|
--with-stream_ssl_preread_module
|
||||||
--with-threads
|
--with-threads
|
||||||
)
|
)
|
||||||
|
|
||||||
_mainline_flags=(
|
_mainline_flags=(
|
||||||
--with-stream_ssl_preread_module
|
|
||||||
--with-stream_geoip_module
|
|
||||||
--with-stream_realip_module
|
|
||||||
)
|
)
|
||||||
|
|
||||||
build() {
|
build() {
|
||||||
|
@ -123,9 +124,7 @@ package() {
|
||||||
gzip -9c man/nginx.8 > "$pkgdir"/usr/share/man/man8/nginx.8.gz
|
gzip -9c man/nginx.8 > "$pkgdir"/usr/share/man/man8/nginx.8.gz
|
||||||
|
|
||||||
for i in ftdetect indent syntax; do
|
for i in ftdetect indent syntax; do
|
||||||
install -Dm644 contrib/vim/${i}/nginx.vim \
|
install -Dm644 contrib/vim/$i/nginx.vim \
|
||||||
"${pkgdir}/usr/share/vim/vimfiles/${i}/nginx.vim"
|
"$pkgdir/usr/share/vim/vimfiles/$i/nginx.vim"
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
# vim:set ts=2 sw=2 et:
|
|
||||||
|
|
|
@ -5,6 +5,6 @@
|
||||||
sharedscripts
|
sharedscripts
|
||||||
compress
|
compress
|
||||||
postrotate
|
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
|
endscript
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,14 +1,17 @@
|
||||||
[Unit]
|
[Unit]
|
||||||
Description=A high performance web server and a reverse proxy server
|
Description=A high performance web server and a reverse proxy server
|
||||||
After=syslog.target network.target
|
After=network.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=forking
|
Type=forking
|
||||||
PIDFile=/run/nginx.pid
|
PIDFile=/run/nginx.pid
|
||||||
ExecStartPre=/usr/bin/nginx -t -q -g 'pid /run/nginx.pid; daemon on; master_process on;'
|
PrivateDevices=yes
|
||||||
ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid; daemon on; master_process on;'
|
SyslogLevel=err
|
||||||
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
|
ExecStart=/usr/bin/nginx -g 'pid /run/nginx.pid; error_log stderr;'
|
||||||
|
ExecReload=/usr/bin/nginx -s reload
|
||||||
|
KillSignal=SIGQUIT
|
||||||
|
KillMode=mixed
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=multi-user.target
|
WantedBy=multi-user.target
|
||||||
|
|
Loading…
Reference in a new issue