# Tanım: Lua destekli Nginx
# Url: http://openresty.org
# Paketçi: milisarge
# Gerekler: perl pcre
# Grup: geliştirme

isim=openresty
surum=1.13.6.2
devir=1
kaynak=(https://openresty.org/download/$isim-$surum.tar.gz::$isim-$surum.tar.gz
		$isim.sh)

derle() {
	cd $isim-$surum
	./configure \
    --prefix=/opt/openresty \
    --conf-path=/opt/openresty/nginx/conf/nginx.conf \
    --user=nginx --group=nginx \
    --with-file-aio \
    --with-http_dav_module \
    --with-http_gzip_static_module \
    --with-http_realip_module \
    --with-http_ssl_module \
    --with-http_stub_status_module \
    --with-mail \
    --with-mail_ssl_module \
    --with-luajit \
    --with-pcre-jit \
    --with-http_v2_module \
    --with-stream \
    --with-stream_ssl_module \
    --with-http_iconv_module
	make
	make DESTDIR=$PKG install
	install -Dm755 $SRC/$isim.sh $PKG/etc/profile.d/$isim.sh
}

