|
|
@ -86,6 +86,19 @@ var_append CC_WRAPPER_REMOVE " " "-Werror" |
|
|
|
# 3rd party addon modules |
|
|
|
# 3rd party addon modules |
|
|
|
# |
|
|
|
# |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# generic function to patch 3rd party addon modules |
|
|
|
|
|
|
|
# patches have to be named $modulename*.diff where |
|
|
|
|
|
|
|
# $modulename is the name used as parameter while |
|
|
|
|
|
|
|
# calling pkg_nginx_add_module() |
|
|
|
|
|
|
|
# |
|
|
|
|
|
|
|
pkg_nginx_patch_module() { |
|
|
|
|
|
|
|
pushd ../addon-module/$1 |
|
|
|
|
|
|
|
for p in $( ls -1 $confdir/$1*.diff 2>/dev/null ); do |
|
|
|
|
|
|
|
patch -p1 < "$p" |
|
|
|
|
|
|
|
done |
|
|
|
|
|
|
|
popd |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# generic function to add a 3rd party addon module |
|
|
|
# generic function to add a 3rd party addon module |
|
|
|
# function parameters: |
|
|
|
# function parameters: |
|
|
|
# $1: pattern of the modules source file name |
|
|
|
# $1: pattern of the modules source file name |
|
|
@ -94,6 +107,7 @@ pkg_nginx_add_module() { |
|
|
|
mkdir -p $builddir/addon-module/$1 |
|
|
|
mkdir -p $builddir/addon-module/$1 |
|
|
|
tar -v $taropt $( match_source_file -p $1 nginx ) --strip-components=1 -C $builddir/addon-module/$1 |
|
|
|
tar -v $taropt $( match_source_file -p $1 nginx ) --strip-components=1 -C $builddir/addon-module/$1 |
|
|
|
var_append confopt ' ' "--add-module=../addon-module/$1" |
|
|
|
var_append confopt ' ' "--add-module=../addon-module/$1" |
|
|
|
|
|
|
|
hook_add postpatch 5 "pkg_nginx_patch_module $1" |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
# rrd graph module |
|
|
|
# rrd graph module |
|
|
|