wok annotate syslinux/receipt @ rev 16804
Up libnl (3.2.24)
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jul 06 10:10:50 2014 +0200 (2014-07-06) |
parents | 801fc6a118a2 |
children | 63ca4e6217bd |
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 |
claudinei@16687 | 66 br br-abnt2 pt_BR Brazil (abnt2) |
claudinei@16687 | 67 br_ac\ brac us-acentos pt_BR Brazil (us-acentos) |
pascal@13749 | 68 cz cz-lat2 C Cesky |
pascal@13749 | 69 dk dk-latin1 C Dansk |
pascal@13749 | 70 de de-latin1 de_DE Deutsch |
pascal@15922 | 71 de_CH\ deCH de_CH-latin1 de_DE Deutsch Schweiz |
pascal@15922 | 72 sg sg-latin1 de_DE Deutsch Schweiz (sg) |
pascal@13749 | 73 nl nl2 C Dutch |
pascal@14497 | 74 gr gr C Ellinika |
pascal@13749 | 75 en uk en_GB English UK |
pascal@13749 | 76 us us en_US English US |
pascal@13749 | 77 us_ac\ usac us-acentos en_US English US (acentos) |
pascal@13749 | 78 us_dv\ usdv dvorak en_US English US (dvorak) |
pascal@13749 | 79 us_dl\ usdl dvorak-l en_US English US (dvorak-l) |
pascal@13749 | 80 us_dr\ usdr dvorak-r en_US English US (dvorak-r) |
pascal@13749 | 81 es es es_ES Espanol |
pascal@13749 | 82 fr fr-latin1 fr_FR Francais |
pascal@13749 | 83 be be-latin1 fr_FR Francais Belgique |
pascal@13749 | 84 ca cf fr_FR Francais Canada |
pascal@13749 | 85 fr_CH\ frCH fr_CH-latin1 fr_FR Francais Suisse |
pascal@13749 | 86 cr hr,croat C Hvratski |
pascal@13749 | 87 is is-latin1 C Islenska |
pascal@13749 | 88 it it it_IT Italiano |
pascal@13749 | 89 jp jp106 C Japanese |
pascal@13749 | 90 hu hu C Magyar |
pascal@13749 | 91 no no-latin1 C Norske |
pascal@13749 | 92 po pl2 C Polski |
pascal@13749 | 93 pt pt-latin1 pt_PT Portugues |
pascal@13749 | 94 ru ru ru_RU Russian |
pascal@13749 | 95 sl slovene C Slovenski |
pascal@13749 | 96 fi fi-latin1 C Suomi |
pascal@13749 | 97 se se-lat6 C Svenskt |
pascal@13749 | 98 tr trq C Turk |
pascal@13749 | 99 tr2 tr_q-latin5 C Turk latin5 |
pascal@12287 | 100 EOT |
pascal@12287 | 101 cat >> $fs/boot/isolinux/i18n.cfg <<EOT |
pascal@12287 | 102 |
pascal@12287 | 103 LABEL exit |
pascal@12287 | 104 MENU LABEL Back to main menu |
pascal@12287 | 105 MENU EXIT |
pascal@12287 | 106 MENU END |
pascal@1721 | 107 EOT |
pascal@12349 | 108 sed -i 's/^LABEL us$/&\n MENU DEFAULT/' $fs/boot/isolinux/i18n.cfg |
pascal@12349 | 109 for kbd in $(cd $src ; ls *.kbd); do |
pascal@12355 | 110 [ -s $src/$kbd ] || echo "Invalid file $kbd" |
pascal@12354 | 111 grep -q " $kbd " $fs/boot/isolinux/i18n.cfg && continue |
pascal@12354 | 112 echo "Missing: file $kbd" |
pascal@12349 | 113 done |
pascal@283 | 114 chown root.root $fs/boot/isolinux/* |
pankso@4 | 115 } |
pascal@786 | 116 |
pascal@1687 | 117 # Pre and post install commands for Tazpkg. |
pascal@1687 | 118 post_install() |
pascal@1687 | 119 { |
pascal@11663 | 120 sed -i "s/XXXXXXXX/$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.cfg |
pascal@1687 | 121 } |