wok-stable view syslinux/receipt @ rev 1721

syslinux: generate locale configuration
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 18 16:14:09 2008 +0000 (2008-11-18)
parents 3dd3a53e2d4e
children 76990ad741d7
line source
1 # SliTaz package receipt.
3 PACKAGE="syslinux"
4 VERSION="3.72"
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"
12 DEPENDS="gpxe"
13 CONFIG_FILES="/boot/isolinux"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 compile_rules()
17 {
18 cd $src
19 cp ../stuff/tools/keytab-lilo.pl .
20 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do
21 [ "$(basename $(dirname $i))" = "include" ] && continue
22 j=$(basename $i)
23 j=${j%.map.gz}.kbd
24 ./keytab-lilo.pl /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j
25 done
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/boot/isolinux
32 cp -a $src/core/isolinux.bin $fs/boot/isolinux
33 cp -a $src/com32/modules/reboot.c32 $fs/boot/isolinux
34 cp stuff/*.* $fs/boot/isolinux
35 while read cfg kbd loc ; do
36 sed -e "s/^display/kbdmap $cfg.kbd\ndisplay/" \
37 -e "s/^label/say Now using $kbd keyboard and $loc locale.\nlabel/" \
38 -e "s/rootfs.gz/rootfs.gz lang=$loc kmap=$kbd/" \
39 < $fs/boot/isolinux/isolinux.cfg > $fs/boot/isolinux/$cfg.cfg
40 cp $src/$kbd.kbd $fs/boot/isolinux/$cfg.kbd
41 cat >> $fs/boot/isolinux/common.inc <<EOT
42 label $cfg
43 config $cfg.cfg
44 EOT
45 done <<EOT
46 be be-latin1 fr_FR
47 br br-abnt2 pt_PT
48 ca cf fr_FR
49 de de-latin1 de_DE
50 de_CH de_CH-latin1 de_DE
51 en uk C
52 es es es_ES
53 fi fi-latin1 fi
54 fr fr-latin1 fr_FR
55 fr_CH fr_CH-latin1 fr_FR
56 hu hu hu
57 it it it_IT
58 jp jp106 jp_JP
59 pt pt-latin1 pt_PT
60 ru ru ru_RU
61 us us C
62 EOT
63 chown root.root $fs/boot/isolinux/*
64 # Package all syslinux pkgs
65 for i in $(cd $WOK; ls -d syslinux-*)
66 do
67 tazwok genpkg $i
68 done
69 }
71 # Pre and post install commands for Tazpkg.
72 post_install()
73 {
74 sed -i "s/-XXXXXXXX/-$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.msg
75 }