blob: b953a36d13ca32b004b176fd06333f8d02e90d14 (
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
|
# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
DESCRIPTION="Kvm and qemu init scripts"
HOMEPAGE="https://gitweb.gentoo.org/proj/kvm-tools.git/"
SRC_URI="https://dev.gentoo.org/~dolsen/releases/${PN}/${P}.tar.xz"
LICENSE="GPL-2"
SLOT=0
KEYWORDS="~amd64 ~x86"
RDEPEND="
app-emulation/qemu
net-misc/socat"
S="${WORKDIR}/${PN}"
PATCHES=( "${FILESDIR}"/openrc-run.patch )
src_install() {
newinitd "${S}/"qemu-init-script qemu
newconfd "${S}/"qemu-conf.example qemu.conf.example
newsbin "${S}/"qtap-manipulate qtap-manipulate
dosym qemu /etc/init.d/kvm
}
pkg_postinst() {
elog "For bridging networking systems, you need these run time utilities:"
elog " net-misc/bridge-utils"
elog " sys-apps/usermode-utilities"
elog ""
elog "We will be updating these scripts to use"
elog "iptables exclusively in the future"
}
|