# Based on community/nginx # Maintainer: Firegore pkgname=nginx-mainline-waf _pkgname=nginx provides=('nginx') conflicts=('nginx') pkgver=1.13.5 pkgrel=1 pkgdesc='Lightweight HTTP1/2 server, mainline, with Naxsi, Certificate Transparency and GeoIP (GeoIP Legacy) Support.' arch=('i686' 'x86_64') url='http://nginx.org' license=('custom') depends=('pcre' 'zlib' 'openssl' 'geoip') backup=('etc/nginx/fastcgi.conf' 'etc/nginx/fastcgi_params' 'etc/nginx/koi-win' 'etc/nginx/koi-utf' 'etc/nginx/mime.types' 'etc/nginx/nginx.conf' 'etc/nginx/scgi_params' 'etc/nginx/uwsgi_params' 'etc/nginx/win-utf' 'etc/logrotate.d/nginx') install=nginx.install source=($url/download/nginx-$pkgver.tar.gz git+https://github.com/nbs-system/naxsi.git #git+https://github.com/google/ngx_brotli.git #git+https://github.com/aperezdc/ngx-fancyindex.git git+https://github.com/openresty/headers-more-nginx-module.git git+https://github.com/grahamedgecombe/nginx-ct.git service logrotate) build() { cd "$srcdir"/$_pkgname-$pkgver ./configure \ --prefix=/etc/nginx \ --conf-path=/etc/nginx/nginx.conf \ --sbin-path=/usr/bin/nginx \ --pid-path=/run/nginx.pid \ --lock-path=/run/lock/nginx.lock \ --user=http \ --group=http \ --http-log-path=/var/log/nginx/access.log \ --error-log-path=stderr \ --http-client-body-temp-path=/var/lib/nginx/client-body \ --http-proxy-temp-path=/var/lib/nginx/proxy \ --http-fastcgi-temp-path=/var/lib/nginx/fastcgi \ --http-scgi-temp-path=/var/lib/nginx/scgi \ --http-uwsgi-temp-path=/var/lib/nginx/uwsgi \ --with-pcre-jit \ --with-file-aio \ --with-http_dav_module \ --with-http_gunzip_module \ --with-http_gzip_static_module \ --with-http_realip_module \ --with-http_v2_module \ --with-http_ssl_module \ --with-http_stub_status_module \ --with-http_addition_module \ --with-http_degradation_module \ --with-http_flv_module \ --with-http_mp4_module \ --with-http_secure_link_module \ --with-http_sub_module \ --with-http_geoip_module \ --with-stream \ --with-stream_ssl_module \ --with-threads \ --with-compat \ --add-module=../naxsi/naxsi_src \ --add-module=../headers-more-nginx-module \ --add-module=../nginx-ct make } package() { cd "$srcdir"/$_pkgname-$pkgver make DESTDIR="$pkgdir" install sed -e 's|\