wok-next view syslinux/receipt @ rev 12503
Up: xorg-recordproto, xorg-util-macros, xorg-xextproto, xorg-xf86vidmodeproto, xorg-xtrans
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Tue Apr 24 18:48:41 2012 +0200 (2012-04-24) |
parents | e98cd41f6361 |
children | fb327e5adb6b |
line source
1 # SliTaz package receipt.
3 PACKAGE="syslinux"
4 VERSION="4.05"
5 CATEGORY="base-system"
6 SHORT_DESC="LiveCD ISO bootloader (isolinux)"
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.xz"
9 WEB_SITE="http://syslinux.zytor.com/"
10 WGET_URL="ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/$TARBALL"
11 BUILD_DEPENDS="kbd-base perl nasm"
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/isohybrid.sh .
20 cp $stuff/tools/keytab-lilo.pl .
21 cp $stuff/extra/md5sum.c com32/modules
22 grep -q md5sum.c32 com32/modules/Makefile ||
23 sed -i 's/ifcpu64.c32/ifcpu64.c32 md5sum.c32/' com32/modules/Makefile
24 make -C com32
25 ./isohybrid.sh --build
26 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do
27 [ "$(basename $(dirname $i))" = "include" ] && continue
28 j=$(basename $i)
29 j=${j%.map.gz}.kbd
30 ./keytab-lilo.pl /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j
31 done
32 }
34 # Rules to gen a SliTaz package suitable for Tazpkg.
35 genpkg_rules()
36 {
37 mkdir -p $fs/boot/isolinux
38 cp -a $src/core/isolinux.bin $fs/boot/isolinux
39 cp -a $src/com32/modules/md5sum.c32 $fs/boot/isolinux/c32box.c32
40 cp -a $src/com32/menu/vesamenu.c32 $fs/boot/isolinux
41 # $stuff/isolinux.msg is the old way the have a splash image.
42 cp $stuff/*.cfg $stuff/*.txt $stuff/help.* $stuff/opts.* $fs/boot/isolinux
43 ( cd $src ; ls *.kbd | cpio -o -H newc ) > $fs/boot/isolinux/cpio.kbd
44 while read label kbd loc menu; do
45 #[ -s $src/$kbd.kbd ] || continue
46 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
48 LABEL $label
49 MENU LABEL $menu
50 com32 c32box.c32
51 append kbdmap cpio.kbd $kbd.kbd lang=$loc kmap=$kbd
52 EOT
53 done <<EOT
54 cr croat hr_HR Hvratski
55 cz cz-lat2 cs_CZ Cesky
56 de de-latin1 de_DE Deutsch
57 de_CH\ deCH de_CH-latin1 de_DE Deutsch Schweitz
58 dk dk-latin1 da_DK Dansk
59 en uk C English UK
60 us us C English US
61 us_ac\ usac us-acentos C English US (acentos)
62 us_dv\ usdv dvorak C English US (dvorak)
63 us_dl\ usdl dvorak-l C English US (dvorak-l)
64 us_dr\ usdr dvorak-r C English US (dvorak-r)
65 es es es_ES Espanol
66 fr fr-latin1 fr_FR Francais
67 be be-latin1 fr_FR Francais Belgique
68 ca cf fr_FR Francais Canada
69 fr_CH\ frCH fr_CH-latin1 fr_FR Francais Suisse
70 fi fi-latin1 fi Suomi
71 is is-latin1 is_IS Islenska
72 it it it_IT Italiano
73 no no-latin1 nb_NO Norske
74 jp jp106 jp_JP Japanese
75 hu hu hu Magyar
76 po pl2 pl_PL Polski
77 br br-abnt2 pt_PT Brazil
78 pt pt-latin1 pt_PT Portugues
79 ru ru ru_RU Russian
80 se se-lat6 sv_SE Svenskt
81 sl slovene sl_SI Slovenski
82 tr tr_q-latin5 tr_TR Turk
83 EOT
84 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
86 LABEL exit
87 MENU LABEL Back to main menu
88 MENU EXIT
89 MENU END
90 EOT
91 sed -i 's/^LABEL us$/&\n MENU DEFAULT/' $fs/boot/isolinux/i18n.cfg
92 for kbd in $(cd $src ; ls *.kbd); do
93 [ -s $src/$kbd ] || echo "Invalid file $kbd"
94 grep -q " $kbd " $fs/boot/isolinux/i18n.cfg && continue
95 echo "Missing: file $kbd"
96 done
97 chown root.root $fs/boot/isolinux/*
98 }
100 # Pre and post install commands for Tazpkg.
101 post_install()
102 {
103 sed -i "s/XXXXXXXX/$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.cfg
104 }