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