]> arthur.barton.de Git - netdata.git/blobdiff - src/Makefile.am
added support for generating SVG badges with chart data
[netdata.git] / src / Makefile.am
index f2c15e92216b216dc61101f424f83450cb463988..ac7ac44f5d33484ddd51216b727da3051e3d1607 100644 (file)
@@ -4,6 +4,7 @@
 MAINTAINERCLEANFILES= $(srcdir)/Makefile.in
 
 AM_CPPFLAGS = \
+       -DVARLIB_DIR="\"$(varlibdir)\"" \
        -DCACHE_DIR="\"$(cachedir)\"" \
        -DCONFIG_DIR="\"$(configdir)\"" \
        -DLOG_DIR="\"$(logdir)\"" \
@@ -15,6 +16,7 @@ AM_CFLAGS = \
        $(OPTIONAL_MATH_CFLAGS) \
        $(OPTIONAL_NFACCT_CLFAGS) \
        $(OPTIONAL_ZLIB_CFLAGS) \
+       $(OPTIONAL_UUID_CFLAGS) \
        $(NULL)
 
 sbin_PROGRAMS = netdata
@@ -50,17 +52,22 @@ netdata_SOURCES = \
        proc_net_snmp.c \
        proc_net_snmp6.c \
        proc_net_stat_conntrack.c \
+       proc_net_stat_synproxy.c \
        proc_stat.c \
+       proc_self_mountinfo.c proc_self_mountinfo.h \
        proc_sys_kernel_random_entropy_avail.c \
        proc_vmstat.c \
        sys_kernel_mm_ksm.c \
+       sys_fs_cgroup.c \
        procfile.c procfile.h \
+       registry.c registry.h \
        rrd.c rrd.h \
        rrd2json.c rrd2json.h \
        storage_number.c storage_number.h \
        unit_test.c unit_test.h \
        url.c url.h \
        web_buffer.c web_buffer.h \
+       web_buffer_svg.c web_buffer_svg.h \
        web_client.c web_client.h \
        web_server.c web_server.h \
        $(NULL)
@@ -68,6 +75,7 @@ netdata_LDADD = \
        $(OPTIONAL_MATH_LIBS) \
        $(OPTIONAL_NFACCT_LIBS) \
        $(OPTIONAL_ZLIB_LIBS) \
+       $(OPTIONAL_UUID_LIBS) \
        $(NULL)
 
 apps_plugin_SOURCES = \
@@ -81,12 +89,16 @@ apps_plugin_SOURCES = \
 install-data-hook:
        if [ `id -u` == 0 ]; then \
                chown root '$(DESTDIR)$(pluginsdir)/apps.plugin' && \
-                       chmod 4755 '$(DESTDIR)$(pluginsdir)/apps.plugin'; \
+               chmod 0755 '$(DESTDIR)$(pluginsdir)/apps.plugin' && \
+               ( setcap cap_dac_read_search,cap_sys_ptrace+ep '$(DESTDIR)$(pluginsdir)/apps.plugin' || \
+                 chmod 4755 '$(DESTDIR)$(pluginsdir)/apps.plugin' ); \
        else \
                echo; \
                echo "ATTENTION"; \
                echo; \
-               echo "setuid bit of $(pluginsdir)/apps.plugin must be set, please execute as root:"; \
-               echo "chown root '$(pluginsdir)/apps.plugin' && chmod 4755 '$(pluginsdir)/apps.plugin'"; \
+               echo "$(pluginsdir)/apps.plugin requires escalated capabilities:"; \
+               echo "sudo chown root '$(DESTDIR)$(pluginsdir)/apps.plugin'"; \
+               echo "sudo chmod 0755 '$(DESTDIR)$(pluginsdir)/apps.plugin'"; \
+               echo "sudo setcap cap_dac_read_search,cap_sys_ptrace+ep '$(DESTDIR)$(pluginsdir)/apps.plugin'"; \
                echo; \
        fi