wok view syslinux/receipt @ rev 13282
Up shaarli (0.0.40beta)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri Aug 24 13:46:47 2012 +0200 (2012-08-24) |
parents | 9bc56635d952 |
children | e84d6bf204b2 |
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 cr hr,croat hr_HR Hvratski
60 cz cz-lat2 cs_CZ Cesky
61 de de-latin1 de_DE@euro Deutsch
62 de_CH\ deCH de_CH-latin1 de_DE Deutsch Schweitz
63 dk dk-latin1 da_DK Dansk
64 en uk C English UK
65 us us C English US
66 us_ac\ usac us-acentos C English US (acentos)
67 us_dv\ usdv dvorak C English US (dvorak)
68 us_dl\ usdl dvorak-l C English US (dvorak-l)
69 us_dr\ usdr dvorak-r C English US (dvorak-r)
70 es es es_ES@euro Espanol
71 fr fr-latin1 fr_FR@euro Francais
72 be be-latin1 fr_FR@euro Francais Belgique
73 ca cf fr_FR Francais Canada
74 fr_CH\ frCH fr_CH-latin1 fr_FR Francais Suisse
75 fi fi-latin1 fi_FI@euro Suomi
76 is is-latin1 is_IS Islenska
77 it it it_IT@euro Italiano
78 no no-latin1 nn_NO Norske
79 jp jp106 ja_JP Japanese
80 hu hu hu_HU Magyar
81 po pl2 pl_PL Polski
82 br br-abnt2 pt_PT@euro Brazil
83 pt pt-latin1 pt_PT@euro Portugues
84 ru ru ru_UA Russian
85 se se-lat6 sv_SE Svenskt
86 sl slovene sl_SI Slovenski
87 tr tr_q-latin5 tr_TR Turk
88 EOT
89 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
91 LABEL exit
92 MENU LABEL Back to main menu
93 MENU EXIT
94 MENU END
95 EOT
96 sed -i 's/^LABEL us$/&\n MENU DEFAULT/' $fs/boot/isolinux/i18n.cfg
97 for kbd in $(cd $src ; ls *.kbd); do
98 [ -s $src/$kbd ] || echo "Invalid file $kbd"
99 grep -q " $kbd " $fs/boot/isolinux/i18n.cfg && continue
100 echo "Missing: file $kbd"
101 done
102 chown root.root $fs/boot/isolinux/*
103 }
105 # Pre and post install commands for Tazpkg.
106 post_install()
107 {
108 sed -i "s/XXXXXXXX/$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.cfg
109 }