nginx-mod-nchan.paketlendi

This commit is contained in:
milisbir 2017-12-11 06:07:51 +02:00
parent 90af4a8d42
commit d2463b16e0
2 changed files with 43 additions and 10 deletions

View File

@ -12,12 +12,15 @@ 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 --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
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
}

View File

@ -14,7 +14,7 @@ kaynak=(http://nginx.org//download/$isim-$surum.tar.gz
# change those if you prefer another setup
NGINXUSER=www
NGINXGROUP=www
HTMLDIR=/srv/http/nginx
HTMLDIR=/srv/http/html
# change those if you need those experimental modules
# (idea from slackbuilds.org)
@ -34,6 +34,25 @@ fi
#
derle() {
cd $isim-$surum
./configure \
--prefix=/etc/nginx \
--conf-path=/etc/nginx/nginx.conf \
--sbin-path=/usr/bin/nginx \
--pid-path=/run/nginx.pid \
--lock-path=/run/lock/nginx.lock \
--user=http \
--group=http \
--http-log-path=/var/log/nginx/access.log \
--error-log-path=stderr \
--http-client-body-temp-path=/var/lib/nginx/client-body \
--http-proxy-temp-path=/var/lib/nginx/proxy \
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-scgi-temp-path=/var/lib/nginx/scgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
--with-cc-opt="$CFLAGS $CPPFLAGS" \
--with-ld-opt="$LDFLAGS" \
./configure --prefix=/usr \
--sbin-path=/usr/sbin/nginx \
--conf-path=/etc/nginx/nginx.conf \
@ -48,8 +67,15 @@ derle() {
--http-fastcgi-temp-path=/var/lib/nginx/fastcgi \
--http-uwsgi-temp-path=/var/lib/nginx/uwsgi \
--http-scgi-temp-path=/var/lib/nginx/scgi \
--with-file-aio \
--with-compat \
--with-debug \
--with-file-aio \
--with-ipv6 \
--with-pcre-jit \
--with-stream \
--with-stream_ssl_module \
--with-stream_ssl_preread_module \
--with-threads \
--with-select_module \
--with-poll_module \
--with-http_ssl_module \
@ -66,10 +92,14 @@ derle() {
--with-http_secure_link_module \
--with-http_degradation_module \
--with-http_stub_status_module \
--with-http_sub_module \
--with-http_v2_module \
--with-http_perl_module \
--with-http_auth_request_module \
--with-mail \
--with-mail_ssl_module \
--with-cc-opt="$CFLAGS $CPPFLAGS" \
--with-ld-opt="$LDFLAGS" \
$SPDY_MOD \
$GEOIP_MOD