]> 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 69d1a2fe5a37216d85378a47fe554091d1b05fd2..ac7ac44f5d33484ddd51216b727da3051e3d1607 100644 (file)
@@ -16,6 +16,7 @@ AM_CFLAGS = \
        $(OPTIONAL_MATH_CFLAGS) \
        $(OPTIONAL_NFACCT_CLFAGS) \
        $(OPTIONAL_ZLIB_CFLAGS) \
+       $(OPTIONAL_UUID_CFLAGS) \
        $(NULL)
 
 sbin_PROGRAMS = netdata
@@ -66,6 +67,7 @@ netdata_SOURCES = \
        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)
@@ -73,6 +75,7 @@ netdata_LDADD = \
        $(OPTIONAL_MATH_LIBS) \
        $(OPTIONAL_NFACCT_LIBS) \
        $(OPTIONAL_ZLIB_LIBS) \
+       $(OPTIONAL_UUID_LIBS) \
        $(NULL)
 
 apps_plugin_SOURCES = \
@@ -86,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