summaryrefslogtreecommitdiff
path: root/net-misc/libteam
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/libteam')
-rw-r--r--net-misc/libteam/Manifest2
-rw-r--r--net-misc/libteam/libteam-1.23.ebuild62
2 files changed, 64 insertions, 0 deletions
diff --git a/net-misc/libteam/Manifest b/net-misc/libteam/Manifest
index 7089c559cf84..64feef3601e7 100644
--- a/net-misc/libteam/Manifest
+++ b/net-misc/libteam/Manifest
@@ -1,4 +1,6 @@
+DIST libteam-1.23.tar.gz 173445 BLAKE2B 143e43cb092ac9aab8b152101c4c91c995436a6b02cf85fb710fa095a0bbd46fe70666149cfa9d86135b5496dd0287296e55d68f511aa5965c1d4f22f61ded57 SHA512 f78ceca4606b93e75fafdd97aa3cc44153fc42d31209f216c3da9c71abf38a2e4a690c71b8631ae09e02d7285d6bbd8292983fdc69eb921b0537a75558bc89f5
DIST libteam-1.31.tar.gz 176331 BLAKE2B 77aae059b37a018e5503642138aa469f0769d305ec2043642fb1d84ff1d05f6eb90083946ca113cf3f9c21a09a17b3fbda327b714eb96743a10e99b89d5d5c83 SHA512 1382cc3b0a2d0211f33e506e8a6fd8a1847398fa5bba56abfc959da70bcc8417cf1dba9e26a777da5729eb237f51a66b3f9cfa33fb830ed684aa076f4c8cec9e
+EBUILD libteam-1.23.ebuild 1385 BLAKE2B b2e0d1cc1a2462590bddaf1f596ffe2ec5809b3fb0ce93cd5cf061888262d61f2774df44c2bd9f1e4aa1622f1444482ee64744b651a96261235c703be10a0e54 SHA512 5800a8bfd4f8e22bc13b3ebec6001b32893fedf2ecb83a1f4b83d7b216159b176e319ed9148ef9de4e1d75a64507dc6cea5be8da602e1be7645488a9120be579
EBUILD libteam-1.31-r1.ebuild 1385 BLAKE2B b612417a4cb5696808efa9a1875f80a36109fbd9d40b95a2391779f27561a9f26e662fdea9fe2e7ba2034e8efbb2c138abe4b2b3fd42ffc972f91284b3e39a6f SHA512 b1038ba0dd24b60cb8094da49a54f5cf5e503bd7b73d9c7999b658601a5d4f8ab4a249cd1b4dc596155b6e69dce13b69f349b86352b928b3d52129545b2f58d9
EBUILD libteam-9999.ebuild 1376 BLAKE2B 5fa7c1e920e3da20202f498aec02c06c065a02d1f7f7b728e4ac2a72b848ddf4b78502301c405e577695f5484f228bc1430e2b27ce00c710f3a0669a53e8080d SHA512 0f2bea1d19f697edc7ad1e881f19f6eb6bfb77cbaf8bd946c4b00be5f26fee2281142f0d4f8f01dcfef97fd8faa4f7ea435b15e9dd4952ea52a063ad57a8e075
MISC metadata.xml 335 BLAKE2B 481d37450ef0da0cd8a77fd8b73d67fee888f13bd984d52764c8e1694f5e128ad0dafa76c2851780ebc14a72d32a31cf0e598dee6960e9b10bfeca443dbb58ed SHA512 a6cb9893ad138246b783e91995b343d5b99d2becf776917bd413e64946373bfab7389fd958e8096061e1a8f2c52bb35ad69538bbddc6a0a9cba42ccfc1703c00
diff --git a/net-misc/libteam/libteam-1.23.ebuild b/net-misc/libteam/libteam-1.23.ebuild
new file mode 100644
index 000000000000..1b9b1ec0290c
--- /dev/null
+++ b/net-misc/libteam/libteam-1.23.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2023 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit autotools linux-info
+
+if [[ ${PV} == *9999 ]] ; then
+ EGIT_REPO_URI="https://github.com/pirko/${PN}.git"
+ inherit git-r3
+else
+ SRC_URI="https://github.com/jpirko/libteam/archive/v${PV}.tar.gz -> ${P}.tar.gz"
+ KEYWORDS="amd64 ~arm arm64 ~loong ppc ppc64 ~riscv x86"
+fi
+
+DESCRIPTION="Library and tools set for controlling team network device"
+HOMEPAGE="http://libteam.org"
+
+LICENSE="LGPL-2.1+"
+SLOT="0"
+IUSE="dbus debug examples static-libs +syslog zmq"
+
+DEPEND=">=dev-libs/jansson-2.4:=
+ dev-libs/libdaemon
+ >=dev-libs/libnl-3.2.19[utils]
+ dbus? ( sys-apps/dbus )
+ zmq? ( >=net-libs/zeromq-3.2.0 )
+ "
+
+RDEPEND="${DEPEND}
+ syslog? ( virtual/logger )"
+
+CONFIG_CHECK="~NET_TEAM ~NET_TEAM_MODE_ROUNDROBIN ~NET_TEAM_MODE_ACTIVEBACKUP ~NET_TEAM_MODE_BROADCAST ~NET_TEAM_MODE_RANDOM ~NET_TEAM_MODE_LOADBALANCE"
+ERROR_NET_TEAM="NET_TEAM is not enabled in this kernel!
+Only >=3.3.0 kernel version support in team mode"
+
+DOCS=( README )
+
+src_prepare() {
+ default
+ eautoreconf
+}
+
+src_configure() {
+ econf \
+ $(use_enable debug) \
+ $(use_enable syslog logging) \
+ $(use_enable dbus) \
+ $(use_enable zmq)
+}
+
+src_install() {
+ default
+
+ insinto /etc/dbus-1/system.d
+ doins teamd/dbus/teamd.conf
+
+ if use examples; then
+ docinto examples
+ dodoc teamd/example_configs/*
+ fi
+}