mirror of
https://github.com/archlinuxarm/PKGBUILDs.git
synced 2025-03-19 00:21:40 +00:00
extra/nginx to 1.12.0-1
This commit is contained in:
parent
e4eb755bf3
commit
1e6d639276
1 changed files with 12 additions and 9 deletions
|
@ -6,11 +6,11 @@
|
|||
# Contributor: Daniel Micay <danielmicay@gmail.com>
|
||||
|
||||
# ALARM: Kevin Mihelich <kevin@archlinuxarm.org>
|
||||
# - build with PIE to fix segfaults
|
||||
# - build armv7h and aarch64 with -fPIC
|
||||
|
||||
pkgname=nginx
|
||||
pkgver=1.10.3
|
||||
pkgrel=4
|
||||
pkgver=1.12.0
|
||||
pkgrel=1
|
||||
pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server'
|
||||
arch=('i686' 'x86_64')
|
||||
url='https://nginx.org'
|
||||
|
@ -31,13 +31,13 @@ source=($url/download/nginx-$pkgver.tar.gz{,.asc}
|
|||
service
|
||||
logrotate)
|
||||
validpgpkeys=('B0F4253373F8F6F510D42178520A9993A1C052F8') # Maxim Dounin <mdounin@mdounin.ru>
|
||||
md5sums=('204a20cb4f0b0c9db746c630d89ff4ea'
|
||||
md5sums=('995eb0a140455cf0cfc497e5bd7f94b3'
|
||||
'SKIP'
|
||||
'09862c34cd9593bc40da81f88c5fc4b2'
|
||||
'6a01fb17af86f03707c8ae60f98a2dc2')
|
||||
|
||||
_common_flags=(
|
||||
--with-pcre-jit
|
||||
--with-compat
|
||||
--with-file-aio
|
||||
--with-http_addition_module
|
||||
--with-http_auth_request_module
|
||||
|
@ -57,19 +57,22 @@ _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
|
||||
)
|
||||
|
||||
_stable_flags=(
|
||||
--with-ipv6
|
||||
)
|
||||
|
||||
build() {
|
||||
cd $pkgname-$pkgver
|
||||
|
||||
CFLAGS+=" -fPIE -pie" && CXXFLAGS+=" -fPIE -pie"
|
||||
[[ $CARCH == "armv7h" || $CARCH == "aarch64" ]] && CFLAGS+=" -fPIC" && CXXFLAGS+=" -fPIC"
|
||||
|
||||
./configure \
|
||||
--prefix=/etc/nginx \
|
||||
|
@ -122,8 +125,8 @@ 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
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue