wok annotate syslinux/receipt @ rev 12455

Up osip (3.5.0)
author Pascal Bellard <pascal.bellard@slitaz.org>
date Sat Apr 21 20:47:41 2012 +0200 (2012-04-21)
parents e98cd41f6361
children fb327e5adb6b
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@956 12 DEPENDS="gpxe"
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@12287 43 ( cd $src ; ls *.kbd | cpio -o -H newc ) > $fs/boot/isolinux/cpio.kbd
pascal@12287 44 while read label kbd loc menu; do
pascal@12293 45 #[ -s $src/$kbd.kbd ] || continue
pascal@12287 46 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
pascal@12287 47
pascal@12287 48 LABEL $label
pascal@12287 49 MENU LABEL $menu
pascal@12287 50 com32 c32box.c32
pascal@12287 51 append kbdmap cpio.kbd $kbd.kbd lang=$loc kmap=$kbd
pascal@1721 52 EOT
pascal@1721 53 done <<EOT
pascal@12287 54 cr croat hr_HR Hvratski
pascal@12287 55 cz cz-lat2 cs_CZ Cesky
pascal@12287 56 de de-latin1 de_DE Deutsch
pascal@12287 57 de_CH\ deCH de_CH-latin1 de_DE Deutsch Schweitz
pascal@12287 58 dk dk-latin1 da_DK Dansk
pascal@12287 59 en uk C English UK
pascal@12287 60 us us C English US
pascal@12287 61 us_ac\ usac us-acentos C English US (acentos)
pascal@12287 62 us_dv\ usdv dvorak C English US (dvorak)
pascal@12287 63 us_dl\ usdl dvorak-l C English US (dvorak-l)
pascal@12287 64 us_dr\ usdr dvorak-r C English US (dvorak-r)
pascal@12287 65 es es es_ES Espanol
pascal@12287 66 fr fr-latin1 fr_FR Francais
pascal@12287 67 be be-latin1 fr_FR Francais Belgique
pascal@12287 68 ca cf fr_FR Francais Canada
pascal@12287 69 fr_CH\ frCH fr_CH-latin1 fr_FR Francais Suisse
pascal@12287 70 fi fi-latin1 fi Suomi
pascal@12287 71 is is-latin1 is_IS Islenska
pascal@12287 72 it it it_IT Italiano
pascal@12287 73 no no-latin1 nb_NO Norske
pascal@12287 74 jp jp106 jp_JP Japanese
pascal@12287 75 hu hu hu Magyar
pascal@12287 76 po pl2 pl_PL Polski
pascal@12287 77 br br-abnt2 pt_PT Brazil
pascal@12287 78 pt pt-latin1 pt_PT Portugues
pascal@12287 79 ru ru ru_RU Russian
pascal@12287 80 se se-lat6 sv_SE Svenskt
pascal@12287 81 sl slovene sl_SI Slovenski
pascal@12287 82 tr tr_q-latin5 tr_TR Turk
pascal@12287 83 EOT
pascal@12287 84 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
pascal@12287 85
pascal@12287 86 LABEL exit
pascal@12287 87 MENU LABEL Back to main menu
pascal@12287 88 MENU EXIT
pascal@12287 89 MENU END
pascal@1721 90 EOT
pascal@12349 91 sed -i 's/^LABEL us$/&\n MENU DEFAULT/' $fs/boot/isolinux/i18n.cfg
pascal@12349 92 for kbd in $(cd $src ; ls *.kbd); do
pascal@12355 93 [ -s $src/$kbd ] || echo "Invalid file $kbd"
pascal@12354 94 grep -q " $kbd " $fs/boot/isolinux/i18n.cfg && continue
pascal@12354 95 echo "Missing: file $kbd"
pascal@12349 96 done
pascal@283 97 chown root.root $fs/boot/isolinux/*
pankso@4 98 }
pascal@786 99
pascal@1687 100 # Pre and post install commands for Tazpkg.
pascal@1687 101 post_install()
pascal@1687 102 {
pascal@11663 103 sed -i "s/XXXXXXXX/$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.cfg
pascal@1687 104 }