aboutsummaryrefslogtreecommitdiff
path: root/emulation/qemu
diff options
context:
space:
mode:
authorDeposite Pirate2018-09-16 18:48:36 +0200
committerDeposite Pirate2018-09-16 18:48:36 +0200
commitd150a5f3e462fa7fe194a805a4aa0076f4d03ab9 (patch)
treece5e44d69c5f3175bfdbd1e3717b52c5dcca5638 /emulation/qemu
parentf29d3519ce073ec30f99754d93304324f7f26d65 (diff)
Add ports.
Diffstat (limited to 'emulation/qemu')
-rw-r--r--emulation/qemu/qemu-1.5.0-kvmrule.patch.xzbin0 -> 220 bytes
-rw-r--r--emulation/qemu/qemu-1.5.0-nodebugffs.patch.xzbin0 -> 344 bytes
-rwxr-xr-xemulation/qemu/qemu.build75
3 files changed, 75 insertions, 0 deletions
diff --git a/emulation/qemu/qemu-1.5.0-kvmrule.patch.xz b/emulation/qemu/qemu-1.5.0-kvmrule.patch.xz
new file mode 100644
index 0000000..713b07d
--- /dev/null
+++ b/emulation/qemu/qemu-1.5.0-kvmrule.patch.xz
Binary files differ
diff --git a/emulation/qemu/qemu-1.5.0-nodebugffs.patch.xz b/emulation/qemu/qemu-1.5.0-nodebugffs.patch.xz
new file mode 100644
index 0000000..7d1237b
--- /dev/null
+++ b/emulation/qemu/qemu-1.5.0-nodebugffs.patch.xz
Binary files differ
diff --git a/emulation/qemu/qemu.build b/emulation/qemu/qemu.build
new file mode 100755
index 0000000..bf214f0
--- /dev/null
+++ b/emulation/qemu/qemu.build
@@ -0,0 +1,75 @@
+#!/bin/bash
+#
+# Maintainer: Deposite Pirate <ofni.sknuplatem@etaripd>
+
+source /usr/src/ports/Build/build.sh
+
+NAME=qemu
+VERSION=1.5.0
+BUILD=1
+DEPENDS=('glib >= 2.36.0-1' 'sdl >= 1.2.15-1' 'curl >= 7.29.0-1' 'gtk+ >= 2.24.17-1' 'vte >= 0.28.2-1')
+
+# Description
+
+cat > ${PKG}/install/slack-desc <<EOF
+# HOW TO EDIT THIS FILE:
+# The "handy ruler" below makes it easier to edit a package description. Line
+# up the first '|' above the ':' following the base package name, and the '|'
+# on the right side marks the last column you can put a character in. You must
+# make exactly 11 lines for the formatting to be correct. It's also
+# customary to leave one space after the ':'.
+
+$(padd)|-----handy-ruler------------------------------------------------------|
+${NAME}: qemu
+${NAME}:
+${NAME}: QEMU is a FAST! processor emulator using dynamic translation to
+${NAME}: achieve good emulation speed. QEMU has two operating modes:
+${NAME}:
+${NAME}: * Full system emulation. In This mode, QEMU emulates a full system
+${NAME}: (for example a PC), including a processor and various peripherals.
+${NAME}:
+${NAME}: * User mode emulation (Linux host only). In this mode, QEMU can
+${NAME}: launch Linux processes compiled for one CPU on another CPU.
+${NAME}:
+EOF
+
+cat >> ${PKG}/install/doinst.sh <<EOF
+#!/bin/sh
+
+if grep "^kvm::" etc/group 1> /dev/null 2> /dev/null ; then
+ true
+else
+ echo "kvm:x:78:kvm" >> etc/group
+fi
+EOF
+
+# Sources
+
+SRCNAME[0]=${NAME}
+SRCVERS[0]=${VERSION}
+SRCPACK[0]=${URL[savannah]}/${SRCNAME[0]}-${SRCVERS[0]}.tar.bz2
+SRCCOPY[0]="GPL2 LGPL21 MIT"
+
+build0()
+{
+CFLAGS="${FLAGS}" CXXFLAGS="${FLAGS}" \
+./configure \
+ --extra-cflags="${FLAGS}" \
+ --prefix="${SYS_DIR[usr]}" \
+ --sysconfdir="${SYS_DIR[etc]}" \
+ --datadir="${SYS_DIR[share]}/application-data" \
+ --mandir="${SYS_DIR[man]}" \
+ --docdir="${SYS_DIR[html]}/${SRCNAME[0]}" \
+ --libexecdir="${SYS_DIR[lib]}/exec" \
+ --audio-drv-list="alsa sdl" \
+ --enable-tcg-interpreter \
+ --disable-vnc-tls \
+ --disable-vnc-sasl \
+ --disable-xen
+doc MAINTAINERS
+changelog Changelog
+make V="1"
+make install DESTDIR="${PKG}/"
+install.dir ${PKG}${SYS_DIR[udevrules]}
+install.dat 65-kvm.rules ${PKG}${SYS_DIR[udevrules]}
+}