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