diff options
Diffstat (limited to 'app-emulation/spice-vdagent')
-rw-r--r-- | app-emulation/spice-vdagent/Manifest | 4 | ||||
-rw-r--r-- | app-emulation/spice-vdagent/files/spice-vdagent.initd-3 | 60 | ||||
-rw-r--r-- | app-emulation/spice-vdagent/metadata.xml | 9 | ||||
-rw-r--r-- | app-emulation/spice-vdagent/spice-vdagent-0.17.0_p20180319-r1.ebuild | 75 | ||||
-rw-r--r-- | app-emulation/spice-vdagent/spice-vdagent-0.22.1.ebuild (renamed from app-emulation/spice-vdagent/spice-vdagent-0.19.0-r1.ebuild) | 50 |
5 files changed, 27 insertions, 171 deletions
diff --git a/app-emulation/spice-vdagent/Manifest b/app-emulation/spice-vdagent/Manifest index fd06cd9a0baf..49738685af14 100644 --- a/app-emulation/spice-vdagent/Manifest +++ b/app-emulation/spice-vdagent/Manifest @@ -1,3 +1 @@ -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 -DIST spice-vdagent-0.19.0.tar.bz2 151356 BLAKE2B b7a99a7205d955b27edfe483746e3f267a6e0b7885c4b8146ba42d99b581cf4e1748b503a37a3d6b66623ef2515b42756f2e6a5a4775d56def7aa396bd0dfb4f SHA512 f5056dfe66df3ee8205549be22bbc8c17d2196c8448eda97f01659ff30c34d9929f330767d7fafec557dc5f7fb9b65eaf85973193b38df774042de9b72d6e60d +DIST spice-vdagent-0.22.1.tar.bz2 165560 BLAKE2B 4fd4318592d20d305d515c65d7491b90ac79bcc7f5bdfafd9df7858bdce24aa57c79f2121bbf9cbadec8e6297890f4b8598b9abcadcce5a9f39712b96deaa396 SHA512 5a4d2661145f33a0583880a128d925b15ca5aec05df83271c80f8baa0fcdd28fab0242301bc38443ccddf70fbdcfd76b5d30bb5a6b4b7c895c3cea0eb38bdf92 diff --git a/app-emulation/spice-vdagent/files/spice-vdagent.initd-3 b/app-emulation/spice-vdagent/files/spice-vdagent.initd-3 deleted file mode 100644 index 255051192b15..000000000000 --- a/app-emulation/spice-vdagent/files/spice-vdagent.initd-3 +++ /dev/null @@ -1,60 +0,0 @@ -#!/sbin/openrc-run -# Copyright 1999-2012 Gentoo Foundation -# Distributed under the terms of the GNU General Public License v2 - -depend() { - after dbus -} - -PIDFILE="/var/run/spice-vdagentd/spice-vdagentd.pid" - -start() { - PORT="${PORT:-/dev/virtio-ports/com.redhat.spice.0}" - DEVICE="${DEVICE:-/dev/uinput}" - - ebegin "Checking for required modules and devices" - - if [ ! -d /sys/module/uinput ]; then - modprobe -q uinput - fi - - if [ ! -d /sys/module/uinput ]; then - eerror "Module 'uinput' not loaded or not enabled in the kernel" - eend 1 - return 1 - fi - - if [ ! -c "${PORT}" ] ; then - eerror "Required virtio port does not exist. Make sure you" - eerror "started the virtual machine with appropriate parameters." - eend 1 - return 1 - fi - eend 0 - - if [ ! -c ${DEVICE} -a -c /dev/input/uinput ]; then - DEVICE=/dev/input/uinput - fi - - # recreate the directory since /var/run may reside on a ramdisk - mkdir -p /var/run/spice-vdagentd - - # cleanup stalled socket - rm -f /var/run/spice-vdagentd/spice-vdagent-sock - - ebegin "Starting spice VD agent daemon" - start-stop-daemon \ - --start \ - --pidfile "${PIDFILE}" \ - --exec /usr/sbin/spice-vdagentd \ - -- -u "${DEVICE}" ${SPICE_VDAGENT_ARGS} - eend $? -} - -stop() { - ebegin "Stopping spice VD agent daemon" - start-stop-daemon \ - --stop \ - --pidfile "${PIDFILE}" - eend $? -} diff --git a/app-emulation/spice-vdagent/metadata.xml b/app-emulation/spice-vdagent/metadata.xml index 50477de61e16..cfac6f8ac4ff 100644 --- a/app-emulation/spice-vdagent/metadata.xml +++ b/app-emulation/spice-vdagent/metadata.xml @@ -1,15 +1,8 @@ <?xml version="1.0" encoding="UTF-8"?> -<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd"> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> <pkgmetadata> - <maintainer type="person"> - <email>dev-zero@gentoo.org</email> - <name>Tiziano Müller</name> - </maintainer> <maintainer type="project"> <email>virtualization@gentoo.org</email> <name>Gentoo Virtualization Project</name> </maintainer> - <use> - <flag name="consolekit">Use <pkg>sys-auth/consolekit</pkg> to determine the master vdagentd in case of multiple running vdagentds (highly recommended)</flag> - </use> </pkgmetadata> diff --git a/app-emulation/spice-vdagent/spice-vdagent-0.17.0_p20180319-r1.ebuild b/app-emulation/spice-vdagent/spice-vdagent-0.17.0_p20180319-r1.ebuild deleted file mode 100644 index 5a356f6ee6ef..000000000000 --- a/app-emulation/spice-vdagent/spice-vdagent-0.17.0_p20180319-r1.ebuild +++ /dev/null @@ -1,75 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=6 - -inherit autotools 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_prepare() { - default - eautoreconf -} - -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}" -} diff --git a/app-emulation/spice-vdagent/spice-vdagent-0.19.0-r1.ebuild b/app-emulation/spice-vdagent/spice-vdagent-0.22.1.ebuild index de4e147bf833..c58c80ea1479 100644 --- a/app-emulation/spice-vdagent/spice-vdagent-0.19.0-r1.ebuild +++ b/app-emulation/spice-vdagent/spice-vdagent-0.22.1.ebuild @@ -1,54 +1,45 @@ -# Copyright 1999-2019 Gentoo Authors +# Copyright 1999-2023 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 -EAPI=7 +EAPI=8 -inherit autotools linux-info - -MY_P="${P/_*/}" -PATCHSET="${P/*_p/}" +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/${MY_P}.tar.bz2" +SRC_URI="https://www.spice-space.org/download/releases/${P}.tar.bz2" LICENSE="LGPL-2.1" SLOT="0" -KEYWORDS="~amd64 ~x86" -IUSE="consolekit gtk selinux systemd" -S="${WORKDIR}/${MY_P}" +KEYWORDS="amd64 ~arm64 ~loong x86" +IUSE="gtk selinux systemd" -CDEPEND=" +COMMON_DEPEND=" + dev-libs/glib:2 >=app-emulation/spice-protocol-0.14.0 media-libs/alsa-lib - >=x11-libs/libpciaccess-0.10 + sys-apps/dbus x11-libs/libdrm + >=x11-libs/libpciaccess-0.10 x11-libs/libXfixes x11-libs/libXrandr x11-libs/libX11 x11-libs/libXinerama - consolekit? ( sys-auth/consolekit sys-apps/dbus ) gtk? ( x11-libs/gtk+:3 ) systemd? ( sys-apps/systemd )" -DEPEND="${CDEPEND} - virtual/pkgconfig" -RDEPEND="${CDEPEND} +DEPEND="${COMMON_DEPEND} + x11-base/xorg-proto" +RDEPEND="${COMMON_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_prepare() { - default - eautoreconf -} - src_configure() { local opt=() - if use consolekit; then - opt+=( --with-session-info=console-kit ) - elif use systemd; then + if use systemd; then opt+=( --with-session-info=systemd ) else opt+=( --with-session-info=none ) @@ -64,10 +55,19 @@ src_configure() { src_install() { default - cd "${ED}" && rmdir -p var/run/spice-vdagentd || die + 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 +} + +pkg_postrm() { + udev_reload +} |