Skip to contentSkip to conversation

readline: install configuration file from package recipe

PATCH New Jérôme Pouiller 3 participants 3 messages Nov 17, 2015

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 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.

---
v2:
Send patch using -M

 {system/skeleton/etc => package/readline}/inputrc | 0
 package/readline/readline.mk                      | 6 +++++-
 2 files changed, 5 insertions(+), 1 deletion(-)
 rename {system/skeleton/etc => package/readline}/inputrc (100%)
package/readline/inputrc renamed from system/skeleton/etc/inputrc +0 -0
similarity index 100%
rename from system/skeleton/etc/inputrc
rename to package/readline/inputrc
package/readline/readline.mk +5 -1
index c004899..3d31696 100644
@@ -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))
Signature · 1 line
2.1.4
#2 lore raw

PATCH v2 1/1 readline: install configuration file from package recipe

In reply to Jérôme Pouiller

Dear J?r?me Pouiller,

Quoted 8 lines · J?r?me Pouiller

/etc/inputrc is configuration file for readline. However, until now, it was provided by skeleton. This patch install /etc/inputrc from readline recipe.

---
v2:
Send patch using -M

Applied to next, thanks!

Thanks for this /etc/inputrc and /etc/issue fixes. It's definitely good to strip down a bit the skeleton.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Free Electrons
Embedded Linux, Kernel and Android engineering
http://free-electrons.com