wok view syslinux/receipt @ rev 18470
syslinux: remove Deutsch Schweiz, Japanese & Turkce latin5 from boot menu
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Oct 03 15:13:46 2015 +0200 (2015-10-03) |
parents | ec332cdcdbc1 |
children | 325d6b98268c |
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="https://www.kernel.org/pub/linux/utils/boot/syslinux/$TARBALL"
12 CONFIG_FILES="/boot/isolinux"
14 DEPENDS="ipxe memtest"
15 BUILD_DEPENDS="wget kbd-base perl nasm dev86 lzma mingw32-gcc upx posixovl \
16 util-linux-uuid-dev advancecomp libidn"
18 # Rules to gen a SliTaz package suitable for Tazpkg.
19 compile_rules()
20 {
21 rm -f $src/core/isolinux.bin
22 patch -p 0 < $stuff/extra/iso9660.u
23 patch -p 0 < $stuff/extra/readconfig.u
24 #patch -p 0 < $stuff/extra/fs.u
25 cp $stuff/tools/isohybrid.sh .
26 cp $stuff/extra/md5sum.c com32/modules
27 grep -q md5sum.c32 com32/modules/Makefile ||
28 sed -i 's/ifcpu64.c32/ifcpu64.c32 md5sum.c32/' com32/modules/Makefile
29 export LDFLAGS=""
30 make clean
31 echo "make all: LDFLAGS=$LDFLAGS"
32 make all 2>&1 | sed 's/NO_WERROR=1/NO_Werror=1/;/syslinux64.exe/d'
33 echo "make core: LDFLAGS=$LDFLAGS"
34 make -C core
35 make -C com32
36 ./isohybrid.sh --build
37 sed -i 's/loadkeys -m/loadkeys -u -m/' utils/keytab-lilo # for ru.kbd
38 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do
39 [ "$(basename $(dirname $i))" = "include" ] && continue
40 j=$(basename $i)
41 j=${j%.map.gz}.kbd
42 utils/keytab-lilo /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j
43 done
44 cp -a $stuff/iso2exe .
45 make -C iso2exe
46 }
48 # Rules to gen a SliTaz package suitable for Tazpkg.
49 genpkg_rules()
50 {
51 mkdir -p $fs/boot/isolinux
52 cp -a $src/core/isolinux.bin $fs/boot/isolinux
53 cp -a $src/com32/modules/md5sum.c32 $fs/boot/isolinux/c32box.c32
54 cp -a $src/com32/menu/vesamenu.c32 $fs/boot/isolinux
55 # $stuff/isolinux.msg is the old way the have a splash image.
56 cp $stuff/*.cfg $stuff/*.txt $stuff/help.* $stuff/opts.* $fs/boot/isolinux
57 rm -f $fs/boot/isolinux/common.cfg $fs/boot/isolinux/default.cfg
58 rm -f $fs/boot/isolinux/display.txt
59 ( cd $src ; ls *.kbd | cpio -o -H newc ) > $fs/boot/isolinux/cpio.kbd
60 while read label kbd loc menu; do
61 for i in ${kbd/,/ }; do
62 [ -e $src/$i.kbd ] || continue
63 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
65 # ${kbd/,/.kbd or }.kbd keyboard
66 LABEL $label
67 MENU LABEL $menu
68 com32 c32box.c32
69 append kbdmap cpio.kbd $i.kbd lang=$loc kmap=${kbd#*,}
70 EOT
71 break
72 done
73 done <<EOT
74 br br-abnt2 pt_BR Brasil (abnt2)
75 br_ac\ brac us-acentos pt_BR Brasil (us-acentos)
76 cz cz-lat2 cs_CZ Cesky
77 dk dk-latin1 da_DK Dansk
78 de de-latin1 de_DE Deutsch
79 de_CH\ deCH de_CH-latin1 de_CH Deutsch Schweiz
80 gr gr el_GR 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_BE Francais Belgique
90 ca cf fr_CA Francais Canada
91 fr_CH\ frCH fr_CH-latin1 fr_CH Francais Suisse
92 cr hr,croat hr_HR Hrvatski
93 is is-latin1 is_IS Islenska
94 it it it_IT Italiano
95 hu hu hu_HU Magyar
96 nl nl2 nl_NL Nederlands
97 no\ nb no-latin1 nb_NO Norsk (Bokmal)
98 nn no-latin1 nn_NO Norsk (Nynorsk)
99 po pl2 pl_PL Polski
100 pt pt-latin1 pt_PT Portugues
101 ru ru ru_RU Russian
102 sl slovene sl_SI Slovenski
103 fi fi fi_FI Suomi
104 se se-lat6 sv_SE Svenska
105 tr trq tr_TR Turkce
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 }