blob: bf214f0915a25586bd3208b3503771c09f1fbce8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
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]}
}
|