-
Notifications
You must be signed in to change notification settings - Fork 30
/
Copy pathconfig
73 lines (62 loc) · 2.17 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
ngx_addon_name=ngx_http_sysguard_module
HTTP_SYSGUARD_SRCS=" \
$ngx_addon_dir/src/ngx_http_sysguard_module.c \
$ngx_addon_dir/src/ngx_http_sysguard_sysinfo.c \
$ngx_addon_dir/src/ngx_http_sysguard_node.c \
$ngx_addon_dir/src/ngx_http_sysguard_variables.c \
"
HTTP_SYSGUARD_DEPS=" \
$ngx_addon_dir/src/ngx_http_sysguard_module.h \
$ngx_addon_dir/src/ngx_http_sysguard_sysinfo.h \
$ngx_addon_dir/src/ngx_http_sysguard_node.h \
$ngx_addon_dir/src/ngx_http_sysguard_variables.h \
"
if test -n "$ngx_module_link"; then
ngx_module_type=HTTP
ngx_module_name=$ngx_addon_name
ngx_module_srcs="$HTTP_SYSGUARD_SRCS"
ngx_module_deps="$HTTP_SYSGUARD_DEPS"
. auto/module
else
HTTP_MODULES="$HTTP_MODULES $ngx_addon_name"
NGX_ADDON_SRCS="$NGX_ADDON_SRCS $HTTP_SYSGUARD_SRCS"
NGX_ADDON_DEPS="$NGX_ADDON_DEPS $HTTP_SYSGUARD_DEPS"
fi
ngx_feature="sysinfo()"
ngx_feature_name="NGX_HAVE_SYSINFO"
ngx_feature_run=no
ngx_feature_incs="#include <sys/sysinfo.h>"
ngx_feature_path=
ngx_feature_libs=
ngx_feature_test="struct sysinfo s;
sysinfo(&s);"
. auto/feature
ngx_feature="getloadavg()"
ngx_feature_name="NGX_HAVE_GETLOADAVG"
ngx_feature_run=no
ngx_feature_incs="#include <stdlib.h>"
ngx_feature_path=
ngx_feature_libs=
ngx_feature_test="double loadavg[1];
getloadavg(loadavg, 1);"
. auto/feature
ngx_feature="/proc/meminfo"
ngx_feature_name="NGX_HAVE_PROC_MEMINFO"
ngx_feature_run=yes
ngx_feature_incs="#include <fcntl.h>"
ngx_feature_path=
ngx_feature_libs=
ngx_feature_test='int fd;
if (open("/proc/meminfo", O_RDONLY) == -1) return 1;'
. auto/feature
ngx_feature="vm.stats"
ngx_feature_name="NGX_HAVE_VM_STATS"
ngx_feature_run=yes
ngx_feature_incs="#include <sys/sysctl.h>"
ngx_feature_path=
ngx_feature_libs=
ngx_feature_test='size_t vl;
size_t sz = sizeof(vl);
if (sysctlbyname("vm.stats.vm.v_free_count", &vl, &sz, NULL, 0) == -1) return 1;'
. auto/feature
# vi:set ft=sh ts=4 sw=4 et fdm=marker: