Git-Url: 
http://git.frugalware.org/gitweb/gitweb.cgi?p=frugalware-current.git;a=commitdiff;h=ac1d3af7ace5cecd8e2b9453dc38c76fd7318083

commit ac1d3af7ace5cecd8e2b9453dc38c76fd7318083
Author: James Buren <[email protected]>
Date:   Thu Jul 12 09:49:43 2012 -0500

qemu-1.1.0_1-2-x86_64
* remove all sysvinit units
* convert rc.qemu to binfmt system

diff --git a/source/xapps-extra/qemu/FrugalBuild 
b/source/xapps-extra/qemu/FrugalBuild
index d0fe6af..f1634c4 100644
--- a/source/xapps-extra/qemu/FrugalBuild
+++ b/source/xapps-extra/qemu/FrugalBuild
@@ -6,7 +6,7 @@ USE_DEVEL=${USE_DEVEL:-"n"}
pkgname=qemu
pkgver=1.1.0_1
Fuse $USE_DEVEL && pkgver=svn6369
-pkgrel=1
+pkgrel=2
Fuse $USE_DEVEL && pkgrel=1
pkgdesc="QEMU is a FAST! processor emulator"
url="http://www.nongnu.org/qemu/";
@@ -17,13 +17,9 @@ groups=('xapps-extra')
archs=('i686' 'x86_64')
up2date="Flasttar http://wiki.qemu.org/download";
source=(http://wiki.qemu.org/download/${pkgname}-${pkgver//_/-}.tar.bz2 \
-       rc.qemu rc.qemu-hu.po \
-       rc.qemu-system qemu-system README.Frugalware)
+       qemu.conf README.Frugalware)
sha1sums=('8600765831c137a833854f1aac0313f25089a200' \
-          '563c18fe297f1e79b0172e3b426310ac5fbf1a83' \
-          'ce31601e5712057938227923d4a9adf16eeb36e7' \
-          'd7098b739aa58a004dc61e8e4124751aefad47b3' \
-          'b1c2b53ef74d1461bbd4f83b8a4f1180187f6a30' \
+          '3f0e45376e32024edfb3e5a587f289ae6ca56346' \
'17454e4d54872d32071d478774f96cbab8bb0902')

if Fuse $USE_DEVEL; then
@@ -41,8 +37,8 @@ build()
fi
Fcd $pkgname-${pkgver%%_*}
Fbuild --audio-drv-list=alsa,oss --enable-spice
-       Ffile /etc/sysconfig/qemu-system
Fdoc README.Frugalware
+       Ffile /etc/binfmt.d/qemu.conf
}

# optimization OK
diff --git a/source/xapps-extra/qemu/qemu-system 
b/source/xapps-extra/qemu/qemu-system
deleted file mode 100644
index 859b7af..0000000
--- a/source/xapps-extra/qemu/qemu-system
+++ /dev/null
@@ -1,23 +0,0 @@
-#
-# /etc/sysconfig/qemu-system
-#
-# confiugation file for qemu system emulation
-#
-
-# parameters for machines to start/stop
-
-# please don't use the -monitor parameter, rc.qemu-system appends that so that
-# it will be able to properly stop your machines
-
-# please also don't forget to update inittab to do a shutdown instead of a
-# reboot for ctrl-alt-del. see the 'Creating a root image' section of the
-# documentation of the user-mode-linux package for more information
-
-machines=('qemu -hda /home/qemu/hda.img -redir tcp:1022::22 -vnc :0')
-
-# how often in seconds rc.qemu polls to check if the machines are shut down
-SHUTDOWN_POLL=2
-# don't wait more than this for machines to properly shut down
-SHUTDOWN_TIMEOUT=300
-
-# vim: ft=sh
diff --git a/source/xapps-extra/qemu/rc.qemu b/source/xapps-extra/qemu/rc.qemu
deleted file mode 100644
index cdca7c3..0000000
--- a/source/xapps-extra/qemu/rc.qemu
+++ /dev/null
@@ -1,77 +0,0 @@
-#!/bin/bash
-
-# (c) 2006, 2009 Miklos Vajan <[email protected]>
-# rc.qemu for Frugalware
-# distributed under GPL License
-
-# chkconfig: 2345 35 98
-# description: Allow users to run non-native Linux programs by just clicking \
-#              on them (or typing ./file.exe)
-
-source /lib/initscripts/functions
-TEXTDOMAIN=qemu
-TEXTDOMAINDIR=/lib/initscripts/messages
-
-pid="ls /proc/sys/fs/binfmt_misc/qemu-* 2>/dev/null"
-
-actions=(restart start status stop)
-
-rc_start()
-{
-       start_msg $"Registering binary handler for qemu applications"
-       if [ -n "$(eval $pid)" ]; then
-               ok 999
-               return 1
-       fi
-       modprobe binfmt_misc
-       cpu=`uname -m`
-       case "$cpu" in
-               # as there is no x86_64 user emulation, the rules are
-               # the same as for i686
-               i386|i486|i586|i686|i86pc|BePC|x86_64)
-                       cpu="i386"
-                       ;;
-               "Power Macintosh"|ppc|ppc64)
-                       cpu="ppc"
-                       ;;
-       esac
-       if [ "$cpu" != i386 -a -x /usr/bin/qemu-i386 ] ; then
-               echo 
":qemu-i386:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x03\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/usr/bin/qemu-i386:"
 > /proc/sys/fs/binfmt_misc/register
-               echo 
":qemu-i486:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x06\x00:\xff\xff\xff\xff\xff\xfe\xfe\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/usr/bin/qemu-i386:"
 > /proc/sys/fs/binfmt_misc/register
-       fi
-       if [ -x /usr/bin/qemu-arm ] ; then
-               echo 
":qemu-arm:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/usr/bin/qemu-arm:"
 > /proc/sys/fs/binfmt_misc/register
-       fi
-       if [ -x /usr/bin/qemu-armeb ] ; then
-               echo 
":qemu-armeb:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x28:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-armeb:"
 > /proc/sys/fs/binfmt_misc/register
-       fi
-       if [ "$cpu" != ppc -a -x /usr/bin/qemu-ppc ] ; then
-               echo 
":qemu-ppc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x14:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/usr/bin/qemu-ppc:"
 > /proc/sys/fs/binfmt_misc/register
-       fi
-       if [ -x /usr/bin/qemu-sparc ] ; then
-               echo 
":qemu-sparc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x02:\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfb\xff\xff\xff:/usr/bin/qemu-sparc:"
 > /proc/sys/fs/binfmt_misc/register
-       fi
-       if [ -x /usr/bin/qemu-mips ] ; then
-               echo 
":qemu-mips:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/usr/bin/qemu-mips:"
 > /proc/sys/fs/binfmt_misc/register
-       fi
-       if [ -x /usr/bin/qemu-mipsel ] ; then
-               echo   
":qemu-mipsel:M::\x7fELF\x01\x01\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x08\x00:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff\xff:/usr/bin/qemu-mipsel:"
 > /proc/sys/fs/binfmt_misc/register
