diff options
author | David Karlstrom <daka@thg.se> | 2005-07-23 13:36:38 +0000 |
---|---|---|
committer | OpenEmbedded Project <openembedded-devel@lists.openembedded.org> | 2005-07-23 13:36:38 +0000 |
commit | 5e01906b8433bc6a8c03be2e31758589641124c9 (patch) | |
tree | c400790ffa5ebb896c464da84752a4937d889400 /packages/ncurses/ncurses.inc | |
parent | 57808a977840bce11bdbab373d9eacaba7ef88c1 (diff) |
Updated to use update-alternatives and fix some FHS bugs
Diffstat (limited to 'packages/ncurses/ncurses.inc')
-rw-r--r-- | packages/ncurses/ncurses.inc | 17 |
1 files changed, 16 insertions, 1 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} } |