wok-4.x view syslinux/receipt @ rev 830
Syslinux: fix keymap generation
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun May 18 09:43:21 2008 +0000 (2008-05-18) |
parents | 97526a91fabb |
children | 7ce662304f43 |
line source
1 # SliTaz package receipt.
3 PACKAGE="syslinux"
4 VERSION="3.63"
5 CATEGORY="base-system"
6 SHORT_DESC="LiveCD ISO bootloader (isolinux)"
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://syslinux.zytor.com/"
10 WGET_URL="ftp://ftp.kernel.org/pub/linux/boot/syslinux/$TARBALL"
11 BUILD_DEPENDS="kbd-base perl"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 compile_rules()
15 {
16 cd $src
17 patch -p1 < ../stuff/tools/keytab-lilo.pl.u
18 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do
19 [ "$(basename $(dirname $i))" = "include" ] && continue
20 j=$(basename $i)
21 j=${j%.map.gz}.kbd
22 ./keytab-lilo.pl /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j
23 done
24 }
26 # Rules to gen a SliTaz package suitable for Tazpkg.
27 genpkg_rules()
28 {
29 mkdir -p $fs/boot/isolinux
30 cp -a $src/isolinux.bin $fs/boot/isolinux
31 cp -a $src/com32/modules/reboot.c32 $fs/boot/isolinux
32 cp stuff/* $fs/boot/isolinux
33 rm -rf $fs/boot/isolinux/tools $fs/boot/isolinux/*.kbd 2> /dev/null
34 grep kbd$ $fs/boot/isolinux/*.cfg | while read cfg kbd; do
35 cfg=$(basename ${cfg%.cfg:*})
36 sed -i "s/$kbd/$cfg.kbd/" $fs/boot/isolinux/$cfg.cfg
37 cp $src/$kbd $fs/boot/isolinux/$cfg.kbd
38 done
39 chown root.root $fs/boot/isolinux/*
40 }