wok-current diff elksemu/receipt @ rev 17512
util-linux-blkid: update deps
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Sun Jan 11 11:40:15 2015 +0100 (2015-01-11) |
parents | |
children | c8d6c4458d1b |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/elksemu/receipt Sun Jan 11 11:40:15 2015 +0100 1.3 @@ -0,0 +1,40 @@ 1.4 +# SliTaz package receipt. 1.5 + 1.6 +PACKAGE="elksemu" 1.7 +VERSION="0.16.18" 1.8 +CATEGORY="system-tools" 1.9 +SHORT_DESC="ELKS (linux-8086) binary format support" 1.10 +MAINTAINER="devel@slitaz.org" 1.11 +LICENSE="GPL2" 1.12 +WEB_SITE="http://www.debath.co.uk/" 1.13 +WANTED="dev86" 1.14 +TAGS="virtual 8086 vm86" 1.15 + 1.16 +# Rules to gen a SliTaz package suitable for Tazpkg. 1.17 +genpkg_rules() 1.18 +{ 1.19 + mkdir -p $fs/usr/bin 1.20 + cp -a $install/usr/bin/elksemu $fs/usr/bin 1.21 +} 1.22 + 1.23 +# Post install command for Tazpkg. 1.24 +post_install() 1.25 +{ 1.26 + fmt="binfmt_misc" 1.27 + proc="/proc/sys/fs/binfmt_misc" 1.28 + cat > /tmp/runelks$$ <<EOT 1.29 +[ ! -e $proc/register ] && modprobe $fmt && mount -t $fmt $fmt $proc 1.30 +echo ':i86-elks:M::\x01\x03\x20\x00:\xff\xff\xff\x83:/usr/bin/elksemu:' >$proc/register 1.31 +EOT 1.32 + rc="$1/etc/init.d/local.sh" 1.33 + grep -q ':i86-elks:M:' $rc || cat /tmp/runelks$$ >> $rc 1.34 + [ -n "$1" ] || . /tmp/runelks$$ 1.35 + rm -f /tmp/runelks$$ 1.36 +} 1.37 + 1.38 +# Pre remove command for Tazpkg. 1.39 +pre_remove() 1.40 +{ 1.41 + echo -1 > $1/proc/sys/fs/binfmt_misc/i86-elks 1.42 + sed -i '/binfmt_misc/{N;/:i86-elks:M:/d}' $1/etc/init.d/local.sh 1.43 +}