wok annotate syslinux/receipt @ rev 3305
Add: libxdg-basedir libxdg-basedir-dev
author | Mallory MOLLO <mallory@skyrock.com> |
---|---|
date | Sat Jun 06 20:14:53 2009 +0200 (2009-06-06) |
parents | 7bb391a2d0a1 |
children | d5f670b08670 |
rev | line source |
---|---|
pankso@4 | 1 # SliTaz package receipt. |
pankso@4 | 2 |
pankso@4 | 3 PACKAGE="syslinux" |
pascal@2335 | 4 VERSION="3.73" |
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@1721 | 35 while read cfg kbd loc ; do |
pascal@1721 | 36 sed -e "s/^display/kbdmap $cfg.kbd\ndisplay/" \ |
pascal@1721 | 37 -e "s/^label/say Now using $kbd keyboard and $loc locale.\nlabel/" \ |
pascal@1721 | 38 -e "s/rootfs.gz/rootfs.gz lang=$loc kmap=$kbd/" \ |
pascal@1721 | 39 < $fs/boot/isolinux/isolinux.cfg > $fs/boot/isolinux/$cfg.cfg |
pascal@1721 | 40 cp $src/$kbd.kbd $fs/boot/isolinux/$cfg.kbd |
pascal@2335 | 41 cat >> $fs/boot/isolinux/common.cfg <<EOT |
pascal@1721 | 42 label $cfg |
pascal@1721 | 43 config $cfg.cfg |
pascal@1721 | 44 EOT |
pascal@1721 | 45 done <<EOT |
pascal@1721 | 46 be be-latin1 fr_FR |
pascal@1721 | 47 br br-abnt2 pt_PT |
pascal@1721 | 48 ca cf fr_FR |
pascal@1721 | 49 de de-latin1 de_DE |
pascal@1721 | 50 de_CH de_CH-latin1 de_DE |
pascal@1721 | 51 en uk C |
pascal@1721 | 52 es es es_ES |
pascal@1721 | 53 fi fi-latin1 fi |
pascal@1721 | 54 fr fr-latin1 fr_FR |
pascal@1721 | 55 fr_CH fr_CH-latin1 fr_FR |
pascal@1721 | 56 hu hu hu |
pascal@1721 | 57 it it it_IT |
pascal@1721 | 58 jp jp106 jp_JP |
pascal@1721 | 59 pt pt-latin1 pt_PT |
pascal@1721 | 60 ru ru ru_RU |
pascal@1721 | 61 us us C |
pascal@1721 | 62 EOT |
pascal@283 | 63 chown root.root $fs/boot/isolinux/* |
pascal@986 | 64 # Package all syslinux pkgs |
pascal@986 | 65 for i in $(cd $WOK; ls -d syslinux-*) |
pascal@986 | 66 do |
pascal@986 | 67 tazwok genpkg $i |
pascal@986 | 68 done |
pankso@4 | 69 } |
pascal@786 | 70 |
pascal@1687 | 71 # Pre and post install commands for Tazpkg. |
pascal@1687 | 72 post_install() |
pascal@1687 | 73 { |
pascal@1687 | 74 sed -i "s/-XXXXXXXX/-$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.msg |
pascal@1687 | 75 } |