wok view syslinux/receipt @ rev 1035
Up: webkit (rev 35075)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Fri Jul 11 15:58:01 2008 +0200 (2008-07-11) |
parents | 7ce662304f43 |
children | 2d568fbc64a2 |
line source
1 # SliTaz package receipt.
3 PACKAGE="syslinux"
4 VERSION="3.70"
5 CATEGORY="base-system"
6 SHORT_DESC="LiveCD ISO bootloader (isolinux)"
7 MAINTAINER="pankso@slitaz.org"
8 TARBALL="$PACKAGE-$VERSION.tar.gz"
9 WEB_SITE="http://syslinux.zytor.com/"
10 WGET_URL="ftp://ftp.kernel.org/pub/linux/boot/syslinux/$TARBALL"
11 BUILD_DEPENDS="kbd-base perl"
12 DEPENDS="gpxe"
14 # Rules to gen a SliTaz package suitable for Tazpkg.
15 compile_rules()
16 {
17 cd $src
18 cp ../stuff/tools/keytab-lilo.pl .
19 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do
20 [ "$(basename $(dirname $i))" = "include" ] && continue
21 j=$(basename $i)
22 j=${j%.map.gz}.kbd
23 ./keytab-lilo.pl /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j
24 done
25 }
27 # Rules to gen a SliTaz package suitable for Tazpkg.
28 genpkg_rules()
29 {
30 mkdir -p $fs/boot/isolinux
31 cp -a $src/core/isolinux.bin $fs/boot/isolinux
32 cp -a $src/com32/modules/reboot.c32 $fs/boot/isolinux
33 cp stuff/* $fs/boot/isolinux
34 rm -rf $fs/boot/isolinux/tools $fs/boot/isolinux/*.kbd 2> /dev/null
35 grep kbd$ $fs/boot/isolinux/*.cfg | while read cfg kbd; do
36 cfg=$(basename ${cfg%.cfg:*})
37 sed -i "s/$kbd/$cfg.kbd/" $fs/boot/isolinux/$cfg.cfg
38 cp $src/$kbd $fs/boot/isolinux/$cfg.kbd
39 done
40 chown root.root $fs/boot/isolinux/*
41 # Package all syslinux pkgs
42 for i in $(cd $WOK; ls -d syslinux-*)
43 do
44 tazwok genpkg $i
45 done
46 }