pythondir = $(pyexecdir)
+# Dirs of external packages
+dbuspolicydir=@dbuspolicydir@
+dbussystemservicedir=@dbussystemservicedir@
+
CLEANFILES =
DISTCLEANFILES =
EXTRA_DIST =
$(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)
# ------------------------------------------------------------------------------
collecty_PYTHON = \
src/collecty/__init__.py \
+ src/collecty/__version__.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
+ src/collecty/locales.py \
+ src/collecty/logger.py
collectydir = $(pythondir)/collecty
collectyplugins_PYTHON = \
src/collecty/plugins/base.py \
+ src/collecty/plugins/conntrack.py \
src/collecty/plugins/cpu.py \
+ src/collecty/plugins/cpufreq.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) \
+ $(OPING_CFLAGS) \
+ $(PYTHON_CFLAGS)
+
+_collecty_la_LDFLAGS = \
+ $(AM_LDFLAGS) \
+ -shared \
+ -module \
+ -avoid-version
+
+_collecty_la_LIBADD = \
+ $(LIBATASMART_LIBS) \
+ $(OPING_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
# ------------------------------------------------------------------------------
-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)|' \