diff options
author | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-25 21:46:29 -0500 |
---|---|---|
committer | A. Wilcox <AWilcox@Wilcox-Tech.com> | 2018-06-25 21:46:29 -0500 |
commit | a3cbccbb4f7b03ed703444ba8250fffd9fafcab5 (patch) | |
tree | 07363f339a12f039a4d57f9a4e35b794a553026c | |
parent | db92b34c2965c2965a56431f866cffda7d86ae79 (diff) | |
download | packages-a3cbccbb4f7b03ed703444ba8250fffd9fafcab5.tar.gz packages-a3cbccbb4f7b03ed703444ba8250fffd9fafcab5.tar.bz2 packages-a3cbccbb4f7b03ed703444ba8250fffd9fafcab5.tar.xz packages-a3cbccbb4f7b03ed703444ba8250fffd9fafcab5.zip |
system/console-setup: new package
-rw-r--r-- | system/console-setup/APKBUILD | 50 | ||||
-rw-r--r-- | system/console-setup/console-setup.initd | 32 |
2 files changed, 82 insertions, 0 deletions
diff --git a/system/console-setup/APKBUILD b/system/console-setup/APKBUILD new file mode 100644 index 000000000..d0cdbacaf --- /dev/null +++ b/system/console-setup/APKBUILD @@ -0,0 +1,50 @@ +# Contributor: A. Wilcox <awilfox@adelielinux.org> +# Maintainer: A. Wilcox <awilfox@adelielinux.org> +pkgname=console-setup +pkgver=1.184 +pkgrel=0 +pkgdesc="Set up console font and keyboard layout" +url="https://salsa.debian.org/installer-team/console-setup" +arch="noarch" +license="MIT AND GPL-2.0+ AND BSD-3-Clause" +depends="perl" +makedepends="perl" +install="" +replaces="ckbcomp" +subpackages="$pkgname-doc console-fonts:fonts console-keymaps:keymaps + $pkgname-openrc" +source="http://ftp.de.debian.org/debian/pool/main/c/$pkgname/${pkgname}_$pkgver.tar.xz + console-setup.initd + " +builddir="$srcdir/$pkgname" + +build() { + cd "$builddir" + make build-linux +} + +check() { + cd "$builddir" + make check +} + +package() { + cd "$builddir" + make prefix="$pkgdir/usr" etcdir="$pkgdir/etc" xkbdir= install-linux + install -D -m755 "$srcdir"/console-setup.initd "$pkgdir"/etc/init.d/console-setup +} + +fonts() { + pkgdesc="Console fonts for use with $pkgname" + mkdir -p "$subpkgdir"/usr/share + mv "$pkgdir"/usr/share/consolefonts "$subpkgdir"/usr/share/ +} + +keymaps() { + pkgdesc="Keyboard layouts for use with $pkgname" + mkdir -p "$subpkgdir"/etc/console-setup + mv "$pkgdir"/etc/console-setup/ckb "$subpkgdir"/etc/console-setup/ +} + +sha512sums="3e970497d32ea7c04e7c41377b92378f3449deabc067d988c2f68d3d4d5e436726f2bd6bad0862518447e043a43a084288369d088e121d10fff14c780ecab4ba console-setup_1.184.tar.xz +3b8e2c9d8551f9a51bcd33e58771a4f55ff2840f8fe392e0070bd2b6a3911cd9ed9377873538f6904fd99836ac4e0280c712be69d275aae9183dd12ff7efddae console-setup.initd" diff --git a/system/console-setup/console-setup.initd b/system/console-setup/console-setup.initd new file mode 100644 index 000000000..bf3479566 --- /dev/null +++ b/system/console-setup/console-setup.initd @@ -0,0 +1,32 @@ +#!/sbin/openrc-run +# Copyright (c) 2007-2015 The OpenRC Authors. +# See the Authors file at the top-level directory of this distribution and +# https://github.com/OpenRC/openrc/blob/master/AUTHORS +# +# This file is part of OpenRC. It is subject to the license terms in +# the LICENSE file found in the top-level directory of this +# distribution and at https://github.com/OpenRC/openrc/blob/master/LICENSE +# This file may not be copied, modified, propagated, or distributed +# except according to the terms contained in the LICENSE file. + +description="Applies a keymap and font for the consoles." + +depend() +{ + provide keymaps + need localmount termencoding + after bootmisc + keyword -docker -lxc -openvz -prefix -systemd-nspawn -uml -vserver -xenu +} + +start() +{ + # Force linux keycodes for PPC. + if [ -f /proc/sys/dev/mac_hid/keyboard_sends_linux_keycodes ]; then + echo 1 > /proc/sys/dev/mac_hid/keyboard_sends_linux_keycodes + fi + + ebegin "Loading default key mappings / font" + setupcon + eend $? "Error loading key mappings / font" || return $? +} |