# Contributor: Kiyoshi Aman # Maintainer: Kiyoshi Aman pkgname=nginx pkgver=1.14.2 pkgrel=0 pkgdesc="High-performance HTTP server" url="https://nginx.org" arch="all" options="!check" # No test suite license="BSD-2-Clause" depends="" depends_dev="" makedepends="geoip-dev libgd-dev libxml2-dev libxslt-dev openssl-dev pcre-dev" install="nginx.pre-install" pkgusers="nginx" pkggroups="nginx" subpackages="$pkgname-openrc" source="http://nginx.org/download/nginx-$pkgver.tar.gz nginx.initd nginx.conf" build() { cd "$builddir" ./configure \ --build=$CBUILD \ --prefix=/usr \ --modules-path=/usr/libexec/nginx \ --conf-path=/etc/nginx/ \ --pid-path=/run/nginx \ --lock-path=/run/nginx \ --user=nginx \ --group=nginx \ --with-poll_module \ --with-threads \ --with-file-aio \ --with-http_ssl_module \ --with-http_v2_module \ --with-http_realip_module \ --with-http_xslt_module=dynamic \ --with-http_image_filter_module=dynamic \ --with-http_geoip_module=dynamic \ --with-http_dav_module \ --with-http_gunzip_module \ --with-http_auth_request_module \ --with-http_secure_link_module \ --with-http_slice_module \ --with-stream=dynamic \ --with-stream_ssl_module \ --with-stream_realip_module \ --with-stream_geoip_module=dynamic \ --with-stream_ssl_preread_module \ --without-http_ssi_module make } package() { cd "$builddir" mkdir -p "$pkgdir"/usr/sbin install -Dm755 objs/nginx "$pkgdir"/usr/sbin/nginx mkdir -p "$pkgdir"/etc/init.d install -Dm755 "$srcdir"/nginx.initd "$pkgdir"/etc/init.d/nginx mkdir -p "$pkgdir"/etc/nginx for i in koi-win koi-utf win-utf mime.types; do install -Dm644 conf/$i "$pkgdir"/etc/nginx done install -Dm644 "$srcdir"/nginx.conf "$pkgdir"/etc/nginx mkdir -p "$pkgdir"/etc/nginx/conf.d for i in fastcgi scgi uwsgi; do install -Dm644 conf/${i}_params "$pkgdir"/etc/nginx/conf.d/"$i".conf done mkdir -p "$pkgdir"/usr/libexec/nginx for i in objs/ngx_*_module.so; do install -Dm755 "$i" "$pkgdir"/usr/libexec/nginx done mkdir -p "$pkgdir"/var/www/nginx/localhost for i in html/*.html; do install -Dm644 "$i" "$pkgdir"/var/www/nginx/localhost done } sha512sums="d8362dbd86435657d6b13156bd6ad1b251d2ab10bc11cdda959b142dd6120b087e4b314f0025d9bbcc88529cb4b9407fb4df1cfae5d081b7ea1db51ccfc2dbe7 nginx-1.14.2.tar.gz eb183860cd511361346e4079c1fcf470985e1c3b2a034a57f8b2a92ba851fed99256261f9b779770a5f57e3750e9e71bd1550a9d19ad9bf3a4d288864f0374a2 nginx.initd efedf75dbea497148e21515d8c8fda73d6af886418c2b777b5d38b3b21a929052009813b6cab122be5dc60af9b5ba948bb4e81a03f15322dd42418d7a3b64f69 nginx.conf"