wok-current annotate syslinux/receipt @ rev 18090
syslinux: update language codes (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon May 25 16:41:34 2015 +0200 (2015-05-25) |
parents | cde3bdb833ab |
children | ec332cdcdbc1 |
rev | line source |
---|---|
pankso@4 | 1 # SliTaz package receipt. |
pankso@4 | 2 |
pankso@4 | 3 PACKAGE="syslinux" |
pascal@13546 | 4 VERSION="4.06" |
pankso@4 | 5 CATEGORY="base-system" |
pankso@4 | 6 SHORT_DESC="LiveCD ISO bootloader (isolinux)" |
pankso@4 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@14658 | 8 LICENSE="GPL2" |
pascal@11579 | 9 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@4 | 10 WEB_SITE="http://syslinux.zytor.com/" |
pascal@17923 | 11 WGET_URL="https://www.kernel.org/pub/linux/utils/boot/syslinux/$TARBALL" |
pascal@17157 | 12 CONFIG_FILES="/boot/isolinux" |
pascal@17157 | 13 |
pascal@15369 | 14 DEPENDS="ipxe memtest" |
pascal@17923 | 15 BUILD_DEPENDS="wget kbd-base perl nasm dev86 lzma mingw32-gcc upx posixovl \ |
mojo@18027 | 16 util-linux-uuid-dev advancecomp libidn" |
pascal@786 | 17 |
pascal@786 | 18 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@786 | 19 compile_rules() |
pascal@786 | 20 { |
pascal@17157 | 21 rm -f $src/core/isolinux.bin |
pascal@13969 | 22 patch -p 0 < $stuff/extra/iso9660.u |
pascal@13747 | 23 patch -p 0 < $stuff/extra/readconfig.u |
pascal@17157 | 24 #patch -p 0 < $stuff/extra/fs.u |
pascal@8974 | 25 cp $stuff/tools/isohybrid.sh . |
pascal@12210 | 26 cp $stuff/extra/md5sum.c com32/modules |
pascal@12273 | 27 grep -q md5sum.c32 com32/modules/Makefile || |
pascal@12273 | 28 sed -i 's/ifcpu64.c32/ifcpu64.c32 md5sum.c32/' com32/modules/Makefile |
pascal@17456 | 29 export LDFLAGS="" |
pascal@17157 | 30 make clean |
pascal@17456 | 31 echo "make all: LDFLAGS=$LDFLAGS" |
pascal@17158 | 32 make all 2>&1 | sed 's/NO_WERROR=1/NO_Werror=1/;/syslinux64.exe/d' |
pascal@17454 | 33 echo "make core: LDFLAGS=$LDFLAGS" |
pascal@17157 | 34 make -C core |
pascal@3665 | 35 make -C com32 |
pascal@4513 | 36 ./isohybrid.sh --build |
pascal@14265 | 37 sed -i 's/loadkeys -m/loadkeys -u -m/' utils/keytab-lilo # for ru.kbd |
pascal@829 | 38 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do |
pascal@829 | 39 [ "$(basename $(dirname $i))" = "include" ] && continue |
pascal@829 | 40 j=$(basename $i) |
pascal@829 | 41 j=${j%.map.gz}.kbd |
pascal@14265 | 42 utils/keytab-lilo /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j |
pascal@829 | 43 done |
pascal@14152 | 44 cp -a $stuff/iso2exe . |
pascal@14152 | 45 make -C iso2exe |
pascal@786 | 46 } |
pankso@4 | 47 |
pankso@4 | 48 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4 | 49 genpkg_rules() |
pankso@4 | 50 { |
pankso@4 | 51 mkdir -p $fs/boot/isolinux |
pascal@986 | 52 cp -a $src/core/isolinux.bin $fs/boot/isolinux |
pascal@12287 | 53 cp -a $src/com32/modules/md5sum.c32 $fs/boot/isolinux/c32box.c32 |
pankso@11657 | 54 cp -a $src/com32/menu/vesamenu.c32 $fs/boot/isolinux |
pankso@11657 | 55 # $stuff/isolinux.msg is the old way the have a splash image. |
pankso@11657 | 56 cp $stuff/*.cfg $stuff/*.txt $stuff/help.* $stuff/opts.* $fs/boot/isolinux |
pascal@12734 | 57 rm -f $fs/boot/isolinux/common.cfg $fs/boot/isolinux/default.cfg |
pascal@12735 | 58 rm -f $fs/boot/isolinux/display.txt |
pascal@12287 | 59 ( cd $src ; ls *.kbd | cpio -o -H newc ) > $fs/boot/isolinux/cpio.kbd |
pascal@12287 | 60 while read label kbd loc menu; do |
pascal@13277 | 61 for i in ${kbd/,/ }; do |
pascal@13277 | 62 [ -e $src/$i.kbd ] || continue |
pascal@13277 | 63 cat >> $fs/boot/isolinux/i18n.cfg <<EOT |
pascal@12287 | 64 |
pascal@13287 | 65 # ${kbd/,/.kbd or }.kbd keyboard |
pascal@12287 | 66 LABEL $label |
pascal@12287 | 67 MENU LABEL $menu |
pascal@12287 | 68 com32 c32box.c32 |
pascal@13750 | 69 append kbdmap cpio.kbd $i.kbd lang=$loc kmap=${kbd#*,} |
pascal@1721 | 70 EOT |
pascal@13277 | 71 break |
pascal@13277 | 72 done |
pascal@1721 | 73 done <<EOT |
pascal@17909 | 74 br br-abnt2 pt_BR Brasil (abnt2) |
pascal@17909 | 75 br_ac\ brac us-acentos pt_BR Brasil (us-acentos) |
pascal@18089 | 76 cz cz-lat2 cs_CZ Cesky |
pascal@18089 | 77 dk dk-latin1 da_DK Dansk |
pascal@13749 | 78 de de-latin1 de_DE Deutsch |
pascal@15922 | 79 de_CH\ deCH de_CH-latin1 de_DE Deutsch Schweiz |
pascal@15922 | 80 sg sg-latin1 de_DE Deutsch Schweiz (sg) |
pascal@18089 | 81 gr gr el_GR Ellinika |
pascal@13749 | 82 en uk en_GB English UK |
pascal@13749 | 83 us us en_US English US |
pascal@13749 | 84 us_ac\ usac us-acentos en_US English US (acentos) |
pascal@13749 | 85 us_dv\ usdv dvorak en_US English US (dvorak) |
pascal@13749 | 86 us_dl\ usdl dvorak-l en_US English US (dvorak-l) |
pascal@13749 | 87 us_dr\ usdr dvorak-r en_US English US (dvorak-r) |
pascal@13749 | 88 es es es_ES Espanol |
pascal@13749 | 89 fr fr-latin1 fr_FR Francais |
pascal@13749 | 90 be be-latin1 fr_FR Francais Belgique |
pascal@13749 | 91 ca cf fr_FR Francais Canada |
pascal@13749 | 92 fr_CH\ frCH fr_CH-latin1 fr_FR Francais Suisse |
pascal@18089 | 93 cr hr,croat hr_HR Hrvatski |
pascal@18089 | 94 is is-latin1 is_IS Islenska |
pascal@13749 | 95 it it it_IT Italiano |
pascal@18089 | 96 jp jp106 ja_JP Japanese |
pascal@18089 | 97 hu hu hu_HU Magyar |
pascal@18089 | 98 nl nl2 nl_NL Nederlands |
pascal@18090 | 99 no\ nb no-latin1 nb_NO Norsk (Bokmal) |
pascal@18090 | 100 nn no-latin1 nn_NO Norsk (Nynorsk) |
pascal@18089 | 101 po pl2 pl_PL Polski |
pascal@13749 | 102 pt pt-latin1 pt_PT Portugues |
pascal@13749 | 103 ru ru ru_RU Russian |
pascal@18089 | 104 sl slovene sl_SL Slovenski |
pascal@18089 | 105 fi fi fi_FI Suomi |
pascal@18089 | 106 se se-lat6 sv_SE Svenska |
pascal@18089 | 107 tr trq tr_TR Turkce |
pascal@18089 | 108 tr2 tr_q-latin5 tr_TR Turkce latin5 |
pascal@12287 | 109 EOT |
pascal@12287 | 110 cat >> $fs/boot/isolinux/i18n.cfg <<EOT |
pascal@12287 | 111 |
pascal@12287 | 112 LABEL exit |
pascal@12287 | 113 MENU LABEL Back to main menu |
pascal@12287 | 114 MENU EXIT |
pascal@12287 | 115 MENU END |
pascal@1721 | 116 EOT |
pascal@12349 | 117 sed -i 's/^LABEL us$/&\n MENU DEFAULT/' $fs/boot/isolinux/i18n.cfg |
pascal@12349 | 118 for kbd in $(cd $src ; ls *.kbd); do |
pascal@12355 | 119 [ -s $src/$kbd ] || echo "Invalid file $kbd" |
pascal@12354 | 120 grep -q " $kbd " $fs/boot/isolinux/i18n.cfg && continue |
pascal@12354 | 121 echo "Missing: file $kbd" |
pascal@12349 | 122 done |
pascal@283 | 123 chown root.root $fs/boot/isolinux/* |
pankso@4 | 124 } |
pascal@786 | 125 |
pascal@1687 | 126 # Pre and post install commands for Tazpkg. |
pascal@1687 | 127 post_install() |
pascal@1687 | 128 { |
pascal@11663 | 129 sed -i "s/XXXXXXXX/$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.cfg |
pascal@1687 | 130 } |