wok-6.x view syslinux/receipt @ rev 17300

Update weechat to 1.0.1 (needs further testing, if unstable somehow then
downgrade to at most 0.4.3).
author necrophcodr <tcg.thegamer@gmail.com>
date Thu Oct 30 23:27:48 2014 +0100 (2014-10-30)
parents 63ca4e6217bd
children aa3f469a31d7
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 LICENSE="GPL2"
9 TARBALL="$PACKAGE-$VERSION.tar.xz"
10 WEB_SITE="http://syslinux.zytor.com/"
11 WGET_URL="ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/$TARBALL"
12 CONFIG_FILES="/boot/isolinux"
14 DEPENDS="ipxe memtest"
15 BUILD_DEPENDS="kbd-base perl nasm dev86 lzma mingw32-gcc upx posixovl \
16 util-linux-uuid-dev"
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 compile_rules()
20 {
21 cd $src
22 rm -f $src/core/isolinux.bin
23 patch -p 0 < $stuff/extra/iso9660.u
24 patch -p 0 < $stuff/extra/readconfig.u
25 #patch -p 0 < $stuff/extra/fs.u
26 cp $stuff/tools/isohybrid.sh .
27 cp $stuff/extra/md5sum.c com32/modules
28 grep -q md5sum.c32 com32/modules/Makefile ||
29 sed -i 's/ifcpu64.c32/ifcpu64.c32 md5sum.c32/' com32/modules/Makefile
30 make clean
31 make all 2>&1 | sed 's/NO_WERROR=1/NO_Werror=1/;/syslinux64.exe/d'
32 make -C core
33 make -C com32
34 ./isohybrid.sh --build
35 sed -i 's/loadkeys -m/loadkeys -u -m/' utils/keytab-lilo # for ru.kbd
36 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do
37 [ "$(basename $(dirname $i))" = "include" ] && continue
38 j=$(basename $i)
39 j=${j%.map.gz}.kbd
40 utils/keytab-lilo /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j
41 done
42 cp -a $stuff/iso2exe .
43 make -C iso2exe
44 }
46 # Rules to gen a SliTaz package suitable for Tazpkg.
47 genpkg_rules()
48 {
49 mkdir -p $fs/boot/isolinux
50 cp -a $src/core/isolinux.bin $fs/boot/isolinux
51 cp -a $src/com32/modules/md5sum.c32 $fs/boot/isolinux/c32box.c32
52 cp -a $src/com32/menu/vesamenu.c32 $fs/boot/isolinux
53 # $stuff/isolinux.msg is the old way the have a splash image.
54 cp $stuff/*.cfg $stuff/*.txt $stuff/help.* $stuff/opts.* $fs/boot/isolinux
55 rm -f $fs/boot/isolinux/common.cfg $fs/boot/isolinux/default.cfg
56 rm -f $fs/boot/isolinux/display.txt
57 ( cd $src ; ls *.kbd | cpio -o -H newc ) > $fs/boot/isolinux/cpio.kbd
58 while read label kbd loc menu; do
59 for i in ${kbd/,/ }; do
60 [ -e $src/$i.kbd ] || continue
61 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
63 # ${kbd/,/.kbd or }.kbd keyboard
64 LABEL $label
65 MENU LABEL $menu
66 com32 c32box.c32
67 append kbdmap cpio.kbd $i.kbd lang=$loc kmap=${kbd#*,}
68 EOT
69 break
70 done
71 done <<EOT
72 br br-abnt2 pt_BR Brazil (abnt2)
73 br_ac\ brac us-acentos pt_BR Brazil (us-acentos)
74 cz cz-lat2 C Cesky
75 dk dk-latin1 C Dansk
76 de de-latin1 de_DE Deutsch
77 de_CH\ deCH de_CH-latin1 de_DE Deutsch Schweiz
78 sg sg-latin1 de_DE Deutsch Schweiz (sg)
79 nl nl2 C Dutch
80 gr gr C Ellinika
81 en uk en_GB English UK
82 us us en_US English US
83 us_ac\ usac us-acentos en_US English US (acentos)
84 us_dv\ usdv dvorak en_US English US (dvorak)
85 us_dl\ usdl dvorak-l en_US English US (dvorak-l)
86 us_dr\ usdr dvorak-r en_US English US (dvorak-r)
87 es es es_ES Espanol
88 fr fr-latin1 fr_FR Francais
89 be be-latin1 fr_FR Francais Belgique
90 ca cf fr_FR Francais Canada
91 fr_CH\ frCH fr_CH-latin1 fr_FR Francais Suisse
92 cr hr,croat C Hvratski
93 is is-latin1 C Islenska
94 it it it_IT Italiano
95 jp jp106 C Japanese
96 hu hu C Magyar
97 no no-latin1 C Norske
98 po pl2 C Polski
99 pt pt-latin1 pt_PT Portugues
100 ru ru ru_RU Russian
101 sl slovene C Slovenski
102 fi fi-latin1 C Suomi
103 se se-lat6 C Svenskt
104 tr trq C Turk
105 tr2 tr_q-latin5 C Turk latin5
106 EOT
107 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
109 LABEL exit
110 MENU LABEL Back to main menu
111 MENU EXIT
112 MENU END
113 EOT
114 sed -i 's/^LABEL us$/&\n MENU DEFAULT/' $fs/boot/isolinux/i18n.cfg
115 for kbd in $(cd $src ; ls *.kbd); do
116 [ -s $src/$kbd ] || echo "Invalid file $kbd"
117 grep -q " $kbd " $fs/boot/isolinux/i18n.cfg && continue
118 echo "Missing: file $kbd"
119 done
120 chown root.root $fs/boot/isolinux/*
121 }
123 # Pre and post install commands for Tazpkg.
124 post_install()
125 {
126 sed -i "s/XXXXXXXX/$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.cfg
127 }