mirror of
https://github.com/godotengine/buildroot.git
synced 2026-01-02 21:48:20 +03:00
package/collectd: keep postgresql_default.conf when needed
$(TARGET_DIR)/usr/share/collectd/postgresql_default.conf
should not be removed when postgresql support is enabled,
as that module tries to load that file by default.
Signed-off-by: Pascal de Bruijn <p.debruijn@unilogic.nl>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
(cherry picked from commit 35e845700f)
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
committed by
Peter Korsgaard
parent
c9c36c519c
commit
0c479e9f2b
@@ -198,8 +198,14 @@ endif
|
||||
define COLLECTD_INSTALL_TARGET_CMDS
|
||||
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) -C $(@D) install
|
||||
rm -f $(TARGET_DIR)/usr/bin/collectd-nagios
|
||||
endef
|
||||
|
||||
ifeq ($(BR2_PACKAGE_COLLECTD_POSTGRESQL),)
|
||||
define COLLECTD_REMOVE_UNNEEDED_POSTGRESQL_DEFAULT_CONF
|
||||
rm -f $(TARGET_DIR)/usr/share/collectd/postgresql_default.conf
|
||||
endef
|
||||
COLLECTD_POST_INSTALL_TARGET_HOOKS += COLLECTD_REMOVE_UNNEEDED_POSTGRESQL_DEFAULT_CONF
|
||||
endif
|
||||
|
||||
define COLLECTD_INSTALL_INIT_SYSTEMD
|
||||
$(INSTALL) -D -m 644 package/collectd/collectd.service \
|
||||
|
||||
Reference in New Issue
Block a user