Skip to contentSkip to conversation

ncurses: install screen terminfo file

PATCH New Gustavo Zacarias 2 participants 4 messages May 7, 2012

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 ncurses: install screen terminfo file

Install the terminfo file for screen as reported on bug #5204

---
 package/ncurses/ncurses.mk |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
package/ncurses/ncurses.mk +2 -0
index eb8a043..10a55dd 100644
@@ -117,6 +117,8 @@ define NCURSES_INSTALL_TARGET_CMDS
 	cp -dpf $(STAGING_DIR)/usr/share/terminfo/a/ansi $(TARGET_DIR)/usr/share/terminfo/a
 	mkdir -p $(TARGET_DIR)/usr/share/terminfo/l
 	cp -dpf $(STAGING_DIR)/usr/share/terminfo/l/linux $(TARGET_DIR)/usr/share/terminfo/l
+	mkdir -p $(TARGET_DIR)/usr/share/terminfo/s
+	cp -dpf $(STAGING_DIR)/usr/share/terminfo/s/screen $(TARGET_DIR)/usr/share/terminfo/s
 	$(NCURSES_INSTALL_TARGET_DEVFILES)
 endef # NCURSES_INSTALL_TARGET_CMDS
 
Signature · 1 line
1.7.3.4
#1 lore raw

PATCH 2/2 screen: enable terminfo and install screenrc

Enable terminfo support as reported on bug #5198
Also install screenrc if it's not already present in the target.

---
 package/screen/screen.mk |   11 ++++++++++-
 1 files changed, 10 insertions(+), 1 deletions(-)
package/screen/screen.mk +10 -1
index 4b3d427..d117bde 100644
@@ -7,8 +7,17 @@
 SCREEN_VERSION = 4.0.3
 SCREEN_SITE = $(BR2_GNU_MIRROR)/screen
 SCREEN_DEPENDENCIES = ncurses
-SCREEN_CONF_ENV = ac_cv_header_elf_h=no ac_cv_header_dwarf_h=no
+SCREEN_CONF_ENV = ac_cv_header_elf_h=no ac_cv_header_dwarf_h=no \
+	CFLAGS="$(TARGET_CFLAGS) -DTERMINFO"
 SCREEN_MAKE = $(MAKE1)
 SCREEN_INSTALL_TARGET_OPT = DESTDIR=$(TARGET_DIR) SCREEN=screen install_bin
 
+define SCREEN_INSTALL_SCREENRC
+	if [ ! -f $(TARGET_DIR)/etc/screenrc ]; then \
+		$(INSTALL) -m 0755 -D $(@D)/etc/screenrc $(TARGET_DIR)/etc/screenrc; \
+	fi
+endef
+
+SCREEN_POST_INSTALL_TARGET_HOOKS += SCREEN_INSTALL_SCREENRC
+
 $(eval $(call AUTOTARGETS))
Signature · 1 line
1.7.3.4
#2 lore raw

PATCH 2/2 screen: enable terminfo and install screenrc

Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Gustavo> Enable terminfo support as reported on bug #5198 Gustavo> Also install screenrc if it's not already present in the target.

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard
#3 lore raw

PATCH 1/2 ncurses: install screen terminfo file

In reply to Gustavo Zacarias
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line

"Gustavo" == Gustavo Zacarias <[email protected]> writes:

Gustavo> Install the terminfo file for screen as reported on bug #5204 Gustavo> Signed-off-by: Gustavo Zacarias <[email protected]>

Committed, thanks.

Signature · 1 line
Bye, Peter Korsgaard