wok-4.x view syslinux/receipt @ rev 786
Up syslinux syslinux-extra 3.63, build *.kbd
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Tue May 13 14:34:20 2008 +0000 (2008-05-13) |
parents | 395544099604 |
children | 97526a91fabb |
line source
1 # SliTaz package receipt.
3 PACKAGE="syslinux"
4 VERSION="3.63"
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"
13 # Rules to gen a SliTaz package suitable for Tazpkg.
14 compile_rules()
15 {
16 cd $src
17 sed "s|\\\$DEFAULT_PATH = .*|\$DEFAULT_PATH = \"$PWD\";|" \
18 > mkkbd < keytab-lilo.pl
19 chmod +x mkkbd
20 for i in $(cd /usr/share/kbd/keymaps/i386 ; ls */*.map.gz); do
21 [ "$(dirname $i)" = "include" ] && continue
22 j=$(basename $i)
23 zcat /usr/share/kbd/keymaps/i386/$i > ${j%.gz}
24 done
25 for i in $(ls *.map); do
26 i=$(basename $i)
27 i=${i%.map}
28 ./mkkbd $i > $i.kbd
29 done
30 }
32 # Rules to gen a SliTaz package suitable for Tazpkg.
33 genpkg_rules()
34 {
35 mkdir -p $fs/boot/isolinux
36 cp -a $src/isolinux.bin $fs/boot/isolinux
37 cp -a $src/com32/modules/reboot.c32 $fs/boot/isolinux
38 cp stuff/* $fs/boot/isolinux
39 rm -r $fs/boot/isolinux/slitaz.* $fs/boot/isolinux/*.kbd 2> /dev/null
40 for i in $(grep kbd$ $fs/boot/isolinux/*.cfg | cut -d' ' -f2); do
41 cp $src/$i $fs/boot/isolinux
42 done
43 chown root.root $fs/boot/isolinux/*
44 }