wok-tiny rev 76
Add runcom
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sat Jun 02 10:54:23 2012 +0200 (2012-06-02) |
parents | b5cba588c960 |
children | 13e28885c9a9 |
files | runcom/receipt |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/runcom/receipt Sat Jun 02 10:54:23 2012 +0200 1.3 @@ -0,0 +1,37 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="runcom" 1.7 +VERSION="1.0" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="DOS .com binary format support" 1.10 +MAINTAINER="dev@slitaz.org" 1.11 +WEB_SITE="http://bellard.org/jslinux" 1.12 +TARGET="i486" 1.13 +BUILD_DEPENDS="uclibc-cross-compiler-$TARGET" 1.14 + 1.15 +# Rules to configure and make the package. 1.16 +compile_rules() 1.17 +{ 1.18 + mkdir $src 1.19 + cd $src 1.20 + tarball=$(wget -O - $WEB_SITE/tech.html | \ 1.21 + sed '/linuxstart/!d;s/.*href="\([^"]*\)".*/\1/') 1.22 + wget $WEB_SITE/$tarball 1.23 + tar xzf $tarball 1.24 + mkdir -p _pkg/usr/bin 1.25 + uclibc-$TARGET-cc -o _pkg/usr/bin/runcom $(find . -name runcom.c) 1.26 +} 1.27 + 1.28 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.29 +genpkg_rules() 1.30 +{ 1.31 + cp -a $_pkg/* $fs 1.32 +} 1.33 + 1.34 +# Post install command for Tazpkg. 1.35 +post_install() 1.36 +{ 1.37 + cat >> $1/etc/init.d/local.sh <<EOT 1.38 +[ -d /proc/sys/fs/binfmt_misc ] && echo ':DOSCOM:E::com::/usr/bin/runcom:' > /proc/sys/fs/binfmt_misc/register 1.39 +EOT 1.40 +}