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