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

27 lines
647 B
Plaintext
Raw Normal View History

2018-06-09 00:06:58 +02:00
# 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
}