|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
|
|
|
|
# |
|
|
|
|
# Filename: package/.../nginx/nginx.conf |
|
|
|
|
# Copyright (C) 2009 - 2012 The OpenSDE Project |
|
|
|
|
# Copyright (C) 2009 - 2013 The OpenSDE Project |
|
|
|
|
# Copyright (C) 2006 The T2 SDE Project |
|
|
|
|
# |
|
|
|
|
# More information can be found in the files COPYING and README. |
|
|
|
@ -116,6 +116,18 @@ pkg_nginx_add_module() {
|
|
|
|
|
hook_add postpatch 5 "pkg_nginx_patch_module $1" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# NAXSI is a bit different than the other 3rd party modules |
|
|
|
|
# so it needs its own function |
|
|
|
|
# |
|
|
|
|
pkg_nginx_add_naxsi_premake() { |
|
|
|
|
mkdir -p $builddir/addon-module/naxsi-core |
|
|
|
|
tar -v $taropt $( match_source_file -p naxsi-core nginx ) --strip-components=1 -C $builddir/addon-module/naxsi-core |
|
|
|
|
var_append confopt ' ' "--add-module=../addon-module/naxsi-core/naxsi_src" |
|
|
|
|
} |
|
|
|
|
pkg_nginx_add_naxsi_postmake() { |
|
|
|
|
cp -a $builddir/addon-module/naxsi-core/naxsi_config/naxsi_core.rules $sysconfdir |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# rrd graph module |
|
|
|
|
if [ "$SDECFG_PKG_NGINX_ADDON_MOD_RRDGRAPH" == 1 ] ; then |
|
|
|
|
pkgprefix -t rrdtool |
|
|
|
@ -149,6 +161,11 @@ if [ "$SDECFG_PKG_NGINX_ADDON_MOD_LUA" == 1 ] ; then
|
|
|
|
|
hook_add prepatch 5 "pkg_nginx_add_module lua-nginx-module" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ "$SDECFG_PKG_NGINX_ADDON_NAXSI" == 1 ] ; then |
|
|
|
|
hook_add prepatch 5 "pkg_nginx_add_naxsi_premake" |
|
|
|
|
hook_add postmake 5 "pkg_nginx_add_naxsi_postmake" |
|
|
|
|
fi |
|
|
|
|
|
|
|
|
|
if [ "$SDECFG_PKG_NGINX_ADDON_SYSLOG_PATCH" == 1 ] ; then |
|
|
|
|
hook_add prepatch 5 "pkg_nginx_add_module nginx_syslog_patch" |
|
|
|
|
hook_add prepatch 9 "var_append patchfiles ' ' '../addon-module/nginx_syslog_patch/syslog_$( cut -d. -f-2 <<< $ver)*.patch'" |
|
|
|
|