package/dovecot-pigeonhole: fix build with per-package directories
authorBernd Kuhls <bernd.kuhls@t-online.de>
Sat, 14 Nov 2020 22:10:07 +0000 (23:10 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Mon, 16 Nov 2020 20:20:18 +0000 (21:20 +0100)
Fix wrong path in usr/lib/dovecot-config which was copied from the
dovecot staging dir.

Fixes:
http://autobuild.buildroot.net/results/5fb/5fb1cd57bc3fdf4f75019c7b25d65ef887eea539/

Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/dovecot-pigeonhole/dovecot-pigeonhole.mk

index d7068cd873b8b7e5b4b9802b8397c6e5e35002b3..462c992902d79a8698a922ef42b4c81d7d415d35 100644 (file)
@@ -13,4 +13,12 @@ DOVECOT_PIGEONHOLE_DEPENDENCIES = dovecot
 
 DOVECOT_PIGEONHOLE_CONF_OPTS = --with-dovecot=$(STAGING_DIR)/usr/lib
 
+ifeq ($(BR2_PER_PACKAGE_DIRECTORIES),y)
+define DOVECOT_PIGEONHOLE_FIXUP_DOVECOT_CONFIG
+       $(SED) 's,$(PER_PACKAGE_DIR)/dovecot/,$(PER_PACKAGE_DIR)/dovecot-pigeonhole/,g' \
+               $(STAGING_DIR)/usr/lib/dovecot-config
+endef
+DOVECOT_PIGEONHOLE_PRE_CONFIGURE_HOOKS = DOVECOT_PIGEONHOLE_FIXUP_DOVECOT_CONFIG
+endif
+
 $(eval $(autotools-package))