From 5e01906b8433bc6a8c03be2e31758589641124c9 Mon Sep 17 00:00:00 2001 From: David Karlstrom Date: Sat, 23 Jul 2005 13:36:38 +0000 Subject: Updated to use update-alternatives and fix some FHS bugs --- packages/ncurses/ncurses.inc | 17 ++++++++++++++++- packages/ncurses/ncurses_5.4.bb | 2 +- 2 files changed, 17 insertions(+), 2 deletions(-) (limited to 'packages/ncurses') 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" -- cgit v1.2.3