17 lines
560 B
Plaintext
17 lines
560 B
Plaintext
# Reference: https://www.nginx.com/resources/wiki/extending/new_config/.
|
|
|
|
ngx_module_type=HTTP
|
|
ngx_module_name=ngx_ipscrub_module
|
|
ngx_module_deps="$ngx_addon_dir/src/ngx_ipscrub_support.h $ngx_addon_dir/src/ngx_ipscrub_debug.h"
|
|
ngx_module_srcs="$ngx_addon_dir/src/ngx_ipscrub_module.c $ngx_addon_dir/src/ngx_ipscrub_support.c $ngx_addon_dir/src/ngx_ipscrub_debug.c"
|
|
|
|
# On Linux, link with libbsd, to get arc4random.
|
|
if [ `uname` = Linux ]; then
|
|
ngx_module_libs="SHA1 -lbsd"
|
|
else
|
|
ngx_module_libs="SHA1"
|
|
fi
|
|
|
|
. auto/module
|
|
|
|
ngx_addon_name=$ngx_module_name |