wok-4.x annotate syslinux/receipt @ rev 956
syslinux: add web entry
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 28 06:21:26 2008 +0000 (2008-06-28) |
parents | 38e7dabd3c3e |
children | 29ef7d8a4729 |
rev | line source |
---|---|
pankso@4 | 1 # SliTaz package receipt. |
pankso@4 | 2 |
pankso@4 | 3 PACKAGE="syslinux" |
pascal@786 | 4 VERSION="3.63" |
pankso@4 | 5 CATEGORY="base-system" |
pankso@4 | 6 SHORT_DESC="LiveCD ISO bootloader (isolinux)" |
pankso@4 | 7 MAINTAINER="pankso@slitaz.org" |
pankso@4 | 8 TARBALL="$PACKAGE-$VERSION.tar.gz" |
pankso@4 | 9 WEB_SITE="http://syslinux.zytor.com/" |
pankso@4 | 10 WGET_URL="ftp://ftp.kernel.org/pub/linux/boot/syslinux/$TARBALL" |
pascal@786 | 11 BUILD_DEPENDS="kbd-base perl" |
pascal@956 | 12 DEPENDS="gpxe" |
pascal@786 | 13 |
pascal@786 | 14 # Rules to gen a SliTaz package suitable for Tazpkg. |
pascal@786 | 15 compile_rules() |
pascal@786 | 16 { |
pascal@829 | 17 cd $src |
pascal@830 | 18 patch -p1 < ../stuff/tools/keytab-lilo.pl.u |
pascal@829 | 19 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do |
pascal@829 | 20 [ "$(basename $(dirname $i))" = "include" ] && continue |
pascal@829 | 21 j=$(basename $i) |
pascal@829 | 22 j=${j%.map.gz}.kbd |
pascal@829 | 23 ./keytab-lilo.pl /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j |
pascal@829 | 24 done |
pascal@786 | 25 } |
pankso@4 | 26 |
pankso@4 | 27 # Rules to gen a SliTaz package suitable for Tazpkg. |
pankso@4 | 28 genpkg_rules() |
pankso@4 | 29 { |
pankso@4 | 30 mkdir -p $fs/boot/isolinux |
pascal@786 | 31 cp -a $src/isolinux.bin $fs/boot/isolinux |
pascal@786 | 32 cp -a $src/com32/modules/reboot.c32 $fs/boot/isolinux |
pascal@227 | 33 cp stuff/* $fs/boot/isolinux |
pascal@830 | 34 rm -rf $fs/boot/isolinux/tools $fs/boot/isolinux/*.kbd 2> /dev/null |
pascal@829 | 35 grep kbd$ $fs/boot/isolinux/*.cfg | while read cfg kbd; do |
pascal@829 | 36 cfg=$(basename ${cfg%.cfg:*}) |
pascal@829 | 37 sed -i "s/$kbd/$cfg.kbd/" $fs/boot/isolinux/$cfg.cfg |
pascal@829 | 38 cp $src/$kbd $fs/boot/isolinux/$cfg.kbd |
pascal@786 | 39 done |
pascal@283 | 40 chown root.root $fs/boot/isolinux/* |
pankso@4 | 41 } |
pascal@786 | 42 |