3 DESCRIPTION = "Allows you to set-up and manipulate the Linux console."
6 SRC_URI = "${SOURCEFORGE_MIRROR}/lct/console-tools-${PV}.tar.gz \
7 file://codepage.patch;patch=1 \
8 file://configure.patch;patch=1 \
9 file://compile.patch;patch=1 \
10 file://kbdrate.patch;patch=1 \
11 file://uclibc-fileno.patch;patch=1 \
14 export SUBDIRS = "fontfiletools vttools kbdtools screenfonttools contrib \
15 examples po intl compat"
18 do_configure_prepend () {
20 cp ${WORKDIR}/config/*.m4 config/
25 oe_runmake 'SUBDIRS=${SUBDIRS}'
32 mv ${D}${bindir}/chvt ${D}${bindir}/chvt.${PN}
33 mv ${D}${bindir}/deallocvt ${D}${bindir}/deallocvt.${PN}
34 mv ${D}${bindir}/openvt ${D}${bindir}/openvt.${PN}
37 pkg_postinst_${PN} () {
38 update-alternatives --install ${bindir}/chvt chvt chvt.${PN} 100
39 update-alternatives --install ${bindir}/deallocvt deallocvt deallocvt.${PN} 100
40 update-alternatives --install ${bindir}/openvt openvt openvt.${PN} 100
44 update-alternatives --remove chvt chvt.${PN}
45 update-alternatives --remove deallocvt deallocvt.${PN}
46 update-alternatives --remove openvt openvt.${PN}