wok-next view syslinux/receipt @ rev 12776
Remove cross linux headers
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Sun May 13 12:20:38 2012 +0200 (2012-05-13) |
parents | 690212cc8adc |
children | 75c0995b510f |
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 rm -f $fs/boot/isolinux/common.cfg $fs/boot/isolinux/default.cfg
44 rm -f $fs/boot/isolinux/display.txt
45 ( cd $src ; ls *.kbd | cpio -o -H newc ) > $fs/boot/isolinux/cpio.kbd
46 while read label kbd loc menu; do
47 #[ -s $src/$kbd.kbd ] || continue
48 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
50 LABEL $label
51 MENU LABEL $menu
52 com32 c32box.c32
53 append kbdmap cpio.kbd $kbd.kbd lang=$loc kmap=$kbd
54 EOT
55 done <<EOT
56 cr croat hr_HR Hvratski
57 cz cz-lat2 cs_CZ Cesky
58 de de-latin1 de_DE Deutsch
59 de_CH\ deCH de_CH-latin1 de_DE Deutsch Schweitz
60 dk dk-latin1 da_DK Dansk
61 en uk C English UK
62 us us C English US
63 us_ac\ usac us-acentos C English US (acentos)
64 us_dv\ usdv dvorak C English US (dvorak)
65 us_dl\ usdl dvorak-l C English US (dvorak-l)
66 us_dr\ usdr dvorak-r C English US (dvorak-r)
67 es es es_ES Espanol
68 fr fr-latin1 fr_FR Francais
69 be be-latin1 fr_FR Francais Belgique
70 ca cf fr_FR Francais Canada
71 fr_CH\ frCH fr_CH-latin1 fr_FR Francais Suisse
72 fi fi-latin1 fi Suomi
73 is is-latin1 is_IS Islenska
74 it it it_IT Italiano
75 no no-latin1 nb_NO Norske
76 jp jp106 jp_JP Japanese
77 hu hu hu Magyar
78 po pl2 pl_PL Polski
79 br br-abnt2 pt_PT Brazil
80 pt pt-latin1 pt_PT Portugues
81 ru ru ru_RU Russian
82 se se-lat6 sv_SE Svenskt
83 sl slovene sl_SI Slovenski
84 tr tr_q-latin5 tr_TR Turk
85 EOT
86 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
88 LABEL exit
89 MENU LABEL Back to main menu
90 MENU EXIT
91 MENU END
92 EOT
93 sed -i 's/^LABEL us$/&\n MENU DEFAULT/' $fs/boot/isolinux/i18n.cfg
94 for kbd in $(cd $src ; ls *.kbd); do
95 [ -s $src/$kbd ] || echo "Invalid file $kbd"
96 grep -q " $kbd " $fs/boot/isolinux/i18n.cfg && continue
97 echo "Missing: file $kbd"
98 done
99 chown root.root $fs/boot/isolinux/*
100 }
102 # Pre and post install commands for Tazpkg.
103 post_install()
104 {
105 sed -i "s/XXXXXXXX/$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.cfg
106 }