You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
57 lines
1.3 KiB
57 lines
1.3 KiB
9 years ago
|
# Copyright 1999-2015 Gentoo Foundation
|
||
13 years ago
|
# Distributed under the terms of the GNU General Public License v2
|
||
9 years ago
|
# $Id$
|
||
13 years ago
|
|
||
9 years ago
|
EAPI=5
|
||
13 years ago
|
|
||
|
inherit linux-info
|
||
|
|
||
10 years ago
|
DESCRIPTION="SPICE VD Linux Guest Agent"
|
||
13 years ago
|
HOMEPAGE="http://spice-space.org/"
|
||
|
SRC_URI="http://spice-space.org/download/releases/${P}.tar.bz2"
|
||
|
|
||
|
LICENSE="LGPL-2.1"
|
||
|
SLOT="0"
|
||
12 years ago
|
KEYWORDS="~amd64 ~x86"
|
||
9 years ago
|
IUSE="+consolekit selinux systemd"
|
||
13 years ago
|
|
||
9 years ago
|
CDEPEND="media-libs/alsa-lib
|
||
|
x11-libs/libXfixes
|
||
13 years ago
|
x11-libs/libXrandr
|
||
|
x11-libs/libX11
|
||
12 years ago
|
x11-libs/libXinerama
|
||
|
>=x11-libs/libpciaccess-0.10
|
||
9 years ago
|
>=app-emulation/spice-protocol-0.12.8
|
||
|
consolekit? ( sys-auth/consolekit sys-apps/dbus )
|
||
|
systemd? ( sys-apps/systemd )"
|
||
12 years ago
|
DEPEND="virtual/pkgconfig
|
||
10 years ago
|
${CDEPEND}"
|
||
|
RDEPEND="${CDEPEND}
|
||
|
selinux? ( sec-policy/selinux-vdagent )"
|
||
13 years ago
|
|
||
12 years ago
|
CONFIG_CHECK="~INPUT_UINPUT ~VIRTIO_CONSOLE"
|
||
|
ERROR_INPUT_UINPUT="User level input support is required"
|
||
|
ERROR_VIRTIO_CONSOLE="VirtIO console/serial device support is required"
|
||
13 years ago
|
|
||
|
src_configure() {
|
||
9 years ago
|
local opt="--with-session-info=none --with-init-script=systemd"
|
||
12 years ago
|
|
||
9 years ago
|
use systemd && opt="--with-session-info=systemd"
|
||
12 years ago
|
use consolekit && opt="${opt} --with-session-info=console-kit"
|
||
|
|
||
13 years ago
|
econf \
|
||
|
--localstatedir=/var \
|
||
12 years ago
|
${opt}
|
||
13 years ago
|
}
|
||
|
|
||
|
src_install() {
|
||
|
default
|
||
|
|
||
|
rm -rf "${D}"/etc/{rc,tmpfiles}.d
|
||
|
|
||
|
keepdir /var/log/spice-vdagentd
|
||
|
|
||
12 years ago
|
newinitd "${FILESDIR}/${PN}.initd-2" "${PN}"
|
||
|
newconfd "${FILESDIR}/${PN}.confd-2" "${PN}"
|
||
13 years ago
|
}
|