milis/talimatname/genel/n/nginx-mod-nchan/talimat

27 lines
647 B
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

# Tanım: nchan nginx module
# URL: https://nchan.io/
# Paketçi: milisarge
# Gerekler: nginx
# Grup:
isim=nginx-mod-nchan
surum=1.1.13
devir=1
ngsurum=1.13.7
kaynak=(http://nginx.org/download/nginx-$ngsurum.tar.gz
https://github.com/slact/nchan/archive/v${surum}.tar.gz::$isim-$surum.tar.gz)
derle() {
cd "$SRC"/nginx-$ngsurum
_module_dir="$SRC"/nchan-$surum
./configure --with-compat \
--with-cc-opt="$CFLAGS $CPPFLAGS" \
--with-ld-opt="$LDFLAGS" \
--add-dynamic-module=${_module_dir}
make modules
cd "$SRC"/nginx-$ngsurum/objs
for _mod in ngx_nchan_module.so; do
install -Dm755 $_mod "$PKG"/usr/lib/nginx/modules/$_mod
done
}