app-emulation/spice-vdagent: version bump to 0.17.0_p20180319
authorMatthias Maier <tamiko@gentoo.org>
Mon, 19 Mar 2018 16:06:08 +0000 (11:06 -0500)
committerMatthias Maier <tamiko@gentoo.org>
Mon, 19 Mar 2018 16:09:45 +0000 (11:09 -0500)
Bug: https://bugs.gentoo.org/650020

Package-Manager: Portage-2.3.24, Repoman-2.3.6

app-emulation/spice-vdagent/Manifest
app-emulation/spice-vdagent/spice-vdagent-0.17.0_p20180319.ebuild [new file with mode: 0644]

index 490424d6b3b039d3e6a46a20214e3ece8efb6aae..136c9215aacf84ba641775d80354230a49065dd1 100644 (file)
@@ -1 +1,2 @@
+DIST spice-vdagent-0.17.0-patches-20180319.tar.xz 38924 BLAKE2B c7c7f851d307cd7dde620278c6ea240d71f8b1f25d6367f81213c7e902d2b2c15f72c71344f965743a45b5693832a2937041ca7b5511ce1db479dafe137bc7b1 SHA512 8ac627f56605151aebc100a6c6d61243776662150095c768196d750929971f98f4b6d1a831cfb547d29ae8a6734795c93e51a9c4f27dcf53bd66aca6df437c51
 DIST spice-vdagent-0.17.0.tar.bz2 130413 BLAKE2B b2fb522f491512d94ac15fa8d253e8e682210ad40657eb9e5e40489eaab18c9f1d5ef5f97075a4389501050a758e1f56d47132de6b1c74bb153fc6b5e87a698d SHA512 b26e44f6463ba70d5815956b301cc2351db22de41ed2ce8b2828d9bfa1cc581c86acd433f8f0d35d552d20f6ca140f88fa39b079ba26e9166dc07ad35bee502e
diff --git a/app-emulation/spice-vdagent/spice-vdagent-0.17.0_p20180319.ebuild b/app-emulation/spice-vdagent/spice-vdagent-0.17.0_p20180319.ebuild
new file mode 100644 (file)
index 0000000..a7df704
--- /dev/null
@@ -0,0 +1,70 @@
+# Copyright 1999-2018 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=6
+
+inherit linux-info
+
+MY_P="${P/_*/}"
+PATCHSET="${P/*_p/}"
+
+DESCRIPTION="SPICE VD Linux Guest Agent"
+HOMEPAGE="https://www.spice-space.org/"
+SRC_URI="https://www.spice-space.org/download/releases/${MY_P}.tar.bz2
+       https://dev.gentoo.org/~tamiko/distfiles/${MY_P}-patches-${PATCHSET}.tar.xz"
+
+LICENSE="LGPL-2.1"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+IUSE="+consolekit selinux systemd"
+S="${WORKDIR}/${MY_P}"
+
+CDEPEND="
+       >=app-emulation/spice-protocol-0.12.8
+       media-libs/alsa-lib
+       >=x11-libs/libpciaccess-0.10
+       x11-libs/libXfixes
+       x11-libs/libXrandr
+       x11-libs/libX11
+       x11-libs/libXinerama
+       consolekit? ( sys-auth/consolekit sys-apps/dbus )
+       systemd? ( sys-apps/systemd )"
+DEPEND="${CDEPEND}
+       virtual/pkgconfig"
+RDEPEND="${CDEPEND}
+       selinux? ( sec-policy/selinux-vdagent )"
+
+CONFIG_CHECK="~INPUT_UINPUT ~VIRTIO_CONSOLE"
+ERROR_INPUT_UINPUT="User level input support (INPUT_UINPUT) is required"
+ERROR_VIRTIO_CONSOLE="VirtIO console/serial device support (VIRTIO_CONSOLE) is required"
+
+PATCHES=(
+       "${WORKDIR}"/patches
+       )
+
+src_configure() {
+       local opt=()
+       if use consolekit; then
+               opt+=( --with-session-info=console-kit )
+       elif use systemd; then
+               opt+=( --with-session-info=systemd )
+       else
+               opt+=( --with-session-info=none )
+       fi
+
+       econf \
+               --with-init-script=systemd \
+               --localstatedir="${EPREFIX}"/var \
+               "${opt[@]}"
+}
+
+src_install() {
+       default
+
+       cd "${ED}" && rmdir -p var/run/spice-vdagentd || die
+
+       keepdir /var/log/spice-vdagentd
+
+       newinitd "${FILESDIR}/${PN}.initd-3" "${PN}"
+       newconfd "${FILESDIR}/${PN}.confd-2" "${PN}"
+}