Package: lilo Version: 1:24.2-2 Severity: minor Tags: patch Hi,
keytab-lilo is useful to people maintaining a PXE server, because syslinux uses the lilo keytable format for its keymaps. Here is a patch to make keytab-lilo work out-of-the-box (provided you add a Recommends or Suggests on console-data). Regards, -- Raphaël Halimi
Description: Various fixes for keytab-lilo This patch updates keytab-lilo to work on modern Debian systems: - Support for kbd 2.0.3 format (from Olivier Brunel, see http://www.syslinux.org/archives/2015-December/024690.html) - Use new keymaps ".kmap" extension (from syslinux upstream) - Add headers (from syslinux upstream) Author: Raphaël Halimi <raphael.hal...@gmail.com> Origin: other Last-Update: 2016-10-02 --- This patch header follows DEP-3: http://dep.debian.net/deps/dep3/ --- a/keytab-lilo.pl +++ b/keytab-lilo.pl @@ -1,4 +1,8 @@ #!/usr/bin/perl + +eval { use bytes; }; +eval { binmode STDOUT; }; + $DEFAULT_MAP = "us"; $DEFAULT_EXT = ".kmap"; @@ -6,8 +10,8 @@ { print STDERR "usage: $0 [ -p old_code=new_code ] ...\n". - (" "x(8+length $0))."[path]default_layout[.map] ] ". - "[path]kbd_layout[.map]\n"; + (" "x(8+length $0))."[path]default_layout[.kmap] ] ". + "[path]kbd_layout[.kmap]\n"; exit 1; } @@ -44,9 +48,9 @@ $empty = 1; while (<FILE>) { chop; - if (/^(static\s+)?u_short\s+(\S+)_map\[\S*\]\s+=\s+{\s*$/) { + if (/^(static\s+)?(u_|unsigned )short\s+(\S+)_map\[\S*\]\s+=\s+{\s*$/) { die "active at beginning of map" if defined $current; - $current = $pfx.":".$2; + $current = $pfx.":".$3; next; } undef $current if /^};\s*$/;
signature.asc
Description: OpenPGP digital signature