diff options
Diffstat (limited to 'meta/recipes-core/console-tools/console-tools_0.3.2.bb')
-rw-r--r-- | meta/recipes-core/console-tools/console-tools_0.3.2.bb | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/meta/recipes-core/console-tools/console-tools_0.3.2.bb b/meta/recipes-core/console-tools/console-tools_0.3.2.bb new file mode 100644 index 0000000000..3c5067f102 --- /dev/null +++ b/meta/recipes-core/console-tools/console-tools_0.3.2.bb | |||
@@ -0,0 +1,49 @@ | |||
1 | SECTION = "base" | ||
2 | LICENSE = "GPL" | ||
3 | DESCRIPTION = "Allows you to set-up and manipulate the Linux console." | ||
4 | DEPENDS = "gettext" | ||
5 | PR = "r2" | ||
6 | |||
7 | SRC_URI = "${SOURCEFORGE_MIRROR}/lct/console-tools-${PV}.tar.gz \ | ||
8 | file://codepage.patch;patch=1 \ | ||
9 | file://configure.patch;patch=1 \ | ||
10 | file://compile.patch;patch=1 \ | ||
11 | file://kbdrate.patch;patch=1 \ | ||
12 | file://uclibc-fileno.patch;patch=1 \ | ||
13 | file://config/*.m4" | ||
14 | |||
15 | export SUBDIRS = "fontfiletools vttools kbdtools screenfonttools contrib \ | ||
16 | examples po intl compat" | ||
17 | |||
18 | acpaths = "-I config" | ||
19 | do_configure_prepend () { | ||
20 | mkdir -p config | ||
21 | cp ${WORKDIR}/config/*.m4 config/ | ||
22 | } | ||
23 | |||
24 | do_compile () { | ||
25 | oe_runmake -C lib | ||
26 | oe_runmake 'SUBDIRS=${SUBDIRS}' | ||
27 | } | ||
28 | |||
29 | inherit autotools | ||
30 | |||
31 | do_install () { | ||
32 | autotools_do_install | ||
33 | mv ${D}${bindir}/chvt ${D}${bindir}/chvt.${PN} | ||
34 | mv ${D}${bindir}/deallocvt ${D}${bindir}/deallocvt.${PN} | ||
35 | mv ${D}${bindir}/openvt ${D}${bindir}/openvt.${PN} | ||
36 | } | ||
37 | |||
38 | pkg_postinst_${PN} () { | ||
39 | update-alternatives --install ${bindir}/chvt chvt chvt.${PN} 100 | ||
40 | update-alternatives --install ${bindir}/deallocvt deallocvt deallocvt.${PN} 100 | ||
41 | update-alternatives --install ${bindir}/openvt openvt openvt.${PN} 100 | ||
42 | } | ||
43 | |||
44 | pkg_prerm_${PN} () { | ||
45 | update-alternatives --remove chvt chvt.${PN} | ||
46 | update-alternatives --remove deallocvt deallocvt.${PN} | ||
47 | update-alternatives --remove openvt openvt.${PN} | ||
48 | } | ||
49 | |||