wok-6.x annotate syslinux/receipt @ rev 13196
syslinux: add memtest menu entry
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Aug 05 10:14:57 2012 +0200 (2012-08-05) |
parents | d0c26447bc00 |
children | 9bc56635d952 |
rev | line source |
---|---|
pankso@4 | 1 # SliTaz package receipt. |
pankso@4 | 2 |
pankso@4 | 3 PACKAGE="syslinux" |
pascal@11579 | 4 VERSION="4.05" |
pankso@4 | 5 CATEGORY="base-system" |
pankso@4 | 6 SHORT_DESC="LiveCD ISO bootloader (isolinux)" |
pankso@4 | 7 MAINTAINER="pankso@slitaz.org" |
pascal@11579 | 8 TARBALL="$PACKAGE-$VERSION.tar.xz" |
pankso@4 | 9 WEB_SITE="http://syslinux.zytor.com/" |
pascal@11579 | 10 WGET_URL="ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/$TARBALL" |
gokhlayeh@8168 | 11 BUILD_DEPENDS="kbd-base perl nasm" |
pascal@13196 | 12 DEPENDS="gpxe memtest" |
pascal@1687 | 13 CONFIG_FILES="/boot/isolinux" |
pascal@786 | 14 |
pascal@786 | 15 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@786 | 16 compile_rules() |
pascal@786 | 17 { |
pascal@829 | 18 cd $src |
pascal@8974 | 19 cp $stuff/tools/isohybrid.sh . |
pascal@8974 | 20 cp $stuff/tools/keytab-lilo.pl . |
pascal@12210 | 21 cp $stuff/extra/md5sum.c com32/modules |
pascal@12273 | 22 grep -q md5sum.c32 com32/modules/Makefile || |
pascal@12273 | 23 sed -i 's/ifcpu64.c32/ifcpu64.c32 md5sum.c32/' com32/modules/Makefile |
pascal@3665 | 24 make -C com32 |
pascal@4513 | 25 ./isohybrid.sh --build |
pascal@829 | 26 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do |
pascal@829 | 27 [ "$(basename $(dirname $i))" = "include" ] && continue |
pascal@829 | 28 j=$(basename $i) |
pascal@829 | 29 j=${j%.map.gz}.kbd |
pascal@829 | 30 ./keytab-lilo.pl /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j |
pascal@829 | 31 done |
pascal@786 | 32 } |
pankso@4 | 33 |
pankso@4 | 34 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4 | 35 genpkg_rules() |
pankso@4 | 36 { |
pankso@4 | 37 mkdir -p $fs/boot/isolinux |
pascal@986 | 38 cp -a $src/core/isolinux.bin $fs/boot/isolinux |
pascal@12287 | 39 cp -a $src/com32/modules/md5sum.c32 $fs/boot/isolinux/c32box.c32 |
pankso@11657 | 40 cp -a $src/com32/menu/vesamenu.c32 $fs/boot/isolinux |
pankso@11657 | 41 # $stuff/isolinux.msg is the old way the have a splash image. |
pankso@11657 | 42 cp $stuff/*.cfg $stuff/*.txt $stuff/help.* $stuff/opts.* $fs/boot/isolinux |
pascal@12734 | 43 rm -f $fs/boot/isolinux/common.cfg $fs/boot/isolinux/default.cfg |
pascal@12735 | 44 rm -f $fs/boot/isolinux/display.txt |
pascal@12287 | 45 ( cd $src ; ls *.kbd | cpio -o -H newc ) > $fs/boot/isolinux/cpio.kbd |
pascal@12287 | 46 while read label kbd loc menu; do |
pascal@12293 | 47 #[ -s $src/$kbd.kbd ] || continue |
pascal@12287 | 48 cat >> $fs/boot/isolinux/i18n.cfg <<EOT |
pascal@12287 | 49 |
pascal@12287 | 50 LABEL $label |
pascal@12287 | 51 MENU LABEL $menu |
pascal@12287 | 52 com32 c32box.c32 |
pascal@12287 | 53 append kbdmap cpio.kbd $kbd.kbd lang=$loc kmap=$kbd |
pascal@1721 | 54 EOT |
pascal@1721 | 55 done <<EOT |
pascal@12287 | 56 cr croat hr_HR Hvratski |
pascal@12287 | 57 cz cz-lat2 cs_CZ Cesky |
pascal@12287 | 58 de de-latin1 de_DE Deutsch |
pascal@12287 | 59 de_CH\ deCH de_CH-latin1 de_DE Deutsch Schweitz |
pascal@12287 | 60 dk dk-latin1 da_DK Dansk |
pascal@12287 | 61 en uk C English UK |
pascal@12287 | 62 us us C English US |
pascal@12287 | 63 us_ac\ usac us-acentos C English US (acentos) |
pascal@12287 | 64 us_dv\ usdv dvorak C English US (dvorak) |
pascal@12287 | 65 us_dl\ usdl dvorak-l C English US (dvorak-l) |
pascal@12287 | 66 us_dr\ usdr dvorak-r C English US (dvorak-r) |
pascal@12287 | 67 es es es_ES Espanol |
pascal@12287 | 68 fr fr-latin1 fr_FR Francais |
pascal@12287 | 69 be be-latin1 fr_FR Francais Belgique |
pascal@12287 | 70 ca cf fr_FR Francais Canada |
pascal@12287 | 71 fr_CH\ frCH fr_CH-latin1 fr_FR Francais Suisse |
pascal@12287 | 72 fi fi-latin1 fi Suomi |
pascal@12287 | 73 is is-latin1 is_IS Islenska |
pascal@12287 | 74 it it it_IT Italiano |
pascal@12287 | 75 no no-latin1 nb_NO Norske |
pascal@12287 | 76 jp jp106 jp_JP Japanese |
pascal@12287 | 77 hu hu hu Magyar |
pascal@12287 | 78 po pl2 pl_PL Polski |
pascal@12287 | 79 br br-abnt2 pt_PT Brazil |
pascal@12287 | 80 pt pt-latin1 pt_PT Portugues |
pascal@12287 | 81 ru ru ru_RU Russian |
pascal@12287 | 82 se se-lat6 sv_SE Svenskt |
pascal@12287 | 83 sl slovene sl_SI Slovenski |
pascal@12287 | 84 tr tr_q-latin5 tr_TR Turk |
pascal@12287 | 85 EOT |
pascal@12287 | 86 cat >> $fs/boot/isolinux/i18n.cfg <<EOT |
pascal@12287 | 87 |
pascal@12287 | 88 LABEL exit |
pascal@12287 | 89 MENU LABEL Back to main menu |
pascal@12287 | 90 MENU EXIT |
pascal@12287 | 91 MENU END |
pascal@1721 | 92 EOT |
pascal@12349 | 93 sed -i 's/^LABEL us$/&\n MENU DEFAULT/' $fs/boot/isolinux/i18n.cfg |
pascal@12349 | 94 for kbd in $(cd $src ; ls *.kbd); do |
pascal@12355 | 95 [ -s $src/$kbd ] || echo "Invalid file $kbd" |
pascal@12354 | 96 grep -q " $kbd " $fs/boot/isolinux/i18n.cfg && continue |
pascal@12354 | 97 echo "Missing: file $kbd" |
pascal@12349 | 98 done |
pascal@283 | 99 chown root.root $fs/boot/isolinux/* |
pankso@4 | 100 } |
pascal@786 | 101 |
pascal@1687 | 102 # Pre and post install commands for Tazpkg. |
pascal@1687 | 103 post_install() |
pascal@1687 | 104 { |
pascal@11663 | 105 sed -i "s/XXXXXXXX/$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.cfg |
pascal@1687 | 106 } |