2018-03-31 02:47:17 +02:00
|
|
|
# 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"
|
2018-05-28 04:19:09 +02:00
|
|
|
|
|
|
|
# On Linux, link with libbsd, to get arc4random.
|
|
|
|
if [ `uname` = Linux ]; then
|
|
|
|
ngx_module_libs="SHA1 -lbsd"
|
|
|
|
else
|
|
|
|
ngx_module_libs="SHA1"
|
|
|
|
fi
|
2018-03-31 02:47:17 +02:00
|
|
|
|
|
|
|
. auto/module
|
|
|
|
|
|
|
|
ngx_addon_name=$ngx_module_name
|