# Maintainer: Bartłomiej Piotrowski # Maintainer: Sébastien Luttringer # Contributor: Sergej Pupykin # Contributor: Miroslaw Szot # Contributor: Daniel Micay pkgname=nginx pkgver=1.10.0 pkgrel=2 pkgdesc='Lightweight HTTP server and IMAP/POP3 proxy server' 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' 'usr/share/nginx/html/index.html') install=nginx.install source=($url/download/nginx-$pkgver.tar.gz{,.asc} service logrotate) sha256sums=('8ed647c3dd65bc4ced03b0e0f6bf9e633eff6b01bac772bcf97077d58bc2be4d' 'SKIP' '4ecbc33ce4bf2965996f51b0c7edb677904ba5cff9a32e93e1487a428d3a751b' '2613986dd5faab09ca962264f16841c8c55c3a0bc7a5bb737eabd83143090878') validpgpkeys=( '573BFD6B3D8FBC641079A6ABABF5BD827BD9BF62' # $url/keys/nginx_signing.key 'A09CD539B8BB8CBE96E82BDFABD4D3B3F5806B4D' # $url/keys/aalexeev.key '6E067260B83DCF2CA93C566F518509686C7E5E82' # $url/keys/glebius.key 'B0F4253373F8F6F510D42178520A9993A1C052F8' # $url/keys/mdounin.key '7338973069ED3F443F4D37DFA64FD5B17ADB39A8' # $url/keys/sb.key # The following keys are commented out because they are 1024-bit and thus insecure. # '4C2C85E705DC730833990C38A9376139A524C53E' # $url/keys/is.key # '65506C02EFC250F1B7A3D694ECF0E90B2C172083' # $url/keys/maxim.key ) _common_flags=( --with-ipv6 --with-pcre-jit --with-file-aio --with-http_addition_module --with-http_auth_request_module --with-http_dav_module --with-http_degradation_module --with-http_flv_module --with-http_geoip_module --with-http_gunzip_module --with-http_gzip_static_module --with-http_mp4_module --with-http_realip_module --with-http_secure_link_module --with-http_ssl_module --with-http_stub_status_module --with-http_sub_module --with-http_v2_module --with-mail --with-mail_ssl_module --with-stream --with-stream_ssl_module --with-threads ) _stable_flags=( ) build() { cd $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 \ ${_common_flags[@]} \ ${_stable_flags[@]} make } package() { cd $pkgname-$pkgver make DESTDIR="$pkgdir" install sed -e 's|\ "$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" done } # vim:set ts=2 sw=2 et: