# Maintainer: Joshua Small _pkgname="nginx" _user="http" _group="http" _doc_root="/usr/share/${_pkgname}/http" _sysconf_path="etc" _conf_path="${_sysconf_path}/${_pkgname}" _tmp_path="/var/spool/${_pkgname}" _pid_path="/run" _lock_path="/var/lock" _log_path="/var/log/${_pkgname}" pkgname=nginx-libressl pkgver=1.18.0 pkgrel=2 librever=3.1.3 pkgdesc="lightweight HTTP server, statically linked against LibreSSL." arch=('i686' 'x86_64') depends=('pcre' 'zlib' 'pam' 'gd' 'libxslt') makedepends=( 'libxslt' 'gd' 'git') url="http://nginx.org" license=('custom') conflicts=('nginx' 'nginx-unstable' 'nginx-svn' 'nginx-devel' 'nginx-custom-dev' 'nginx-full') provides=('nginx') backup=("${_conf_path}/nginx.conf" "${_conf_path}/koi-win" "${_conf_path}/koi-utf" "${_conf_path}/win-utf" "${_conf_path}/mime.types" "${_conf_path}/fastcgi.conf" "${_conf_path}/fastcgi_params" "${_conf_path}/scgi_params" "${_conf_path}/uwsgi_params" "etc/logrotate.d/nginx") source=( "nginx.conf" "nginx.logrotate" "nginx.service" "http://nginx.org/download/nginx-$pkgver.tar.gz" "http://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-$librever.tar.gz" ) build() { local _src_dir="${srcdir}/${_pkgname}-${pkgver}" cd $_src_dir tar zxvf ../libressl-$librever.tar.gz ./configure \ --prefix="/${_conf_path}" \ --conf-path="/${_conf_path}/nginx.conf" \ --sbin-path="/usr/bin/${_pkgname}" \ --pid-path="${_pid_path}/${_pkgname}.pid" \ --lock-path=${_pid_path}/${_pkgname}.lock \ --http-client-body-temp-path=${_tmp_path}/client_body_temp \ --http-proxy-temp-path=${_tmp_path}/proxy_temp \ --http-fastcgi-temp-path=${_tmp_path}/fastcgi_temp \ --http-uwsgi-temp-path=${_tmp_path}/uwsgi_temp \ --http-scgi-temp-path=${_tmp_path}scgi_temp \ --http-log-path=${_log_path}/access.log \ --error-log-path=${_log_path}/error.log \ --user=${_user} \ --group=${_group} \ --with-openssl=./libressl-$librever \ --with-threads \ --with-http_ssl_module \ --with-http_v2_module \ --with-http_gzip_static_module \ --with-http_realip_module make } package() { cd "${srcdir}/${_pkgname}-${pkgver}" make DESTDIR="$pkgdir/" install sed -i -e "s/\