1 |
commit: 2d8c5247997c484c984ac18d2bad5a75ef47de45 |
2 |
Author: Craig Andrews <candrews <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Aug 8 21:21:16 2019 +0000 |
4 |
Commit: Craig Andrews <candrews <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Aug 8 21:22:00 2019 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=2d8c5247 |
7 |
|
8 |
net-misc/libteam: Add -9999 live version |
9 |
|
10 |
Package-Manager: Portage-2.3.71, Repoman-2.3.17 |
11 |
Signed-off-by: Craig Andrews <candrews <AT> gentoo.org> |
12 |
|
13 |
net-misc/libteam/libteam-9999.ebuild | 62 ++++++++++++++++++++++++++++++++++++ |
14 |
1 file changed, 62 insertions(+) |
15 |
|
16 |
diff --git a/net-misc/libteam/libteam-9999.ebuild b/net-misc/libteam/libteam-9999.ebuild |
17 |
new file mode 100644 |
18 |
index 00000000000..44894e0e9a6 |
19 |
--- /dev/null |
20 |
+++ b/net-misc/libteam/libteam-9999.ebuild |
21 |
@@ -0,0 +1,62 @@ |
22 |
+# Copyright 1999-2019 Gentoo Authors |
23 |
+# Distributed under the terms of the GNU General Public License v2 |
24 |
+ |
25 |
+EAPI=7 |
26 |
+ |
27 |
+inherit autotools linux-info |
28 |
+ |
29 |
+if [[ ${PV} == *9999 ]] ; then |
30 |
+ EGIT_REPO_URI="https://github.com/pirko/${PN}.git" |
31 |
+ inherit git-r3 |
32 |
+else |
33 |
+ SRC_URI="https://github.com/jpirko/libteam/archive/v${PV}.tar.gz" |
34 |
+ KEYWORDS="~amd64 ~arm ~arm64 ~ppc ~ppc64 ~x86" |
35 |
+fi |
36 |
+ |
37 |
+DESCRIPTION="Library and tools set for controlling team network device" |
38 |
+HOMEPAGE="http://libteam.org" |
39 |
+ |
40 |
+LICENSE="LGPL-2.1+" |
41 |
+SLOT="0" |
42 |
+IUSE="dbus debug examples static-libs +syslog zmq" |
43 |
+ |
44 |
+DEPEND=">=dev-libs/jansson-2.4 |
45 |
+ dev-libs/libdaemon |
46 |
+ >=dev-libs/libnl-3.2.19[utils] |
47 |
+ dbus? ( sys-apps/dbus ) |
48 |
+ zmq? ( >=net-libs/zeromq-3.2.0 ) |
49 |
+ " |
50 |
+ |
51 |
+RDEPEND="${DEPEND} |
52 |
+ syslog? ( virtual/logger )" |
53 |
+ |
54 |
+CONFIG_CHECK="~NET_TEAM ~NET_TEAM_MODE_ROUNDROBIN ~NET_TEAM_MODE_ACTIVEBACKUP ~NET_TEAM_MODE_BROADCAST ~NET_TEAM_MODE_RANDOM ~NET_TEAM_MODE_LOADBALANCE" |
55 |
+ERROR_NET_TEAM="NET_TEAM is not enabled in this kernel! |
56 |
+Only >=3.3.0 kernel version support in team mode" |
57 |
+ |
58 |
+DOCS=( README ) |
59 |
+ |
60 |
+src_prepare(){ |
61 |
+ default |
62 |
+ eautoreconf |
63 |
+} |
64 |
+ |
65 |
+src_configure() { |
66 |
+ econf \ |
67 |
+ $(use_enable debug) \ |
68 |
+ $(use_enable syslog logging) \ |
69 |
+ $(use_enable dbus) \ |
70 |
+ $(use_enable zmq) |
71 |
+} |
72 |
+ |
73 |
+src_install() { |
74 |
+ default |
75 |
+ |
76 |
+ insinto /etc/dbus-1/system.d |
77 |
+ doins teamd/dbus/teamd.conf |
78 |
+ |
79 |
+ if use examples; then |
80 |
+ docinto examples |
81 |
+ dodoc teamd/example_configs/* |
82 |
+ fi |
83 |
+} |