wok-stable annotate syslinux/receipt @ rev 12268
graphviz: we have --enable-guile=yes and --with-gdk-pixbuf so add bdeps
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Apr 25 23:46:27 2012 +0200 (2012-04-25) |
parents | 3ae84f4269b5 |
children |
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@8974 | 21 cp $stuff/extra/ifmem.c com32/modules |
pascal@12210 | 22 cp $stuff/extra/md5sum.c com32/modules |
pascal@3665 | 23 grep -q ifmem.c32 com32/modules/Makefile || |
pascal@12210 | 24 sed -i 's/ifcpu64.c32/ifcpu64.c32 ifmem.c32 md5sum.c32/' com32/modules/Makefile |
pascal@3665 | 25 make -C com32 |
pascal@4513 | 26 ./isohybrid.sh --build |
pascal@829 | 27 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do |
pascal@829 | 28 [ "$(basename $(dirname $i))" = "include" ] && continue |
pascal@829 | 29 j=$(basename $i) |
pascal@829 | 30 j=${j%.map.gz}.kbd |
pascal@829 | 31 ./keytab-lilo.pl /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j |
pascal@829 | 32 done |
pascal@786 | 33 } |
pankso@4 | 34 |
pankso@4 | 35 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4 | 36 genpkg_rules() |
pankso@4 | 37 { |
pankso@4 | 38 mkdir -p $fs/boot/isolinux |
pascal@986 | 39 cp -a $src/core/isolinux.bin $fs/boot/isolinux |
pascal@786 | 40 cp -a $src/com32/modules/reboot.c32 $fs/boot/isolinux |
pascal@3665 | 41 cp -a $src/com32/modules/ifmem.c32 $fs/boot/isolinux |
pascal@12210 | 42 cp -a $src/com32/modules/md5sum.c32 $fs/boot/isolinux |
pankso@11657 | 43 cp -a $src/com32/menu/vesamenu.c32 $fs/boot/isolinux |
pascal@3665 | 44 cp -a $src/modules/poweroff.com $fs/boot/isolinux |
pankso@11657 | 45 # $stuff/isolinux.msg is the old way the have a splash image. |
pankso@11657 | 46 cp $stuff/*.cfg $stuff/*.txt $stuff/help.* $stuff/opts.* $fs/boot/isolinux |
pascal@1721 | 47 while read cfg kbd loc ; do |
pascal@1721 | 48 sed -e "s/^display/kbdmap $cfg.kbd\ndisplay/" \ |
pascal@1721 | 49 -e "s/^label/say Now using $kbd keyboard and $loc locale.\nlabel/" \ |
pascal@1721 | 50 -e "s/rootfs.gz/rootfs.gz lang=$loc kmap=$kbd/" \ |
pankso@11657 | 51 < $fs/boot/isolinux/default.cfg > $fs/boot/isolinux/$cfg.cfg |
pascal@1721 | 52 cp $src/$kbd.kbd $fs/boot/isolinux/$cfg.kbd |
pascal@2335 | 53 cat >> $fs/boot/isolinux/common.cfg <<EOT |
pascal@1721 | 54 label $cfg |
pascal@1721 | 55 config $cfg.cfg |
pascal@1721 | 56 EOT |
pascal@1721 | 57 done <<EOT |
pascal@1721 | 58 be be-latin1 fr_FR |
pascal@1721 | 59 br br-abnt2 pt_PT |
pascal@1721 | 60 ca cf fr_FR |
pascal@1721 | 61 de de-latin1 de_DE |
pascal@1721 | 62 de_CH de_CH-latin1 de_DE |
pascal@1721 | 63 en uk C |
pascal@1721 | 64 es es es_ES |
pascal@1721 | 65 fi fi-latin1 fi |
pascal@1721 | 66 fr fr-latin1 fr_FR |
pascal@1721 | 67 fr_CH fr_CH-latin1 fr_FR |
pascal@1721 | 68 hu hu hu |
pascal@1721 | 69 it it it_IT |
pascal@1721 | 70 jp jp106 jp_JP |
pascal@1721 | 71 pt pt-latin1 pt_PT |
pascal@1721 | 72 ru ru ru_RU |
pascal@1721 | 73 us us C |
pascal@1721 | 74 EOT |
pascal@283 | 75 chown root.root $fs/boot/isolinux/* |
pankso@4 | 76 } |
pascal@786 | 77 |
pascal@1687 | 78 # Pre and post install commands for Tazpkg. |
pascal@1687 | 79 post_install() |
pascal@1687 | 80 { |
pascal@11663 | 81 sed -i "s/XXXXXXXX/$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.cfg |
pascal@1687 | 82 } |