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