]> git.ipfire.org Git - collecty.git/blobdiff - Makefile.am
Implement worker thread concept
[collecty.git] / Makefile.am
index e0a882a1e8e6b0780eb96419c6b13734803b62a4..ac7e7944f158033253f669bc250dd174bcafb8d9 100644 (file)
@@ -32,6 +32,10 @@ SUBDIRS = . po
 
 pythondir  = $(pyexecdir)
 
+# Dirs of external packages
+dbuspolicydir=@dbuspolicydir@
+dbussystemservicedir=@dbussystemservicedir@
+
 CLEANFILES =
 DISTCLEANFILES =
 EXTRA_DIST =
@@ -45,6 +49,8 @@ update-po:
        $(MAKE) -C po update-po
 
 DISTCHECK_CONFIGURE_FLAGS = \
+       --with-dbuspolicydir=$$dc_install_base/$(dbuspolicydir) \
+       --with-dbussystemservicedir=$$dc_install_base/$(dbussystemservicedir) \
        --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
 
 # ------------------------------------------------------------------------------
@@ -66,27 +72,72 @@ dist_bin_SCRIPTS = \
 
 collecty_PYTHON = \
        src/collecty/__init__.py \
+       src/collecty/bus.py \
        src/collecty/client.py \
        src/collecty/constants.py \
        src/collecty/daemon.py \
        src/collecty/errors.py \
        src/collecty/i18n.py \
+       src/collecty/logger.py \
        src/collecty/ping.py
 
 collectydir = $(pythondir)/collecty
 
 collectyplugins_PYTHON = \
        src/collecty/plugins/base.py \
+       src/collecty/plugins/conntrack.py \
        src/collecty/plugins/cpu.py \
+       src/collecty/plugins/disk.py \
        src/collecty/plugins/entropy.py \
        src/collecty/plugins/__init__.py \
        src/collecty/plugins/interface.py \
        src/collecty/plugins/latency.py \
        src/collecty/plugins/loadavg.py \
-       src/collecty/plugins/memory.py
+       src/collecty/plugins/memory.py \
+       src/collecty/plugins/sensors.py
 
 collectypluginsdir = $(collectydir)/plugins
 
+pkgpyexec_LTLIBRARIES = \
+       _collecty.la
+
+_collecty_la_SOURCES = \
+       src/_collectymodule.c
+
+_collecty_la_CFLAGS = \
+       $(AM_CFLAGS) \
+       $(LIBATASMART_CFLAGS) \
+       $(PYTHON_CFLAGS)
+
+_collecty_la_LDFLAGS = \
+       $(AM_LDFLAGS) \
+       -shared \
+       -module \
+       -avoid-version
+
+_collecty_la_LIBADD = \
+       $(LIBATASMART_LIBS) \
+       $(PYTHON_LIBS) \
+       $(SENSORS_LIBS)
+
+dist_dbuspolicy_DATA = \
+       src/dbus/org.ipfire.collecty1.conf
+
+dist_dbussystemservice_DATA = \
+       src/dbus/org.ipfire.collecty1.service
+
+systemdsystemunit_DATA = \
+       src/systemd/collecty.service
+
+dist_systemdsystemunit_DATA = \
+       src/systemd/org.ipfire.collecty1.busname
+
+EXTRA_DIST += \
+       src/systemd/collecty.service.in
+
+CLEANFILES += \
+       src/systemd/collecty.service
+
 # ------------------------------------------------------------------------------
 
 if ENABLE_MANPAGES
@@ -140,22 +191,6 @@ endif
 
 # ------------------------------------------------------------------------------
 
-if HAVE_SYSTEMD
-systemdsystemunit_DATA = \
-       src/systemd/collecty.service
-
-CLEANFILES += \
-       $(systemdsystemunit_DATA)
-
-INSTALL_DIRS += \
-       $(systemdsystemunitdir)
-endif
-
-EXTRA_DIST += \
-       src/systemd/collecty.service.in
-
-# ------------------------------------------------------------------------------
-
 substitutions = \
        '|PACKAGE_NAME=$(PACKAGE_NAME)|' \
        '|PACKAGE_VERSION=$(PACKAGE_VERSION)|' \