wok-current annotate syslinux/receipt @ rev 17535

Up openvpn (2.3.6)
author Richard Dunbar <mojo@slitaz.org>
date Wed Jan 21 17:46:09 2015 -0500 (2015-01-21)
parents 7cb58ceb1fb0
children 4d27e4d271a0
rev   line source
pankso@4 1 # SliTaz package receipt.
pankso@4 2
pankso@4 3 PACKAGE="syslinux"
pascal@13546 4 VERSION="4.06"
pankso@4 5 CATEGORY="base-system"
pankso@4 6 SHORT_DESC="LiveCD ISO bootloader (isolinux)"
pankso@4 7 MAINTAINER="pankso@slitaz.org"
pascal@14658 8 LICENSE="GPL2"
pascal@11579 9 TARBALL="$PACKAGE-$VERSION.tar.xz"
pankso@4 10 WEB_SITE="http://syslinux.zytor.com/"
pascal@11579 11 WGET_URL="ftp://ftp.kernel.org/pub/linux/utils/boot/syslinux/$TARBALL"
pascal@17157 12 CONFIG_FILES="/boot/isolinux"
pascal@17157 13
pascal@15369 14 DEPENDS="ipxe memtest"
pascal@17157 15 BUILD_DEPENDS="kbd-base perl nasm dev86 lzma mingw32-gcc upx posixovl \
pascal@17489 16 util-linux-uuid-dev advancecomp"
pascal@786 17
pascal@786 18 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@786 19 compile_rules()
pascal@786 20 {
pascal@829 21 cd $src
pascal@17157 22 rm -f $src/core/isolinux.bin
pascal@13969 23 patch -p 0 < $stuff/extra/iso9660.u
pascal@13747 24 patch -p 0 < $stuff/extra/readconfig.u
pascal@17157 25 #patch -p 0 < $stuff/extra/fs.u
pascal@8974 26 cp $stuff/tools/isohybrid.sh .
pascal@12210 27 cp $stuff/extra/md5sum.c com32/modules
pascal@12273 28 grep -q md5sum.c32 com32/modules/Makefile ||
pascal@12273 29 sed -i 's/ifcpu64.c32/ifcpu64.c32 md5sum.c32/' com32/modules/Makefile
pascal@17456 30 export LDFLAGS=""
pascal@17157 31 make clean
pascal@17456 32 echo "make all: LDFLAGS=$LDFLAGS"
pascal@17158 33 make all 2>&1 | sed 's/NO_WERROR=1/NO_Werror=1/;/syslinux64.exe/d'
pascal@17454 34 echo "make core: LDFLAGS=$LDFLAGS"
pascal@17157 35 make -C core
pascal@3665 36 make -C com32
pascal@4513 37 ./isohybrid.sh --build
pascal@14265 38 sed -i 's/loadkeys -m/loadkeys -u -m/' utils/keytab-lilo # for ru.kbd
pascal@829 39 for i in /usr/share/kbd/keymaps/i386/*/*.map.gz; do
pascal@829 40 [ "$(basename $(dirname $i))" = "include" ] && continue
pascal@829 41 j=$(basename $i)
pascal@829 42 j=${j%.map.gz}.kbd
pascal@14265 43 utils/keytab-lilo /usr/share/kbd/keymaps/i386/qwerty/us.map.gz $i > $j
pascal@829 44 done
pascal@14152 45 cp -a $stuff/iso2exe .
pascal@14152 46 make -C iso2exe
pascal@786 47 }
pankso@4 48
pankso@4 49 # Rules to gen a SliTaz package suitable for Tazpkg.
pankso@4 50 genpkg_rules()
pankso@4 51 {
pankso@4 52 mkdir -p $fs/boot/isolinux
pascal@986 53 cp -a $src/core/isolinux.bin $fs/boot/isolinux
pascal@12287 54 cp -a $src/com32/modules/md5sum.c32 $fs/boot/isolinux/c32box.c32
pankso@11657 55 cp -a $src/com32/menu/vesamenu.c32 $fs/boot/isolinux
pankso@11657 56 # $stuff/isolinux.msg is the old way the have a splash image.
pankso@11657 57 cp $stuff/*.cfg $stuff/*.txt $stuff/help.* $stuff/opts.* $fs/boot/isolinux
pascal@12734 58 rm -f $fs/boot/isolinux/common.cfg $fs/boot/isolinux/default.cfg
pascal@12735 59 rm -f $fs/boot/isolinux/display.txt
pascal@12287 60 ( cd $src ; ls *.kbd | cpio -o -H newc ) > $fs/boot/isolinux/cpio.kbd
pascal@12287 61 while read label kbd loc menu; do
pascal@13277 62 for i in ${kbd/,/ }; do
pascal@13277 63 [ -e $src/$i.kbd ] || continue
pascal@13277 64 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
pascal@12287 65
pascal@13287 66 # ${kbd/,/.kbd or }.kbd keyboard
pascal@12287 67 LABEL $label
pascal@12287 68 MENU LABEL $menu
pascal@12287 69 com32 c32box.c32
pascal@13750 70 append kbdmap cpio.kbd $i.kbd lang=$loc kmap=${kbd#*,}
pascal@1721 71 EOT
pascal@13277 72 break
pascal@13277 73 done
pascal@1721 74 done <<EOT
claudinei@16687 75 br br-abnt2 pt_BR Brazil (abnt2)
claudinei@16687 76 br_ac\ brac us-acentos pt_BR Brazil (us-acentos)
pascal@13749 77 cz cz-lat2 C Cesky
pascal@13749 78 dk dk-latin1 C Dansk
pascal@13749 79 de de-latin1 de_DE Deutsch
pascal@15922 80 de_CH\ deCH de_CH-latin1 de_DE Deutsch Schweiz
pascal@15922 81 sg sg-latin1 de_DE Deutsch Schweiz (sg)
pascal@13749 82 nl nl2 C Dutch
pascal@14497 83 gr gr C Ellinika
pascal@13749 84 en uk en_GB English UK
pascal@13749 85 us us en_US English US
pascal@13749 86 us_ac\ usac us-acentos en_US English US (acentos)
pascal@13749 87 us_dv\ usdv dvorak en_US English US (dvorak)
pascal@13749 88 us_dl\ usdl dvorak-l en_US English US (dvorak-l)
pascal@13749 89 us_dr\ usdr dvorak-r en_US English US (dvorak-r)
pascal@13749 90 es es es_ES Espanol
pascal@13749 91 fr fr-latin1 fr_FR Francais
pascal@13749 92 be be-latin1 fr_FR Francais Belgique
pascal@13749 93 ca cf fr_FR Francais Canada
pascal@13749 94 fr_CH\ frCH fr_CH-latin1 fr_FR Francais Suisse
pascal@13749 95 cr hr,croat C Hvratski
pascal@13749 96 is is-latin1 C Islenska
pascal@13749 97 it it it_IT Italiano
pascal@13749 98 jp jp106 C Japanese
pascal@13749 99 hu hu C Magyar
pascal@13749 100 no no-latin1 C Norske
pascal@13749 101 po pl2 C Polski
pascal@13749 102 pt pt-latin1 pt_PT Portugues
pascal@13749 103 ru ru ru_RU Russian
pascal@13749 104 sl slovene C Slovenski
pascal@13749 105 fi fi-latin1 C Suomi
pascal@13749 106 se se-lat6 C Svenskt
pascal@13749 107 tr trq C Turk
pascal@13749 108 tr2 tr_q-latin5 C Turk latin5
pascal@12287 109 EOT
pascal@12287 110 cat >> $fs/boot/isolinux/i18n.cfg <<EOT
pascal@12287 111
pascal@12287 112 LABEL exit
pascal@12287 113 MENU LABEL Back to main menu
pascal@12287 114 MENU EXIT
pascal@12287 115 MENU END
pascal@1721 116 EOT
pascal@12349 117 sed -i 's/^LABEL us$/&\n MENU DEFAULT/' $fs/boot/isolinux/i18n.cfg
pascal@12349 118 for kbd in $(cd $src ; ls *.kbd); do
pascal@12355 119 [ -s $src/$kbd ] || echo "Invalid file $kbd"
pascal@12354 120 grep -q " $kbd " $fs/boot/isolinux/i18n.cfg && continue
pascal@12354 121 echo "Missing: file $kbd"
pascal@12349 122 done
pascal@283 123 chown root.root $fs/boot/isolinux/*
pankso@4 124 }
pascal@786 125
pascal@1687 126 # Pre and post install commands for Tazpkg.
pascal@1687 127 post_install()
pascal@1687 128 {
pascal@11663 129 sed -i "s/XXXXXXXX/$(date +%Y%m%d)/" $1/boot/isolinux/isolinux.cfg
pascal@1687 130 }