aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Johan Oudinet <johan.oudinet@gmail.com>2017-09-25 18:34:31 +0200
committerGravatar Peter Korsgaard <peter@korsgaard.com>2017-09-28 23:26:33 +0200
commite6156615ecfb59d71aa5875fc206e4f1da80aec5 (patch)
tree758ab700ee02ebd0a6df5878c3324cdf1791d4b1
parentf6fb2c386f2e98b32cd4ddcd4d8ff88673b7126a (diff)
downloadbuildroot-e6156615ecfb59d71aa5875fc206e4f1da80aec5.tar.gz
buildroot-e6156615ecfb59d71aa5875fc206e4f1da80aec5.tar.bz2
ejabberd: Replace $(HOST_DIR) to /usr in ERL path
Previously, it was working by luck. Buildroot has fixed its definition of HOST_DIR and pkg-autotools.mk uses the classical /usr prefix. So, fix this sed expression to correctly replace $(HOST_DIR) by /usr in ERL path. Signed-off-by: Johan Oudinet <johan.oudinet@gmail.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
-rw-r--r--package/ejabberd/ejabberd.mk4
1 files changed, 2 insertions, 2 deletions
diff --git a/package/ejabberd/ejabberd.mk b/package/ejabberd/ejabberd.mk
index 9baa1124a3..35a1027efb 100644
--- a/package/ejabberd/ejabberd.mk
+++ b/package/ejabberd/ejabberd.mk
@@ -36,9 +36,9 @@ define EJABBERD_INSTALL_TARGET_CMDS
$(TARGET_MAKE_ENV) $(MAKE) DESTDIR=$(TARGET_DIR) install -C $(@D)
endef
-# Delete HOST_DIR prefix from ERL path in ejabberctl script.
+# Replace HOST_DIR prefix to /usr in ERL path of ejabberctl script.
define EJABBERD_FIX_EJABBERDCTL
- $(SED) 's,ERL=$(HOST_DIR),ERL=,' '$(TARGET_DIR)/usr/sbin/ejabberdctl'
+ $(SED) 's,ERL=$(HOST_DIR),ERL=/usr,' '$(TARGET_DIR)/usr/sbin/ejabberdctl'
endef
EJABBERD_POST_INSTALL_TARGET_HOOKS += EJABBERD_FIX_EJABBERDCTL