Gentoo Archives: gentoo-commits

From: Ben Kohler <bkohler@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/qemu-init-scripts/files/, app-emulation/qemu-init-scripts/
Date: Wed, 29 Jan 2020 14:20:26
Message-Id: 1580307593.a28ecf7280fdf5c09509c3af2c8b467131f0d209.bkohler@gentoo
1 commit: a28ecf7280fdf5c09509c3af2c8b467131f0d209
2 Author: Ben Kohler <bkohler <AT> gentoo <DOT> org>
3 AuthorDate: Wed Jan 29 14:19:00 2020 +0000
4 Commit: Ben Kohler <bkohler <AT> gentoo <DOT> org>
5 CommitDate: Wed Jan 29 14:19:53 2020 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a28ecf72
7
8 app-emulation/qemu-init-scripts: revbump for EAPI & misc QA fixes
9
10 Closes: https://bugs.gentoo.org/622276
11
12 Package-Manager: Portage-2.3.86, Repoman-2.3.20
13 Signed-off-by: Ben Kohler <bkohler <AT> gentoo.org>
14
15 .../qemu-init-scripts/files/openrc-run.patch | 10 +++++++
16 .../qemu-init-scripts-0.3.0-r1.ebuild | 35 ++++++++++++++++++++++
17 2 files changed, 45 insertions(+)
18
19 diff --git a/app-emulation/qemu-init-scripts/files/openrc-run.patch b/app-emulation/qemu-init-scripts/files/openrc-run.patch
20 new file mode 100644
21 index 00000000000..5592ff2e115
22 --- /dev/null
23 +++ b/app-emulation/qemu-init-scripts/files/openrc-run.patch
24 @@ -0,0 +1,10 @@
25 +diff --git a/qemu-init-script b/qemu-init-script
26 +index 937ddfe..b2c060f 100755
27 +--- a/qemu-init-script
28 ++++ b/qemu-init-script
29 +@@ -1,4 +1,4 @@
30 +-#!/sbin/runscript
31 ++#!/sbin/openrc-run
32 + # Copyright 2009-2013 Gentoo Foundation
33 + # Distributed under the terms of the GNU General Public License v2
34 +
35
36 diff --git a/app-emulation/qemu-init-scripts/qemu-init-scripts-0.3.0-r1.ebuild b/app-emulation/qemu-init-scripts/qemu-init-scripts-0.3.0-r1.ebuild
37 new file mode 100644
38 index 00000000000..b953a36d13c
39 --- /dev/null
40 +++ b/app-emulation/qemu-init-scripts/qemu-init-scripts-0.3.0-r1.ebuild
41 @@ -0,0 +1,35 @@
42 +# Copyright 1999-2020 Gentoo Authors
43 +# Distributed under the terms of the GNU General Public License v2
44 +
45 +EAPI=7
46 +
47 +DESCRIPTION="Kvm and qemu init scripts"
48 +HOMEPAGE="https://gitweb.gentoo.org/proj/kvm-tools.git/"
49 +
50 +SRC_URI="https://dev.gentoo.org/~dolsen/releases/${PN}/${P}.tar.xz"
51 +LICENSE="GPL-2"
52 +SLOT=0
53 +KEYWORDS="~amd64 ~x86"
54 +
55 +RDEPEND="
56 + app-emulation/qemu
57 + net-misc/socat"
58 +
59 +S="${WORKDIR}/${PN}"
60 +PATCHES=( "${FILESDIR}"/openrc-run.patch )
61 +
62 +src_install() {
63 + newinitd "${S}/"qemu-init-script qemu
64 + newconfd "${S}/"qemu-conf.example qemu.conf.example
65 + newsbin "${S}/"qtap-manipulate qtap-manipulate
66 + dosym qemu /etc/init.d/kvm
67 +}
68 +
69 +pkg_postinst() {
70 + elog "For bridging networking systems, you need these run time utilities:"
71 + elog " net-misc/bridge-utils"
72 + elog " sys-apps/usermode-utilities"
73 + elog ""
74 + elog "We will be updating these scripts to use"
75 + elog "iptables exclusively in the future"
76 +}