# Template file for 'nginx' pkgname=nginx version=1.6.1 revision=1 makedepends="pcre-devel>=8.30 libressl-devel" if [ "$CROSS_BUILD" ]; then # fake configure run on host hostmakedepends=$makedepends fi conf_files=" /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" system_accounts="nginx" nginx_homedir="/var/tmp/nginx" make_dirs=" /var/log/nginx 0750 root root /var/tmp 1777 root root /var/tmp/nginx 0750 root root" short_desc="A high performance web and reverse proxy server" maintainer="Juan RP " license="Simplified BSD" homepage="http://nginx.org" distfiles="http://nginx.org/download/nginx-$version.tar.gz" checksum=f5cfe682a1aeef4602c2ca705402d5049b748f946563f41d8256c18674836067 build_options="systemd" if [ "$build_option_systemd" ]; then systemd_services="nginx.service on" fi do_configure() { local cfgdir=/etc/nginx local tmpdir=/var/tmp/nginx if [ "$CROSS_BUILD" ]; then unset CC CPP LD CFLAGS CPPFLAGS LDFLAGS fi ./configure --prefix=${cfgdir} \ --conf-path=${cfgdir}/nginx.conf \ --sbin-path=/usr/sbin/nginx \ --pid-path=/run/nginx.pid \ --lock-path=/var/lock/nginx.lock \ --user=nginx --group=nginx \ --http-log-path=/var/log/nginx/access.log \ --error-log-path=/var/log/nginx/error.log \ --http-client-body-temp-path=${tmpdir}/client-body \ --http-proxy-temp-path=${tmpdir}/proxy \ --http-fastcgi-temp-path=${tmpdir}/fastcgi \ --http-scgi-temp-path=${tmpdir}/scgi \ --http-uwsgi-temp-path=${tmpdir}/uwsgi \ --with-imap --with-imap_ssl_module \ --with-ipv6 --with-pcre-jit \ --with-file-aio \ --with-http_gunzip_module \ --with-http_spdy_module \ --with-http_dav_module \ --with-http_gzip_static_module \ --with-http_realip_module \ --with-http_ssl_module \ --with-http_stub_status_module if [ "$CROSS_BUILD" ]; then case "$XBPS_TARGET_MACHINE" in arm*) cp ${FILESDIR}/ngx_auto_config.h.armv6l objs/ngx_auto_config.h;; esac fi } do_build() { make ${makejobs} CC="${CC}" LD="${LD}" CFLAGS="${CFLAGS}" LDFLAGS="${LDFLAGS}" } do_install() { make DESTDIR=$DESTDIR install sed -e 's|\