1 # Copyright 1999-2020 Gentoo Authors
2 # Distributed under the terms of the GNU General Public License v2
6 inherit autotools linux-info
8 if [[ ${PV} == *9999 ]] ; then
9 EGIT_REPO_URI="https://github.com/pirko/${PN}.git"
12 SRC_URI="https://github.com/jpirko/libteam/archive/v${PV}.tar.gz -> ${P}.tar.gz"
13 KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86"
16 DESCRIPTION="Library and tools set for controlling team network device"
17 HOMEPAGE="http://libteam.org"
21 IUSE="dbus debug examples static-libs +syslog zmq"
23 DEPEND=">=dev-libs/jansson-2.4
25 >=dev-libs/libnl-3.2.19[utils]
26 dbus? ( sys-apps/dbus )
27 zmq? ( >=net-libs/zeromq-3.2.0 )
31 syslog? ( virtual/logger )"
33 CONFIG_CHECK="~NET_TEAM ~NET_TEAM_MODE_ROUNDROBIN ~NET_TEAM_MODE_ACTIVEBACKUP ~NET_TEAM_MODE_BROADCAST ~NET_TEAM_MODE_RANDOM ~NET_TEAM_MODE_LOADBALANCE"
34 ERROR_NET_TEAM="NET_TEAM is not enabled in this kernel!
35 Only >=3.3.0 kernel version support in team mode"
47 $(use_enable syslog logging) \
55 insinto /etc/dbus-1/system.d
56 doins teamd/dbus/teamd.conf
60 dodoc teamd/example_configs/*