Merge changes from ABS
This commit is contained in:
parent
7f0aaea547
commit
85399eaf83
27
PKGBUILD
27
PKGBUILD
@ -1,12 +1,12 @@
|
|||||||
# $Id: PKGBUILD 286484 2017-01-15 13:03:24Z bpiotrowski $
|
# $Id: PKGBUILD 292654 2017-04-13 06:50:26Z bpiotrowski $
|
||||||
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
# Maintainer: Bartłomiej Piotrowski <bpiotrowski@archlinux.org>
|
||||||
# Contributor: Sébastien Luttringer
|
# Contributor: Sébastien Luttringer
|
||||||
# Contributor: Drew DeVault
|
# Contributor: Drew DeVault
|
||||||
# Contributor: Arti Zirk <arti.zirk@gmail.com>
|
# Contributor: Arti Zirk <arti.zirk@gmail.com>
|
||||||
|
|
||||||
pkgname=nginx-ilves
|
pkgname=nginx-ilves
|
||||||
pkgver=1.11.10
|
pkgver=1.12.0
|
||||||
pkgrel=2
|
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')
|
||||||
url='https://nginx.org'
|
url='https://nginx.org'
|
||||||
@ -34,17 +34,17 @@ source=($url/download/nginx-$pkgver.tar.gz{,.asc}
|
|||||||
ngx_fancyindex.tar.gz::https://github.com/aperezdc/ngx-fancyindex/archive/v0.4.1.tar.gz
|
ngx_fancyindex.tar.gz::https://github.com/aperezdc/ngx-fancyindex/archive/v0.4.1.tar.gz
|
||||||
ngx_headers_more.tar.gz::https://github.com/openresty/headers-more-nginx-module/archive/v0.32.tar.gz)
|
ngx_headers_more.tar.gz::https://github.com/openresty/headers-more-nginx-module/archive/v0.32.tar.gz)
|
||||||
validpgpkeys=('B0F4253373F8F6F510D42178520A9993A1C052F8') # Maxim Dounin <mdounin@mdounin.ru>
|
validpgpkeys=('B0F4253373F8F6F510D42178520A9993A1C052F8') # Maxim Dounin <mdounin@mdounin.ru>
|
||||||
md5sums=('6fb10f579055d27a2240d51c7d85c190'
|
md5sums=('995eb0a140455cf0cfc497e5bd7f94b3'
|
||||||
'SKIP'
|
'SKIP'
|
||||||
'ce9a06bcaf66ec4a3c4eb59b636e0dfd'
|
'09862c34cd9593bc40da81f88c5fc4b2'
|
||||||
'd6a6d4d819f03a675bacdfabd25aa37e'
|
'6a01fb17af86f03707c8ae60f98a2dc2'
|
||||||
'2cb502dbda335be4ebd5fed0b3182bae'
|
'2cb502dbda335be4ebd5fed0b3182bae'
|
||||||
'16c5dbad002ae88eadb66aa1a13389c2'
|
'16c5dbad002ae88eadb66aa1a13389c2'
|
||||||
'e1dd79f0ec82415bbf8a1cb938988955'
|
'e1dd79f0ec82415bbf8a1cb938988955'
|
||||||
'5ce112f12afe155749e2c504997861f7')
|
'5ce112f12afe155749e2c504997861f7')
|
||||||
|
|
||||||
_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
|
||||||
@ -64,15 +64,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() {
|
||||||
@ -138,9 +139,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
|
||||||
}
|
}
|
||||||
|
@ -2,4 +2,11 @@ post_upgrade() {
|
|||||||
if (( $(vercmp $2 1.11.8-2) < 0)); then
|
if (( $(vercmp $2 1.11.8-2) < 0)); then
|
||||||
chown root:root var/log/nginx
|
chown root:root var/log/nginx
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
if (( $(vercmp $2 1.11.9-2) < 0 )); then
|
||||||
|
chmod 755 var/log/nginx
|
||||||
|
echo ':: Security notice:'
|
||||||
|
echo ' - When additional log directories are used in /var/log/nginx make sure they'
|
||||||
|
echo ' are owned by root:root and have 755 set as permission to mitigate CVE-2016-1247'
|
||||||
|
fi
|
||||||
}
|
}
|
||||||
|
13
service
13
service
@ -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 New Issue
Block a user