main/nginx: upgrade to 1.2.2

- enable PCRE-JIT
- run workers as http user
parent db8a693e
# Maintainer: Cameron Banta <cbanta@gmail.com>
# Contributor: Jeff Bilyk <jbilyk@gmail.com>
# Contributor: Bartłomiej Piotrowski <nospam@bpiotrowski.pl>
pkgname=nginx
pkgver=1.0.15
pkgver=1.2.2
pkgrel=0
pkgdesc="lightweight HTTP and reverse proxy server"
url="http://www.nginx.org"
......@@ -22,6 +23,7 @@ prepare() {
patch -Np1 -i "$srcdir"/ipv6.patch
}
build() {
cd "$_builddir"
./configure --prefix=/usr \
......@@ -30,14 +32,14 @@ build() {
--lock-path=/var/run/$pkgname.lock \
--error-log-path=/var/log/$pkgname/error.log \
--http-log-path=/var/log/$pkgname/access.log \
--with-http_ssl_module \
--with-http_gzip_static_module \
--http-client-body-temp-path=/tmp/$pkgname/client-body \
--http-proxy-temp-path=/tmp/$pkgname/proxy \
--http-fastcgi-temp-path=/tmp/$pkgname/fastcgi \
--with-mail \
--with-mail_ssl_module \
--with-ipv6 \
--user=http --group=http \
--with-ipv6 --with-pcre-jit \
--with-http_ssl_module \
--with-http_gzip_static_module \
--with-mail --with-mail_ssl_module \
|| return 1
make || return 1
}
......@@ -52,7 +54,7 @@ package() {
install -m644 -D LICENSE "$pkgdir"/usr/share/licenses/$pkgname/LICENSE
}
md5sums="17da4802209b83d9bebb0f0edd975dfc nginx-1.0.15.tar.gz
md5sums="53105bbe3ac9319db54d9eb46119695b nginx-1.2.2.tar.gz
4faf8dff6ff1490edae1688baf1b2abb nginx.initd
8823274a834332d3db4f62bf7dd1fb7d nginx.logrotate
801a87f7f9d27f8ad85b41a78b4c4461 ipv6.patch"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment