wok-6.x annotate syslinux/receipt @ rev 17157
syslinux: fix rockridge (again)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Mon Sep 15 23:31:45 2014 +0200 (2014-09-15) |
parents | 4c85e6cbb92d |
children | 631e4e76302c |
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@11579 | 11 WGET_URL="ftp://ftp.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@17157 | 15 BUILD_DEPENDS="kbd-base perl nasm dev86 lzma mingw32-gcc upx posixovl \ |
pascal@17157 | 16 util-linux-uuid-dev" |
pascal@786 | 17 |
pascal@786 | 18 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@786 | 19 compile_rules() |
pascal@786 | 20 { |
pascal@829 | 21 cd $src |
pascal@17157 | 22 rm -f $src/core/isolinux.bin |
pascal@13969 | 23 patch -p 0 < $stuff/extra/iso9660.u |
pascal@13747 | 24 patch -p 0 < $stuff/extra/readconfig.u |
pascal@17157 | 25 #patch -p 0 < $stuff/extra/fs.u |
pascal@8974 | 26 cp $stuff/tools/isohybrid.sh . |
pascal@12210 | 27 cp $stuff/extra/md5sum.c com32/modules |
pascal@12273 | 28 grep -q md5sum.c32 com32/modules/Makefile || |
pascal@12273 | 29 sed -i 's/ifcpu64.c32/ifcpu64.c32 md5sum.c32/' com32/modules/Makefile |
pascal@17157 | 30 make clean |
pascal@17157 | 31 make 2>&1 | sed 's/NO_WERROR=1/NO_Werror=1/;/syslinux64.exe/d' |
pascal@17157 | 32 make -C core |
pascal@3665 | 33 make -C com32 |
pascal@4513 | 34 ./isohybrid.sh --build |
pascal@14265 | 35 sed -i 's/loadkeys -m/loadkeys -u -m/' utils/keytab-lilo # for ru.kbd |
pascal@829 | 36 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do |
pascal@829 | 37 [ "$(basename $(dirname $i))" = "include" ] && continue |
pascal@829 | 38 j=$(basename $i) |
pascal@829 | 39 j=${j%.map.gz}.kbd |
pascal@14265 | 40 utils/keytab-lilo /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j |
pascal@829 | 41 done |
pascal@14152 | 42 cp -a $stuff/iso2exe . |
pascal@14152 | 43 make -C iso2exe |
pascal@786 | 44 } |
pankso@4 | 45 |
pankso@4 | 46 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4 | 47 genpkg_rules() |
pankso@4 | 48 { |
pankso@4 | 49 mkdir -p $fs/boot/isolinux |
pascal@986 | 50 cp -a $src/core/isolinux.bin $fs/boot/isolinux |
pascal@12287 | 51 cp -a $src/com32/modules/md5sum.c32 $fs/boot/isolinux/c32box.c32 |
pankso@11657 | 52 cp -a $src/com32/menu/vesamenu.c32 $fs/boot/isolinux |
pankso@11657 | 53 # $stuff/isolinux.msg is the old way the have a splash image. |
pankso@11657 | 54 cp $stuff/*.cfg $stuff/*.txt $stuff/help.* $stuff/opts.* $fs/boot/isolinux |
pascal@12734 | 55 rm -f $fs/boot/isolinux/common.cfg $fs/boot/isolinux/default.cfg |
pascal@12735 | 56 rm -f $fs/boot/isolinux/display.txt |
pascal@12287 | 57 ( cd $src ; ls *.kbd | cpio -o -H newc ) > $fs/boot/isolinux/cpio.kbd |
pascal@12287 | 58 while read label kbd loc menu; do |
pascal@13277 | 59 for i in ${kbd/,/ }; do |
pascal@13277 | 60 [ -e $src/$i.kbd ] || continue |
pascal@13277 | 61 cat >> $fs/boot/isolinux/i18n.cfg <<EOT |
pascal@12287 | 62 |
pascal@13287 | 63 # ${kbd/,/.kbd or }.kbd keyboard |
pascal@12287 | 64 LABEL $label |
pascal@12287 | 65 MENU LABEL $menu |
pascal@12287 | 66 com32 c32box.c32 |
pascal@13750 | 67 append kbdmap cpio.kbd $i.kbd lang=$loc kmap=${kbd#*,} |
pascal@1721 | 68 EOT |
pascal@13277 | 69 break |
pascal@13277 | 70 done |
pascal@1721 | 71 done <<EOT |
claudinei@16687 | 72 br br-abnt2 pt_BR Brazil (abnt2) |
claudinei@16687 | 73 br_ac\ brac us-acentos pt_BR Brazil (us-acentos) |
pascal@13749 | 74 cz cz-lat2 C Cesky |
pascal@13749 | 75 dk dk-latin1 C Dansk |
pascal@13749 | 76 de de-latin1 de_DE Deutsch |
pascal@15922 | 77 de_CH\ deCH de_CH-latin1 de_DE Deutsch Schweiz |
pascal@15922 | 78 sg sg-latin1 de_DE Deutsch Schweiz (sg) |
pascal@13749 | 79 nl nl2 C Dutch |
pascal@14497 | 80 gr gr C Ellinika |
pascal@13749 | 81 en uk en_GB English UK |
pascal@13749 | 82 us us en_US English US |
pascal@13749 | 83 us_ac\ usac us-acentos en_US English US (acentos) |
pascal@13749 | 84 us_dv\ usdv dvorak en_US English US (dvorak) |
pascal@13749 | 85 us_dl\ usdl dvorak-l en_US English US (dvorak-l) |
pascal@13749 | 86 us_dr\ usdr dvorak-r en_US English US (dvorak-r) |
pascal@13749 | 87 es es es_ES Espanol |
pascal@13749 | 88 fr fr-latin1 fr_FR Francais |
pascal@13749 | 89 be be-latin1 fr_FR Francais Belgique |
pascal@13749 | 90 ca cf fr_FR Francais Canada |
pascal@13749 | 91 fr_CH\ frCH fr_CH-latin1 fr_FR Francais Suisse |
pascal@13749 | 92 cr hr,croat C Hvratski |
pascal@13749 | 93 is is-latin1 C Islenska |
pascal@13749 | 94 it it it_IT Italiano |
pascal@13749 | 95 jp jp106 C Japanese |
pascal@13749 | 96 hu hu C Magyar |
pascal@13749 | 97 no no-latin1 C Norske |
pascal@13749 | 98 po pl2 C Polski |
pascal@13749 | 99 pt pt-latin1 pt_PT Portugues |
pascal@13749 | 100 ru ru ru_RU Russian |
pascal@13749 | 101 sl slovene C Slovenski |
pascal@13749 | 102 fi fi-latin1 C Suomi |
pascal@13749 | 103 se se-lat6 C Svenskt |
pascal@13749 | 104 tr trq C Turk |
pascal@13749 | 105 tr2 tr_q-latin5 C Turk latin5 |
pascal@12287 | 106 EOT |
pascal@12287 | 107 cat >> $fs/boot/isolinux/i18n.cfg <<EOT |
pascal@12287 | 108 |
pascal@12287 | 109 LABEL exit |
pascal@12287 | 110 MENU LABEL Back to main menu |
pascal@12287 | 111 MENU EXIT |
pascal@12287 | 112 MENU END |
pascal@1721 | 113 EOT |
pascal@12349 | 114 sed -i 's/^LABEL us$/&\n MENU DEFAULT/' $fs/boot/isolinux/i18n.cfg |
pascal@12349 | 115 for kbd in $(cd $src ; ls *.kbd); do |
pascal@12355 | 116 [ -s $src/$kbd ] || echo "Invalid file $kbd" |
pascal@12354 | 117 grep -q " $kbd " $fs/boot/isolinux/i18n.cfg && continue |
pascal@12354 | 118 echo "Missing: file $kbd" |
pascal@12349 | 119 done |
pascal@283 | 120 chown root.root $fs/boot/isolinux/* |
pankso@4 | 121 } |
pascal@786 | 122 |
pascal@1687 | 123 # Pre and post install commands for Tazpkg. |
pascal@1687 | 124 post_install() |
pascal@1687 | 125 { |
pascal@11663 | 126 sed -i "s/XXXXXXXX/$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.cfg |
pascal@1687 | 127 } |