wok annotate linld/receipt @ rev 24950

updated nagios-plugins and nagios-plugins-mysql (2.3.3 -> 2.4.0)
author Hans-G?nter Theisgen
date Sat Apr 23 10:03:51 2022 +0100 (2022-04-23)
parents c11594098e34
children
rev   line source
pascal@2330 1 # SliTaz package receipt.
pascal@2330 2
pascal@2330 3 PACKAGE="linld"
pascal@2330 4 VERSION="0.97"
pascal@2330 5 CATEGORY="system-tools"
pascal@2330 6 SHORT_DESC="Boot loader for DOS/Win9x."
pascal@2330 7 MAINTAINER="pascal.bellard@slitaz.org"
pascal@15379 8 LICENSE="GPL"
pascal@20453 9 SUFFIX="${VERSION/./}"
pascal@19410 10 TARBALL="${PACKAGE}${SUFFIX}devel.tar.bz2"
pascal@20669 11 BASE_SITE="https://busybox.net/~vda/$PACKAGE"
pascal@2330 12 WEB_SITE="$BASE_SITE/README.txt"
pascal@2330 13 WGET_URL="$BASE_SITE/$TARBALL"
pascal@20458 14 EXTRA_TOOL_URL="ftp://ftp.ibiblio.org/pub/micro/pc-stuff/freedos/gnuish/mawk122x.zip"
pascal@20458 15 EXTRA_TOOL="$(basename $EXTRA_TOOL_URL)"
pascal@20458 16 EXTRA_SOURCE_FILES="$EXTRA_TOOL"
pascal@2330 17
pascal@19410 18 BUILD_DEPENDS="dosbox upx"
pascal@17446 19
pascal@24564 20 # What is the latest version available today?
pascal@24564 21 current_version()
pascal@24564 22 {
pascal@24564 23 wget -O - ${WEB_SITE%/*} 2>/dev/null | \
pascal@24564 24 sed "/tar/!d;s|.*$PACKAGE\\(.*\\)devel.*\".*|\\1|;s|^\(.\)|&.|;q"
pascal@24564 25 }
pascal@24564 26
pascal@2330 27 # Rules to configure and make the package.
pascal@2330 28 compile_rules()
pascal@2330 29 {
pascal@20458 30 [ -s $SRC/$EXTRA_TOOL ] ||
pascal@20458 31 busybox wget -O $SRC/$EXTRA_TOOL $EXTRA_TOOL_URL
pascal@2330 32 mv DIST $src 2> /dev/null
pascal@2330 33 cd $src
pascal@20459 34 unzip $SRC/$EXTRA_TOOL > /dev/null
pascal@20427 35 rm LINLD$SUFFIX/CRTL.CPP LINLD$SUFFIX/INT15_88.ASM
pascal@19515 36 cp $stuff/src/* LINLD$SUFFIX/
pascal@24019 37 sed -i '/-3/d' LINLD$SUFFIX/BCCOPT.OPT
pascal@19515 38 cp -a LINLD$SUFFIX TAZBOOT
pascal@17446 39 unix2dos > MAKE.BAT <<EOT
pascal@17446 40 d:
pascal@19410 41 cd linld$SUFFIX
pascal@19515 42 $(cat LINLD$SUFFIX/!COMPILE.BAT)
pascal@17446 43 EOT
pascal@19736 44 SDL_VIDEODRIVER=dummy dosbox MAKE.BAT -exit -c "mount D $src" \
pascal@19736 45 2>&1 | grep -v 'ALSA lib'
pascal@24159 46 dos2unix */*.[LM]*
pascal@21623 47 grep '^Fatal[ :]' */LNK.LOG */CPP.LOG && return 1
pascal@24159 48 grep '\*Fatal\*' */*.LST && return 1
pascal@20550 49 grep '^Error[ :]' */LNK.LOG */CPP.LOG && return 1
pascal@24159 50 grep '\*Error\*' */*.LST && return 1
pascal@21363 51 grep '^Warning[ :]' */LNK.LOG */CPP.LOG
pascal@24159 52 grep '\*Warning\*' */*.LST
pascal@19410 53 cp LINLD$SUFFIX/LINLD.COM linld.com
pascal@19414 54 objdump -D -b binary -mi386 -Maddr16,data16 --adjust-vma=0x100 \
pascal@19414 55 linld.com > linld.lst
pascal@18230 56 cc -o tobzimage.o -Wa,-algms=tobzimage.lst -c $stuff/tobzimage.S
pascal@24592 57 objcopy --only-section=.text -O binary tobzimage.o tobzimage.bin
pascal@18230 58 cp $stuff/tobzimage .
pascal@18230 59 ./tobzimage --build
pascal@2330 60 }
pascal@2330 61
pascal@2330 62 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@2330 63 genpkg_rules()
pascal@2330 64 {
pascal@19494 65 mkdir -p $fs/usr/share/boot $fs/usr/bin $install/usr/share/doc
pascal@19410 66 cp $src/linld.com $stuff/linld.txt $fs/usr/share/boot/
pascal@19494 67 cp $stuff/linld.txt $install/usr/share/doc
pascal@19465 68 #cp $src/tobzimage $fs/usr/bin
pascal@2330 69 }