Gentoo Archives: gentoo-commits

From: Matthias Maier <tamiko@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: app-emulation/spice-vdagent/
Date: Sun, 28 Jul 2019 19:39:08
Message-Id: 1564342650.46f7419a65fdface0529a914199b2918c54a48ed.tamiko@gentoo
1 commit: 46f7419a65fdface0529a914199b2918c54a48ed
2 Author: Matthias Maier <tamiko <AT> gentoo <DOT> org>
3 AuthorDate: Sun Jul 28 18:47:06 2019 +0000
4 Commit: Matthias Maier <tamiko <AT> gentoo <DOT> org>
5 CommitDate: Sun Jul 28 19:37:30 2019 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=46f7419a
7
8 app-emulation/spice-vdagent: version bump to 0.19.0
9
10 Package-Manager: Portage-2.3.69, Repoman-2.3.16
11 Signed-off-by: Matthias Maier <tamiko <AT> gentoo.org>
12
13 app-emulation/spice-vdagent/Manifest | 1 +
14 .../spice-vdagent/spice-vdagent-0.19.0.ebuild | 70 ++++++++++++++++++++++
15 2 files changed, 71 insertions(+)
16
17 diff --git a/app-emulation/spice-vdagent/Manifest b/app-emulation/spice-vdagent/Manifest
18 index 136c9215aac..fd06cd9a0ba 100644
19 --- a/app-emulation/spice-vdagent/Manifest
20 +++ b/app-emulation/spice-vdagent/Manifest
21 @@ -1,2 +1,3 @@
22 DIST spice-vdagent-0.17.0-patches-20180319.tar.xz 38924 BLAKE2B c7c7f851d307cd7dde620278c6ea240d71f8b1f25d6367f81213c7e902d2b2c15f72c71344f965743a45b5693832a2937041ca7b5511ce1db479dafe137bc7b1 SHA512 8ac627f56605151aebc100a6c6d61243776662150095c768196d750929971f98f4b6d1a831cfb547d29ae8a6734795c93e51a9c4f27dcf53bd66aca6df437c51
23 DIST spice-vdagent-0.17.0.tar.bz2 130413 BLAKE2B b2fb522f491512d94ac15fa8d253e8e682210ad40657eb9e5e40489eaab18c9f1d5ef5f97075a4389501050a758e1f56d47132de6b1c74bb153fc6b5e87a698d SHA512 b26e44f6463ba70d5815956b301cc2351db22de41ed2ce8b2828d9bfa1cc581c86acd433f8f0d35d552d20f6ca140f88fa39b079ba26e9166dc07ad35bee502e
24 +DIST spice-vdagent-0.19.0.tar.bz2 151356 BLAKE2B b7a99a7205d955b27edfe483746e3f267a6e0b7885c4b8146ba42d99b581cf4e1748b503a37a3d6b66623ef2515b42756f2e6a5a4775d56def7aa396bd0dfb4f SHA512 f5056dfe66df3ee8205549be22bbc8c17d2196c8448eda97f01659ff30c34d9929f330767d7fafec557dc5f7fb9b65eaf85973193b38df774042de9b72d6e60d
25
26 diff --git a/app-emulation/spice-vdagent/spice-vdagent-0.19.0.ebuild b/app-emulation/spice-vdagent/spice-vdagent-0.19.0.ebuild
27 new file mode 100644
28 index 00000000000..aad36b37b09
29 --- /dev/null
30 +++ b/app-emulation/spice-vdagent/spice-vdagent-0.19.0.ebuild
31 @@ -0,0 +1,70 @@
32 +# Copyright 1999-2019 Gentoo Authors
33 +# Distributed under the terms of the GNU General Public License v2
34 +
35 +EAPI=7
36 +
37 +inherit autotools linux-info
38 +
39 +MY_P="${P/_*/}"
40 +PATCHSET="${P/*_p/}"
41 +
42 +DESCRIPTION="SPICE VD Linux Guest Agent"
43 +HOMEPAGE="https://www.spice-space.org/"
44 +SRC_URI="https://www.spice-space.org/download/releases/${MY_P}.tar.bz2"
45 +
46 +LICENSE="LGPL-2.1"
47 +SLOT="0"
48 +KEYWORDS="~amd64 ~x86"
49 +IUSE="+consolekit selinux systemd"
50 +S="${WORKDIR}/${MY_P}"
51 +
52 +CDEPEND="
53 + >=app-emulation/spice-protocol-0.12.8
54 + media-libs/alsa-lib
55 + >=x11-libs/libpciaccess-0.10
56 + x11-libs/libXfixes
57 + x11-libs/libXrandr
58 + x11-libs/libX11
59 + x11-libs/libXinerama
60 + consolekit? ( sys-auth/consolekit sys-apps/dbus )
61 + systemd? ( sys-apps/systemd )"
62 +DEPEND="${CDEPEND}
63 + virtual/pkgconfig"
64 +RDEPEND="${CDEPEND}
65 + selinux? ( sec-policy/selinux-vdagent )"
66 +
67 +CONFIG_CHECK="~INPUT_UINPUT ~VIRTIO_CONSOLE"
68 +ERROR_INPUT_UINPUT="User level input support (INPUT_UINPUT) is required"
69 +ERROR_VIRTIO_CONSOLE="VirtIO console/serial device support (VIRTIO_CONSOLE) is required"
70 +
71 +src_prepare() {
72 + default
73 + eautoreconf
74 +}
75 +
76 +src_configure() {
77 + local opt=()
78 + if use consolekit; then
79 + opt+=( --with-session-info=console-kit )
80 + elif use systemd; then
81 + opt+=( --with-session-info=systemd )
82 + else
83 + opt+=( --with-session-info=none )
84 + fi
85 +
86 + econf \
87 + --with-init-script=systemd \
88 + --localstatedir="${EPREFIX}"/var \
89 + "${opt[@]}"
90 +}
91 +
92 +src_install() {
93 + default
94 +
95 + cd "${ED}" && rmdir -p var/run/spice-vdagentd || die
96 +
97 + keepdir /var/log/spice-vdagentd
98 +
99 + newinitd "${FILESDIR}/${PN}.initd-3" "${PN}"
100 + newconfd "${FILESDIR}/${PN}.confd-2" "${PN}"
101 +}