diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /app-emulation/spice-vdagent/spice-vdagent-0.22.1.ebuild | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'app-emulation/spice-vdagent/spice-vdagent-0.22.1.ebuild')
-rw-r--r-- | app-emulation/spice-vdagent/spice-vdagent-0.22.1.ebuild | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/app-emulation/spice-vdagent/spice-vdagent-0.22.1.ebuild b/app-emulation/spice-vdagent/spice-vdagent-0.22.1.ebuild new file mode 100644 index 000000000000..6b3fd1e10224 --- /dev/null +++ b/app-emulation/spice-vdagent/spice-vdagent-0.22.1.ebuild @@ -0,0 +1,67 @@ +# Copyright 1999-2022 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit linux-info tmpfiles udev + +DESCRIPTION="SPICE VD Linux Guest Agent" +HOMEPAGE="https://www.spice-space.org/" +SRC_URI="https://www.spice-space.org/download/releases/${P}.tar.bz2" + +LICENSE="LGPL-2.1" +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86" +IUSE="gtk selinux systemd" + +DEPEND=" + dev-libs/glib:2 + >=app-emulation/spice-protocol-0.14.0 + media-libs/alsa-lib + sys-apps/dbus + x11-libs/libdrm + >=x11-libs/libpciaccess-0.10 + x11-libs/libXfixes + x11-libs/libXrandr + x11-libs/libX11 + x11-libs/libXinerama + gtk? ( x11-libs/gtk+:3 ) + systemd? ( sys-apps/systemd )" +RDEPEND="${DEPEND} + selinux? ( sec-policy/selinux-vdagent )" +BDEPEND="virtual/pkgconfig" + +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" + +src_configure() { + local opt=() + if use systemd; then + opt+=( --with-session-info=systemd ) + else + opt+=( --with-session-info=none ) + fi + + econf \ + --with-init-script=systemd \ + --localstatedir="${EPREFIX}"/var \ + $(use_with gtk) \ + "${opt[@]}" +} + +src_install() { + default + + rmdir "${ED}"/var/run/spice-vdagentd || die + + keepdir /var/log/spice-vdagentd + + newinitd "${FILESDIR}/${PN}.initd-4" "${PN}" + newconfd "${FILESDIR}/${PN}.confd-2" "${PN}" +} + +pkg_postinst() { + udev_reload + tmpfiles_process spice-vdagentd.conf +} |