From 2263c70ecf226a288fa50ae080cb95fdba622367 Mon Sep 17 00:00:00 2001 From: J Farkas Date: Sun, 19 Sep 2021 16:45:37 +0000 Subject: [PATCH] New package: libteam 1.31.git20210222 --- common/shlibs | 2 ++ srcpkgs/libteam/files/teamd.conf | 14 +++++++++++ srcpkgs/libteam/files/teamd/run | 4 ++++ srcpkgs/libteam/template | 41 ++++++++++++++++++++++++++++++++ 4 files changed, 61 insertions(+) create mode 100644 srcpkgs/libteam/files/teamd.conf create mode 100644 srcpkgs/libteam/files/teamd/run create mode 100644 srcpkgs/libteam/template diff --git a/common/shlibs b/common/shlibs index 840fbc0b9a9f..da13724f3b59 100644 --- a/common/shlibs +++ b/common/shlibs @@ -4023,3 +4023,5 @@ libmt32emu.so.2 libmt32emu-2.5.1_1 libqrtr-glib.so.0 libqrtr-glib-1.0.0_1 libstemmer.so.2 libstemmer-2.1.0_1 libdecor-0.so.0 libdecor-0.1.0_1 +libteam.so.5 libteam-1.31.git20210222_0 +libteamdctl.so.0 libteam-1.31.git20210222_0 diff --git a/srcpkgs/libteam/files/teamd.conf b/srcpkgs/libteam/files/teamd.conf new file mode 100644 index 000000000000..fc799461ca6f --- /dev/null +++ b/srcpkgs/libteam/files/teamd.conf @@ -0,0 +1,14 @@ +{ + "device": "team0", + "ports": { + "enp0s0": { + "link_watch": { + "name": "ethtool" + } + } + }, + "runner": { + "name": "roundrobin" + } +} + diff --git a/srcpkgs/libteam/files/teamd/run b/srcpkgs/libteam/files/teamd/run new file mode 100644 index 000000000000..5e413d91aaa8 --- /dev/null +++ b/srcpkgs/libteam/files/teamd/run @@ -0,0 +1,4 @@ +#!/bin/sh +exec 2>&1 +[ -r conf ] && . ./conf +exec teamd ${OPTS} -f ${CONF_FILE:-/etc/teamd.conf} diff --git a/srcpkgs/libteam/template b/srcpkgs/libteam/template new file mode 100644 index 000000000000..02a466ccf1fe --- /dev/null +++ b/srcpkgs/libteam/template @@ -0,0 +1,41 @@ +# Template file for 'libteam' +pkgname=libteam +version=1.31.git20210222 +revision=1 +archs="~*-musl" # always-enabled tipc needs non-musl sys/queue.h +_githash=69a7494bb77dc10bb27076add07b380dbd778592 +wrksrc=libteam-${_githash} +build_style=gnu-configure +configure_args="--with-user=_teamd --with-group=_teamd" +conf_files="/etc/teamd.conf" +hostmakedepends="automake pkg-config libtool" +makedepends="glib-devel libnl3-devel libdaemon-devel jansson-devel dbus-devel libcap-devel" +short_desc="Ethernet teaming/bonding/aggregation service" +maintainer="J Farkas " +license="LGPL-2.1-or-later" +homepage="http://libteam.org/" +distfiles="https://github.com/jpirko/libteam/archive/${_githash}.tar.gz" +checksum=600005b5233d21914e0e93c8f548b95219ff37eda8e768b69c4e9be32347bf5b + +system_groups="_teamd" +system_accounts="_teamd" +_teamd_descr="teamd runtime user" +_teamd_pgroup="_teamd" + +pre_configure() { + ./autogen.sh +} + +do_install() { + make ${makejobs} DESTDIR=${DESTDIR} install + vinstall teamd/dbus/teamd.conf 644 etc/dbus-1/system.d + + vmkdir usr/share/examples/${pkgname} + for f in teamd/example_configs/*conf; do + vsconf "${f}" + done + + vconf ${FILESDIR}/teamd.conf + + vsv teamd +}