-       fi
-       ok $?
-}
-
-rc_stop()
-{
-       stop_msg $"Unregistering binary handler for qemu applications"
-       if [ -z "$(eval $pid)" ]; then
-               ok 999
-               return 1
-       fi
-       for i in i386 i486 arm armeb ppc sparc mips mipsel; do
-               [ -e /proc/sys/fs/binfmt_misc/qemu-$i ] && \
-                       echo "-1" >/proc/sys/fs/binfmt_misc/qemu-$i
-       done
-       ok $?
-}
-
-rc_exec $1
diff --git a/source/xapps-extra/qemu/rc.qemu-hu.po 
b/source/xapps-extra/qemu/rc.qemu-hu.po
deleted file mode 100644
index 15d3adb..0000000
--- a/source/xapps-extra/qemu/rc.qemu-hu.po
+++ /dev/null
@@ -1,29 +0,0 @@
-# Hungarian translations for rc.qemu package.
-# Copyright (C) 2006 THE rc.qemu'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the rc.qemu package.
-#  <[email protected]>, 2006.
-#
-msgid ""
-msgstr ""
-"Project-Id-Version: rc.qemu\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-01-04 01:19+0100\n"
-"PO-Revision-Date: 2006-01-04 01:20+0100\n"
-"Last-Translator:  <[email protected]>\n"
-"Language-Team: Hungarian <[email protected]>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=ISO-8859-2\n"
-"Content-Transfer-Encoding: 8bit\n"
-"Plural-Forms: nplurals=1; plural=0;\n"
-
-#: rc.qemu:19
-msgid "Registering binary handler for qemu applications"
-msgstr "A qemu alkalmazások bináris kezelõjének regisztrálása"
-
-#: rc.qemu:59
-msgid "Qemu binary format handlers are"
-msgstr "A qemu binárisformátum-kezelõi"
-
-#: rc.qemu:69
-msgid "Unregistering binary handler for qemu applications"
-msgstr "A qemu alkalmazások bináris kezelõjének leállítása"
diff --git a/source/xapps-extra/qemu/rc.qemu-system 
b/source/xapps-extra/qemu/rc.qemu-system
deleted file mode 100644
index 4a1df44..0000000
--- a/source/xapps-extra/qemu/rc.qemu-system
+++ /dev/null
@@ -1,91 +0,0 @@
-#!/bin/bash
-
-# (c) 2007 Miklos Vajna <[email protected]>
-# rc.qemu-system for Frugalware
-# distributed under GPL License
-
-# chkconfig: 2345 44 56
-# description: Manage UML machines
-
-source /lib/initscripts/functions
-TEXTDOMAINDIR=/lib/initscripts/functions
-TEXTDOMAIN=qemu-system
-
-actions=(restart start status stop)
-daemon=$"Qemu virtual machines"
-
-pid="cat /var/run/qemu0.pid 2> /dev/null"
-
-rc_start()
-{
-       start_msg
-       if [[ "$(eval ${pid})" == "" ]] ; then
-               source /etc/sysconfig/qemu-system
-               num=0
-               for i in "${machines[@]}"
-               do
-                       $i -monitor unix:/var/run/qemu$num.sock,server,nowait 
&> /var/log/qemu$num.log &
-                       echo $! > /var/run/qemu$num.pid
-                       num=$(($num+1))
-               done
-               ok $?
-       else
-               ok 999
-       fi
-}
-
-rc_status()
-{
-       msg "$daemon are"
-       if ! ls /var/run/qemu*.pid &>/dev/null; then
-               ok 998
-               return 1
-       fi
-       # if one of the machines is running then the service is on
-       for i in /var/run/qemu*.pid
-       do
-               if [ -d "/proc/`cat $i`" ]; then
-                       ok 997
-                       return 0
-               fi
-       done
-       ok 998
-       return 1
-}
-
-rc_stop()
-{
-       source /etc/sysconfig/qemu-system
-       stop_msg
-       if [[ "$(eval ${pid})" != "" ]] ; then
-               # send ctrl-alt-del to each machine
-               for i in /var/run/qemu*.sock
-               do
-                       python -c "import socket; sock = 
socket.socket(socket.AF_UNIX, socket.SOCK_STREAM); \
-sock.connect('$i'); \
-sock.send('sendkey ctrl-alt-delete\n')"
-               done
-               # now wait till they are shut down
-               TIME=0
-               while true
-               do
-                       if ! rc_status &>/dev/null; then
-                               rm -f /var/run/qemu*.pid
-                               ok 0
-                               return
-                       fi
-                       echo -n .
-                       sleep $SHUTDOWN_POLL
-                       TIME=`expr $TIME + $SHUTDOWN_POLL`
-                       if [ $TIME -gt $SHUTDOWN_TIMEOUT ]; then
-                               break
-                       fi
-               done
-               rm -f /var/run/qemu*.pid
-               ok 1
-       else
-               ok 999
-       fi
-}
-
-rc_exec $1
diff --git a/source/xapps-extra/qemu/rc.qemu.pot 
b/source/xapps-extra/qemu/rc.qemu.pot
deleted file mode 100644
index 2146f27..0000000
--- a/source/xapps-extra/qemu/rc.qemu.pot
+++ /dev/null
@@ -1,29 +0,0 @@
-# SOME DESCRIPTIVE TITLE.
-# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
-# This file is distributed under the same license as the PACKAGE package.
-# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
-#
-#, fuzzy
-msgid ""
-msgstr ""
-"Project-Id-Version: PACKAGE VERSION\n"
-"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2006-01-04 01:19+0100\n"
-"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
-"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
-"Language-Team: LANGUAGE <[email protected]>\n"
-"MIME-Version: 1.0\n"
-"Content-Type: text/plain; charset=CHARSET\n"
-"Content-Transfer-Encoding: 8bit\n"
-
-#: rc.qemu:19
-msgid "Registering binary handler for qemu applications"
-msgstr ""
-
-#: rc.qemu:59
-msgid "Qemu binary format handlers are"
-msgstr ""
-
-#: rc.qemu:69
-msgid "Unregistering binary handler for qemu applications"
-msgstr ""
_______________________________________________
Frugalware-git mailing list
[email protected]
http://frugalware.org/mailman/listinfo/frugalware-git

Reply via email to