From a7acedfeeb22007cd919330cda8c324e2e3dac5e Mon Sep 17 00:00:00 2001 From: Andreas Vida Date: Thu, 3 Sep 2026 15:37:54 +0200 Subject: [PATCH] package/cups: install D-Bus config file cups.conf When CUPS is built with D-Bus enabled, install cups.conf under /usr/share/dbus-1/system.d as it already happens in other packages that have D-Bus configs e.g. dnsmasq, wpa_supplicant etc. Signed-off-by: Andreas Vida Signed-off-by: Thomas Petazzoni --- package/cups/cups.mk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/package/cups/cups.mk b/package/cups/cups.mk index 0df4f411bb..3e85a2eecf 100644 --- a/package/cups/cups.mk +++ b/package/cups/cups.mk @@ -45,6 +45,11 @@ endif ifeq ($(BR2_PACKAGE_DBUS),y) CUPS_CONF_OPTS += --enable-dbus CUPS_DEPENDENCIES += dbus +define CUPS_INSTALL_DBUS + $(INSTALL) -m 0644 -D $(@D)/desktop/cups.conf \ + $(TARGET_DIR)/usr/share/dbus-1/system.d/cups.conf +endef +CUPS_POST_INSTALL_TARGET_HOOKS += CUPS_INSTALL_DBUS else CUPS_CONF_OPTS += --disable-dbus endif