From: "Jérôme Pouiller" <jezz@sysmic.org>
To: buildroot@busybox.net
Subject: [Buildroot] [PATCH v2] readline: install configuration file from package recipe
Date: Tue, 17 Nov 2015 18:20:45 +0100 [thread overview]
Message-ID: <1447780845-22019-1-git-send-email-jezz@sysmic.org> (raw)
/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>
---
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%)
diff --git a/system/skeleton/etc/inputrc b/package/readline/inputrc
similarity index 100%
rename from system/skeleton/etc/inputrc
rename to package/readline/inputrc
diff --git a/package/readline/readline.mk b/package/readline/readline.mk
index c004899..3d31696 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))
--
2.1.4
next reply other threads:[~2015-11-17 17:20 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-11-17 17:20 Jérôme Pouiller [this message]
2015-11-17 21:13 ` [Buildroot] [PATCH v2] readline: install configuration file from package recipe Gustavo Zacarias
2015-11-17 21:29 ` Thomas Petazzoni
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1447780845-22019-1-git-send-email-jezz@sysmic.org \
--to=jezz@sysmic.org \
--cc=buildroot@busybox.net \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox