summaryrefslogtreecommitdiff
path: root/packages/ncurses
diff options
context:
space:
mode:
Diffstat (limited to 'packages/ncurses')
-rw-r--r--packages/ncurses/ncurses.inc17
-rw-r--r--packages/ncurses/ncurses_5.4.bb2
2 files changed, 17 insertions, 2 deletions
diff --git a/packages/ncurses/ncurses.inc b/packages/ncurses/ncurses.inc
index 58e7b59e59..f400617dcb 100644
--- a/packages/ncurses/ncurses.inc
+++ b/packages/ncurses/ncurses.inc
@@ -12,7 +12,7 @@ inherit autotools
# This keeps only tput/tset in ncurses
# clear/reset are in already busybox
-FILES_ncurses-tools = "${bindir}/tic ${bindir}/toe ${bindir}/infotocap ${bindir}/captoinfo ${bindir}/infocmp ${bindir}/clear ${bindir}/reset ${bindir}/tack "
+FILES_ncurses-tools = "${bindir}/tic ${bindir}/toe ${bindir}/infotocap ${bindir}/captoinfo ${bindir}/infocmp ${bindir}/clear.${PN} ${bindir}/reset.${PN} ${bindir}/tack "
FILES_ncurses-terminfo = "${datadir}/terminfo"
FILES_${PN} = "${bindir}/tput ${bindir}/tset ${libdir}/lib*.so.* usr/share/tabset etc/terminfo"
@@ -73,4 +73,19 @@ do_install() {
then
ln -sf xterm-color ${D}${sysconfdir}/terminfo/x/xterm
fi
+
+ mv ${D}${bindir}/clear ${D}${bindir}/clear.${PN}
+ mv ${D}${bindir}/reset ${D}${bindir}/reset.${PN}
+}
+
+
+pkg_postinst_ncurses-tools () {
+ update-alternatives --install ${bindir}/clear clear clear.${PN} 100
+ update-alternatives --install ${bindir}/reset reset reset.${PN} 100
+}
+
+
+pkg_prerm_ncurses-tools () {
+ update-alternatives --remove clear clear.${PN}
+ update-alternatives --remove reset reset.${PN}
}
diff --git a/packages/ncurses/ncurses_5.4.bb b/packages/ncurses/ncurses_5.4.bb
index 61909d5ff2..5b03eaaeed 100644
--- a/packages/ncurses/ncurses_5.4.bb
+++ b/packages/ncurses/ncurses_5.4.bb
@@ -1,4 +1,4 @@
-PR = "r7"
+PR = "r8"
SRC_URI = "${GNU_MIRROR}/ncurses/ncurses-${PV}.tar.gz \
file://visibility.patch;patch=1"