wok-next view syslinux/receipt @ rev 14569
Up xorg-libXp (1.0.2), xorg-libXinerama (1.1.3), xorg-libXi (1.7.2)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Fri May 24 12:05:11 2013 +0200 (2013-05-24) |
parents | 4ba48a527870 |
children | eb4d1b707754 |
line source
1 # SliTaz package receipt.
3 PACKAGE="syslinux"
4 VERSION="4.06"
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 dev86 lzma mingw32-gcc upx posixovl"
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 patch -p 0 < $stuff/extra/iso9660.u
20 patch -p 0 < $stuff/extra/readconfig.u
21 patch -p 0 < $stuff/extra/fs.u
22 cp $stuff/tools/isohybrid.sh .
23 cp $stuff/extra/md5sum.c com32/modules
24 grep -q md5sum.c32 com32/modules/Makefile ||
25 sed -i 's/ifcpu64.c32/ifcpu64.c32 md5sum.c32/' com32/modules/Makefile
26 make -C com32
27 ./isohybrid.sh --build
28 sed -i 's/loadkeys -m/loadkeys -u -m/' utils/keytab-lilo # for ru.kbd
29 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do
30 [ "$(basename $(dirname $i))" = "include" ] && continue
31 j=$(basename $i)
32 j=${j%.map.gz}.kbd
33 utils/keytab-lilo /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j
34 done
35 cp -a $stuff/iso2exe .
36 make -C iso2exe
37 }
39 # Rules to gen a SliTaz package suitable for Tazpkg.
40 genpkg_rules()
41 {
42 mkdir -p $fs/boot/isolinux
43 cp -a $src/core/isolinux.bin $fs/boot/isolinux
44 cp -a $src/com32/modules/md5sum.c32 $fs/boot/isolinux/c32box.c32
45 cp -a $src/com32/menu/vesamenu.c32 $fs/boot/isolinux
46 # $stuff/isolinux.msg is the old way the have a splash image.
47 cp $stuff/*.cfg $stuff/*.txt $stuff/help.* $stuff/opts.* $fs/boot/isolinux
48 rm -f $fs/boot/isolinux/common.cfg $fs/boot/isolinux/default.cfg
49 rm -f $fs/boot/isolinux/display.txt
50 ( cd $src ; ls *.kbd | cpio -o -H newc ) > $fs/boot/isolinux/cpio.kbd
51 while read label kbd loc menu; do
52 for i in ${kbd/,/ }; do
53 [ -e $src/$i.kbd ] || continue
54 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
56 # ${kbd/,/.kbd or }.kbd keyboard
57 LABEL $label
58 MENU LABEL $menu
59 com32 c32box.c32
60 append kbdmap cpio.kbd $i.kbd lang=$loc kmap=${kbd#*,}
61 EOT
62 break
63 done
64 done <<EOT
65 br br-abnt2 pt_BR Brazil
66 cz cz-lat2 C Cesky
67 dk dk-latin1 C Dansk
68 de de-latin1 de_DE Deutsch
69 de_CH\ deCH de_CH-latin1 de_DE Deutsch Schweitz
70 sg sg-latin1 de_DE Deutsch Schweitz (sg)
71 nl nl2 C Dutch
72 gr gr C Ellinika
73 en uk en_GB English UK
74 us us en_US English US
75 us_ac\ usac us-acentos en_US English US (acentos)
76 us_dv\ usdv dvorak en_US English US (dvorak)
77 us_dl\ usdl dvorak-l en_US English US (dvorak-l)
78 us_dr\ usdr dvorak-r en_US English US (dvorak-r)
79 es es es_ES Espanol
80 fr fr-latin1 fr_FR Francais
81 be be-latin1 fr_FR Francais Belgique
82 ca cf fr_FR Francais Canada
83 fr_CH\ frCH fr_CH-latin1 fr_FR Francais Suisse
84 cr hr,croat C Hvratski
85 is is-latin1 C Islenska
86 it it it_IT Italiano
87 jp jp106 C Japanese
88 hu hu C Magyar
89 no no-latin1 C Norske
90 po pl2 C Polski
91 pt pt-latin1 pt_PT Portugues
92 ru ru ru_RU Russian
93 sl slovene C Slovenski
94 fi fi-latin1 C Suomi
95 se se-lat6 C Svenskt
96 tr trq C Turk
97 tr2 tr_q-latin5 C Turk latin5
98 EOT
99 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
101 LABEL exit
102 MENU LABEL Back to main menu
103 MENU EXIT
104 MENU END
105 EOT
106 sed -i 's/^LABEL us$/&\n MENU DEFAULT/' $fs/boot/isolinux/i18n.cfg
107 for kbd in $(cd $src ; ls *.kbd); do
108 [ -s $src/$kbd ] || echo "Invalid file $kbd"
109 grep -q " $kbd " $fs/boot/isolinux/i18n.cfg && continue
110 echo "Missing: file $kbd"
111 done
112 chown root.root $fs/boot/isolinux/*
113 }
115 # Pre and post install commands for Tazpkg.
116 post_install()
117 {
118 sed -i "s/XXXXXXXX/$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.cfg
119 }