wok annotate elksemu/receipt @ rev 25088

modified recipe for lightdm
author Hans-G?nter Theisgen
date Sat Jun 18 09:31:48 2022 +0100 (2022-06-18)
parents 9e01bc6321ea
children 2b069c72d47e
rev   line source
pascal@16989 1 # SliTaz package receipt.
pascal@16989 2
pascal@16989 3 PACKAGE="elksemu"
pascal@18099 4 VERSION="0.16.21"
pascal@16989 5 CATEGORY="system-tools"
pascal@16989 6 SHORT_DESC="ELKS (linux-8086) binary format support"
pascal@16989 7 MAINTAINER="devel@slitaz.org"
pascal@16989 8 LICENSE="GPL2"
pascal@16989 9 WEB_SITE="http://www.debath.co.uk/"
pascal@16989 10 WANTED="dev86"
pascal@16989 11 TAGS="virtual 8086 vm86"
pascal@16989 12
pascal@16989 13 # Rules to gen a SliTaz package suitable for Tazpkg.
pascal@16989 14 genpkg_rules()
pascal@16989 15 {
pascal@16989 16 mkdir -p $fs/usr/bin
pascal@16989 17 cp -a $install/usr/bin/elksemu $fs/usr/bin
pascal@16989 18 }
pascal@16989 19
pascal@16989 20 # Post install command for Tazpkg.
pascal@16989 21 post_install()
pascal@16989 22 {
pascal@16989 23 fmt="binfmt_misc"
pascal@16989 24 proc="/proc/sys/fs/binfmt_misc"
pascal@16989 25 cat > /tmp/runelks$$ <<EOT
pascal@16989 26 [ ! -e $proc/register ] && modprobe $fmt && mount -t $fmt $fmt $proc
pascal@16989 27 echo ':i86-elks:M::\x01\x03\x20\x00:\xff\xff\xff\x83:/usr/bin/elksemu:' >$proc/register
pascal@16989 28 EOT
pascal@16989 29 rc="$1/etc/init.d/local.sh"
pascal@16989 30 grep -q ':i86-elks:M:' $rc || cat /tmp/runelks$$ >> $rc
pascal@16989 31 [ -n "$1" ] || . /tmp/runelks$$
pascal@16989 32 rm -f /tmp/runelks$$
pascal@16989 33 }
pascal@16989 34
pascal@16989 35 # Pre remove command for Tazpkg.
pascal@16989 36 pre_remove()
pascal@16989 37 {
pascal@18732 38 echo -1 > /proc/sys/fs/binfmt_misc/i86-elks
pascal@18730 39 sed -i '/binfmt_misc/{N;/:i86-elks:M:/d}' "$1/etc/init.d/local.sh"
pascal@16989 40 }