wok view syslinux/receipt @ rev 1720

Add dev86
author Pascal Bellard <pascal.bellard@slitaz.org>
date Tue Nov 18 12:40:05 2008 +0000 (2008-11-18)
parents e53e6a788414
children 7bb391a2d0a1
line source
1 # SliTaz package receipt.
3 PACKAGE="syslinux"
4 VERSION="3.72"
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"
13 CONFIG_FILES="/boot/isolinux"
15 # Rules to gen a SliTaz package suitable for Tazpkg.
16 compile_rules()
17 {
18 cd $src
19 cp ../stuff/tools/keytab-lilo.pl .
20 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do
21 [ "$(basename $(dirname $i))" = "include" ] && continue
22 j=$(basename $i)
23 j=${j%.map.gz}.kbd
24 ./keytab-lilo.pl /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j
25 done
26 }
28 # Rules to gen a SliTaz package suitable for Tazpkg.
29 genpkg_rules()
30 {
31 mkdir -p $fs/boot/isolinux
32 cp -a $src/core/isolinux.bin $fs/boot/isolinux
33 cp -a $src/com32/modules/reboot.c32 $fs/boot/isolinux
34 cp stuff/*.* $fs/boot/isolinux
35 rm -rf $fs/boot/isolinux/tools $fs/boot/isolinux/*.kbd 2> /dev/null
36 grep kbd$ $fs/boot/isolinux/*.cfg | while read cfg kbd; do
37 cfg=$(basename ${cfg%.cfg:*})
38 sed -i "s/$kbd/$cfg.kbd/" $fs/boot/isolinux/$cfg.cfg
39 cp $src/$kbd $fs/boot/isolinux/$cfg.kbd
40 done
41 chown root.root $fs/boot/isolinux/*
42 # Package all syslinux pkgs
43 for i in $(cd $WOK; ls -d syslinux-*)
44 do
45 tazwok genpkg $i
46 done
47 }
49 # Pre and post install commands for Tazpkg.
50 post_install()
51 {
52 sed -i "s/-XXXXXXXX/-$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.msg
53 }