wok view syslinux/receipt @ rev 13286
get-wfica: allow downloadId arg
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Aug 25 11:17:45 2012 +0200 (2012-08-25) |
parents | e84d6bf204b2 |
children | 3fd2f1836a8c |
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 memtest"
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 for i in ${kbd/,/ }; do
48 [ -e $src/$i.kbd ] || continue
49 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
51 LABEL $label
52 MENU LABEL $menu
53 com32 c32box.c32
54 append kbdmap cpio.kbd $i.kbd lang=$loc kmap=$i
55 EOT
56 break
57 done
58 done <<EOT
59 br br-abnt2 pt_PT@euro Brazil
60 cz cz-lat2 cs_CZ Cesky
61 dk dk-latin1 da_DK Dansk
62 de de-latin1 de_DE@euro Deutsch
63 de_CH\ deCH de_CH-latin1 de_DE Deutsch Schweitz
64 sg sg-latin1 de_DE Deutsch Schweitz (sg)
65 nl nl2 nl_NL@euro Dutch
66 en uk C English UK
67 us us C English US
68 us_ac\ usac us-acentos C English US (acentos)
69 us_dv\ usdv dvorak C English US (dvorak)
70 us_dl\ usdl dvorak-l C English US (dvorak-l)
71 us_dr\ usdr dvorak-r C English US (dvorak-r)
72 es es es_ES@euro Espanol
73 fr fr-latin1 fr_FR@euro Francais
74 be be-latin1 fr_FR@euro Francais Belgique
75 ca cf fr_FR Francais Canada
76 fr_CH\ frCH fr_CH-latin1 fr_FR Francais Suisse
77 cr hr,croat hr_HR Hvratski
78 is is-latin1 is_IS Islenska
79 it it it_IT@euro Italiano
80 jp jp106 ja_JP Japanese
81 hu hu hu_HU Magyar
82 no no-latin1 nn_NO Norske
83 po pl2 pl_PL Polski
84 pt pt-latin1 pt_PT@euro Portugues
85 ru ru ru_UA Russian
86 sl slovene sl_SI Slovenski
87 fi fi-latin1 fi_FI@euro Suomi
88 se se-lat6 sv_SE Svenskt
89 tr trq tr_TR Turk
90 tr2 tr_q-latin5 tr_TR Turk latin5
91 EOT
92 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
94 LABEL exit
95 MENU LABEL Back to main menu
96 MENU EXIT
97 MENU END
98 EOT
99 sed -i 's/^LABEL us$/&\n MENU DEFAULT/' $fs/boot/isolinux/i18n.cfg
100 for kbd in $(cd $src ; ls *.kbd); do
101 [ -s $src/$kbd ] || echo "Invalid file $kbd"
102 grep -q " $kbd " $fs/boot/isolinux/i18n.cfg && continue
103 echo "Missing: file $kbd"
104 done
105 chown root.root $fs/boot/isolinux/*
106 }
108 # Pre and post install commands for Tazpkg.
109 post_install()
110 {
111 sed -i "s/XXXXXXXX/$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.cfg
112 }