2 # Copyright (C) 2015 Alon Bar-Lev <alon.barlev@gmail.com>
4 MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
7 -DVARLIB_DIR="\"$(varlibdir)\"" \
8 -DCACHE_DIR="\"$(cachedir)\"" \
9 -DCONFIG_DIR="\"$(configdir)\"" \
10 -DLOG_DIR="\"$(logdir)\"" \
11 -DPLUGINS_DIR="\"$(pluginsdir)\"" \
12 -DRUN_DIR="\"$(localstatedir)/run/netdata\"" \
13 -DWEB_DIR="\"$(webdir)\"" \
16 $(OPTIONAL_MATH_CFLAGS) \
17 $(OPTIONAL_NFACCT_CLFAGS) \
18 $(OPTIONAL_ZLIB_CFLAGS) \
19 $(OPTIONAL_UUID_CFLAGS) \
22 sbin_PROGRAMS = netdata
23 dist_cache_DATA = .keep
24 dist_varlib_DATA = .keep
25 dist_registry_DATA = .keep
28 plugins_PROGRAMS = apps.plugin
32 appconfig.c appconfig.h \
34 backends.c backends.h \
38 dictionary.c dictionary.h \
40 global_statistics.c global_statistics.h \
45 plugin_checks.c plugin_checks.h \
46 plugin_idlejitter.c plugin_idlejitter.h \
47 plugin_nfacct.c plugin_nfacct.h \
48 plugin_tc.c plugin_tc.h \
49 plugins_d.c plugins_d.h \
52 simple_pattern.c simple_pattern.h \
54 sys_devices_system_edac_mc.c \
55 sys_devices_system_node.c \
56 procfile.c procfile.h \
57 proc_self_mountinfo.c proc_self_mountinfo.h \
58 registry.c registry.h \
59 registry_internals.c registry_internals.h \
60 registry_url.c registry_url.h \
61 registry_person.c registry_person.h \
62 registry_machine.c registry_machine.h \
67 rrd2json.c rrd2json.h \
68 storage_number.c storage_number.h \
69 unit_test.c unit_test.h \
71 web_buffer.c web_buffer.h \
72 web_buffer_svg.c web_buffer_svg.h \
73 web_client.c web_client.h \
74 web_server.c web_server.h \
79 plugin_freebsd.c plugin_freebsd.h \
85 plugin_macos.c plugin_macos.h \
93 plugin_proc.c plugin_proc.h \
94 plugin_proc_diskspace.c plugin_proc_diskspace.h \
101 proc_net_ip_vs_stats.c \
104 proc_net_rpc_nfsd.c \
107 proc_net_softnet_stat.c \
108 proc_net_stat_conntrack.c \
109 proc_net_stat_synproxy.c \
111 proc_sys_kernel_random_entropy_avail.c \
114 sys_kernel_mm_ksm.c \
120 $(OPTIONAL_MATH_LIBS) \
121 $(OPTIONAL_NFACCT_LIBS) \
122 $(OPTIONAL_ZLIB_LIBS) \
123 $(OPTIONAL_UUID_LIBS) \
126 apps_plugin_SOURCES = \
133 procfile.c procfile.h \
134 web_buffer.c web_buffer.h \
138 if [ `id -u` == 0 ]; then \
139 chown root '$(DESTDIR)$(pluginsdir)/apps.plugin' && \
140 chmod 0755 '$(DESTDIR)$(pluginsdir)/apps.plugin' && \
141 ( setcap cap_dac_read_search,cap_sys_ptrace+ep '$(DESTDIR)$(pluginsdir)/apps.plugin' || \
142 chmod 4755 '$(DESTDIR)$(pluginsdir)/apps.plugin' ); \
147 echo "$(pluginsdir)/apps.plugin requires escalated capabilities:"; \
148 echo "sudo chown root '$(DESTDIR)$(pluginsdir)/apps.plugin'"; \
149 echo "sudo chmod 0755 '$(DESTDIR)$(pluginsdir)/apps.plugin'"; \
150 echo "sudo setcap cap_dac_read_search,cap_sys_ptrace+ep '$(DESTDIR)$(pluginsdir)/apps.plugin'"; \