aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Jérôme Pouiller <jezz@sysmic.org>2015-11-17 18:20:45 +0100
committerGravatar Thomas Petazzoni <thomas.petazzoni@free-electrons.com>2015-11-17 22:19:15 +0100
commit5583d2dbfc15e7d4f059d7323db5d63c8b0ec5c3 (patch)
tree9cdf2a2bdcd36c0a499d25c79076d9f69798e2fc
parent4b13641be6a83aca80a7a9bdfe03f71465355b3c (diff)
downloadbuildroot-5583d2dbfc15e7d4f059d7323db5d63c8b0ec5c3.tar.gz
buildroot-5583d2dbfc15e7d4f059d7323db5d63c8b0ec5c3.tar.bz2
readline: install configuration file from package recipe
/etc/inputrc is configuration file for readline. However, until now, it was provided by skeleton. This patch install /etc/inputrc from readline recipe. Signed-off-by: Jérôme Pouiller <jezz@sysmic.org> Acked-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/readline/inputrc (renamed from system/skeleton/etc/inputrc)0
-rw-r--r--package/readline/readline.mk6
2 files changed, 5 insertions, 1 deletions
diff --git a/system/skeleton/etc/inputrc b/package/readline/inputrc
index 2f1cb601a5..2f1cb601a5 100644
--- a/system/skeleton/etc/inputrc
+++ b/package/readline/inputrc
diff --git a/package/readline/readline.mk b/package/readline/readline.mk
index c004899c23..3d3169627d 100644
--- a/package/readline/readline.mk
+++ b/package/readline/readline.mk
@@ -17,8 +17,12 @@ READLINE_LICENSE_FILES = COPYING
define READLINE_PURGE_EXAMPLES
rm -rf $(TARGET_DIR)/usr/share/readline
endef
-
READLINE_POST_INSTALL_TARGET_HOOKS += READLINE_PURGE_EXAMPLES
+define READLINE_INSTALL_INPUTRC
+ $(INSTALL) -D -m 644 package/readline/inputrc $(TARGET_DIR)/etc/inputrc
+endef
+READLINE_POST_INSTALL_TARGET_HOOKS += READLINE_INSTALL_INPUTRC
+
$(eval $(autotools-package))
$(eval $(host-autotools-package))