2014-05-19 08:50:50 +04:00
|
|
|
# Copyright 1999-2014 Gentoo Foundation
|
2012-02-06 16:39:49 +04:00
|
|
|
# Distributed under the terms of the GNU General Public License v2
|
2014-11-02 16:30:07 +03:00
|
|
|
# $Header: /var/cvsroot/gentoo-x86/app-emulation/spice-vdagent/spice-vdagent-0.10.1.ebuild,v 1.7 2014/11/02 08:03:31 swift Exp $
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
EAPI=4
|
|
|
|
|
|
|
|
inherit linux-info
|
|
|
|
|
2014-08-06 17:12:35 +04:00
|
|
|
DESCRIPTION="SPICE VD Linux Guest Agent"
|
2012-02-06 16:39:49 +04:00
|
|
|
HOMEPAGE="http://spice-space.org/"
|
|
|
|
SRC_URI="http://spice-space.org/download/releases/${P}.tar.bz2"
|
|
|
|
|
|
|
|
LICENSE="LGPL-2.1"
|
|
|
|
SLOT="0"
|
2012-08-19 14:27:23 +04:00
|
|
|
KEYWORDS="~amd64 ~x86"
|
2014-05-19 08:50:50 +04:00
|
|
|
IUSE="+consolekit selinux"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2014-11-02 16:30:07 +03:00
|
|
|
CDEPEND="x11-libs/libXfixes
|
2012-02-06 16:39:49 +04:00
|
|
|
x11-libs/libXrandr
|
|
|
|
x11-libs/libX11
|
2012-08-22 10:29:12 +04:00
|
|
|
x11-libs/libXinerama
|
|
|
|
>=x11-libs/libpciaccess-0.10
|
2012-07-09 11:14:04 +04:00
|
|
|
>=app-emulation/spice-protocol-0.10.1
|
2014-11-02 16:30:07 +03:00
|
|
|
consolekit? ( sys-auth/consolekit sys-apps/dbus )"
|
2012-05-04 08:09:11 +04:00
|
|
|
DEPEND="virtual/pkgconfig
|
2014-11-02 16:30:07 +03:00
|
|
|
${CDEPEND}"
|
|
|
|
RDEPEND="${CDEPEND}
|
|
|
|
selinux? ( sec-policy/selinux-vdagent )"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
2012-07-09 11:14:04 +04:00
|
|
|
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"
|
2012-02-06 16:39:49 +04:00
|
|
|
|
|
|
|
src_configure() {
|
2012-10-05 10:41:45 +04:00
|
|
|
local opt=
|
|
|
|
|
|
|
|
use consolekit && opt="${opt} --with-session-info=console-kit"
|
|
|
|
|
2012-02-06 16:39:49 +04:00
|
|
|
econf \
|
|
|
|
--localstatedir=/var \
|
2012-10-05 10:41:45 +04:00
|
|
|
${opt}
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|
|
|
|
|
|
|
|
src_install() {
|
|
|
|
default
|
|
|
|
|
|
|
|
rm -rf "${D}"/etc/{rc,tmpfiles}.d
|
|
|
|
|
|
|
|
keepdir /var/run/spice-vdagentd
|
|
|
|
keepdir /var/log/spice-vdagentd
|
|
|
|
|
2012-07-09 11:14:04 +04:00
|
|
|
newinitd "${FILESDIR}/${PN}.initd-2" "${PN}"
|
|
|
|
newconfd "${FILESDIR}/${PN}.confd-2" "${PN}"
|
2012-02-06 16:39:49 +04:00
|
|
|
}
|