aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Bernd Kuhls <bernd.kuhls@t-online.de>2020-11-14 23:10:07 +0100
committerGravatar Peter Korsgaard <peter@korsgaard.com>2020-11-16 22:28:24 +0100
commit02da94e9e21099ef4e7dd006e943682bf780eae8 (patch)
tree4a6da9f57cadc6a3f45ff0b09087ac4abfe8f83a
parent9008ea83a7ccbb4a9af6627d852ad59d7f8eb341 (diff)
downloadbuildroot-02da94e9e21099ef4e7dd006e943682bf780eae8.tar.gz
buildroot-02da94e9e21099ef4e7dd006e943682bf780eae8.tar.bz2
package/dovecot-pigeonhole: fix build with per-package directories
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> (cherry picked from commit 0901355c11f051846744a12f9b2044a751faa47a) Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/dovecot-pigeonhole/dovecot-pigeonhole.mk8
1 files changed, 8 insertions, 0 deletions
diff --git a/package/dovecot-pigeonhole/dovecot-pigeonhole.mk b/package/dovecot-pigeonhole/dovecot-pigeonhole.mk
index d7068cd873..462c992902 100644
--- a/package/dovecot-pigeonhole/dovecot-pigeonhole.mk
+++ b/package/dovecot-pigeonhole/dovecot-pigeonhole.mk
@@ -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))