forked from kaltura/nginx-aggr-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig
112 lines (96 loc) · 4.87 KB
/
config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
ngx_addon_name=ngx_aggr_module
ngx_module_libs=
# sources
#
AGGR_CORE_DEPS="$ngx_addon_dir/src/ngx_aggr.h \
$ngx_addon_dir/src/ngx_aggr_config.h \
$ngx_addon_dir/src/ngx_aggr_filter.h \
$ngx_addon_dir/src/ngx_aggr_map.h \
$ngx_addon_dir/src/ngx_aggr_map_ip2l.h \
$ngx_addon_dir/src/ngx_aggr_output.h \
$ngx_addon_dir/src/ngx_aggr_query.h \
$ngx_addon_dir/src/ngx_aggr_result.h \
$ngx_addon_dir/src/ngx_aggr_script.h \
$ngx_addon_dir/src/ngx_aggr_variables.h \
$ngx_addon_dir/src/ngx_aggr_window.h \
$ngx_addon_dir/src/ngx_dgram.h \
$ngx_addon_dir/src/ngx_dgram_script.h \
$ngx_addon_dir/src/ngx_dgram_variables.h \
$ngx_addon_dir/src/ngx_ip2l.h \
$ngx_addon_dir/src/ngx_json_parser.h \
$ngx_addon_dir/src/ngx_rate_limit.h \
$ngx_addon_dir/src/ngx_str_table.h \
"
AGGR_CORE_SRCS="$ngx_addon_dir/src/ngx_aggr.c \
$ngx_addon_dir/src/ngx_aggr_map.c \
$ngx_addon_dir/src/ngx_aggr_map_ip2l.c \
$ngx_addon_dir/src/ngx_aggr_map_metric.c \
$ngx_addon_dir/src/ngx_aggr_filter.c \
$ngx_addon_dir/src/ngx_aggr_output.c \
$ngx_addon_dir/src/ngx_aggr_query.c \
$ngx_addon_dir/src/ngx_aggr_result.c \
$ngx_addon_dir/src/ngx_aggr_script.c \
$ngx_addon_dir/src/ngx_aggr_variables.c \
$ngx_addon_dir/src/ngx_aggr_window.c \
$ngx_addon_dir/src/ngx_dgram.c \
$ngx_addon_dir/src/ngx_dgram_aggr_module.c \
$ngx_addon_dir/src/ngx_dgram_core_module.c \
$ngx_addon_dir/src/ngx_dgram_script.c \
$ngx_addon_dir/src/ngx_dgram_variables.c \
$ngx_addon_dir/src/ngx_ip2l.c \
$ngx_addon_dir/src/ngx_json_parser.c \
$ngx_addon_dir/src/ngx_str_table.c \
"
AGGR_CORE_MODS="ngx_ip2l_module \
ngx_aggr_module \
ngx_aggr_output_module \
ngx_aggr_filter_module \
ngx_aggr_map_ip2l_module \
ngx_aggr_map_module \
ngx_aggr_map_metric_module \
ngx_aggr_query_module \
ngx_dgram_module \
ngx_dgram_core_module \
ngx_dgram_aggr_module \
"
AGGR_HTTP_DEPS=
AGGR_HTTP_SRCS="$ngx_addon_dir/src/ngx_http_aggr_module.c \
$ngx_addon_dir/src/ngx_http_aggr_input_module.c \
"
AGGR_HTTP_MODS="ngx_http_aggr_module \
ngx_http_aggr_input_module \
"
# rdkafka
#
ngx_feature="librdkafka"
ngx_feature_name="NGX_HAVE_LIBRDKAFKA"
ngx_feature_run=no
ngx_feature_incs="#include <librdkafka/rdkafka.h>"
ngx_feature_path=
ngx_feature_libs="-lrdkafka"
ngx_feature_test="rd_kafka_new(RD_KAFKA_PRODUCER, NULL, NULL, 0);"
. auto/feature
if [ $ngx_found = yes ]; then
ngx_module_libs="$ngx_module_libs $ngx_feature_libs"
AGGR_CORE_DEPS="$AGGR_CORE_DEPS $ngx_addon_dir/src/ngx_kafka_producer.h"
AGGR_CORE_SRCS="$AGGR_CORE_SRCS $ngx_addon_dir/src/ngx_kafka_producer.c"
AGGR_CORE_MODS="$AGGR_CORE_MODS ngx_kafka_producer_module"
fi
if [ -n "$ngx_module_link" ]; then
ngx_module_type=CORE
ngx_module_name="$AGGR_CORE_MODS"
ngx_module_deps="$AGGR_CORE_DEPS"
ngx_module_srcs="$AGGR_CORE_SRCS"
. auto/module
ngx_module_type=HTTP
ngx_module_name="$AGGR_HTTP_MODS"
ngx_module_deps="$AGGR_HTTP_DEPS"
ngx_module_srcs="$AGGR_HTTP_SRCS"
. auto/module
else
CORE_MODULES="$CORE_MODULES $AGGR_CORE_MODS"
HTTP_MODULES="$HTTP_MODULES $AGGR_HTTP_MODS"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $AGGR_CORE_DEPS $AGGR_HTTP_DEPS"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $AGGR_CORE_SRCS $AGGR_HTTP_SRCS"
CORE_LIBS="$CORE_LIBS $ngx_module_libs"
fi