abinfo "Configuring Angie ..."
mkdir -pv "$PKGDIR"/var/lib/angie/client-body
"$SRCDIR"/configure \
    --prefix=/etc/angie \
    --conf-path=/etc/angie/angie.conf \
    --sbin-path=/usr/bin/angie \
    --pid-path=/run/angie.pid \
    --lock-path=/run/lock/angie.lock \
    --user=http \
    --group=http \
    --http-log-path=/var/log/angie/access.log \
    --error-log-path=/var/log/angie/error.log \
    --http-client-body-temp-path=/var/lib/angie/client-body \
    --http-proxy-temp-path=/var/lib/angie/proxy_temp \
    --http-fastcgi-temp-path=/var/lib/angie/fastcgi_temp \
    --http-scgi-temp-path=/var/lib/angie/scgi_temp \
    --http-uwsgi-temp-path=/var/lib/angie/uwsgi_temp \
    --with-compat \
    --with-debug \
    --with-http_acme_module \
    --with-http_addition_module \
    --with-http_auth_request_module \
    --with-http_dav_module \
    --with-http_flv_module \
    --with-http_gunzip_module \
    --with-http_gzip_static_module \
    --with-http_mp4_module \
    --with-http_random_index_module \
    --with-http_realip_module \
    --with-http_secure_link_module \
    --with-http_slice_module \
    --with-http_ssl_module \
    --with-http_stub_status_module \
    --with-http_sub_module \
    --with-http_v2_module \
    --with-http_v3_module `#angie` \
    --with-mail \
    --with-mail_ssl_module \
    --with-stream \
    --with-stream_mqtt_preread_module \
    --with-stream_rdp_preread_module \
    --with-stream_realip_module \
    --with-stream_ssl_module \
    --with-stream_ssl_preread_module \
    --with-threads 

abinfo "Building Angie ..."
make

abinfo "Installing Angie ..."
make install \
    DESTDIR="$PKGDIR"
