commit:     522f1b51617cf24ad741bcc05181bed083ad5901
Author:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
AuthorDate: Sat Sep 14 12:24:47 2024 +0000
Commit:     Arthur Zamarin <arthurzam <AT> gentoo <DOT> org>
CommitDate: Sat Sep 14 12:24:47 2024 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=522f1b51

net-misc/libteam: add systemd service file

Closes: https://bugs.gentoo.org/637462
Signed-off-by: Arthur Zamarin <arthurzam <AT> gentoo.org>

 ...{libteam-1.32.ebuild => libteam-1.32-r1.ebuild} | 22 +++++++++++++---------
 net-misc/libteam/libteam-9999.ebuild               | 22 +++++++++++++---------
 2 files changed, 26 insertions(+), 18 deletions(-)

diff --git a/net-misc/libteam/libteam-1.32.ebuild 
b/net-misc/libteam/libteam-1.32-r1.ebuild
similarity index 81%
rename from net-misc/libteam/libteam-1.32.ebuild
rename to net-misc/libteam/libteam-1.32-r1.ebuild
index 23c3186d0a44..bd9779d7355e 100644
--- a/net-misc/libteam/libteam-1.32.ebuild
+++ b/net-misc/libteam/libteam-1.32-r1.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools linux-info
+inherit autotools linux-info systemd
 
 if [[ ${PV} == *9999 ]] ; then
        EGIT_REPO_URI="https://github.com/jpirko/${PN}.git";
@@ -20,15 +20,16 @@ LICENSE="LGPL-2.1+"
 SLOT="0"
 IUSE="dbus debug examples static-libs +syslog zmq"
 
-DEPEND=">=dev-libs/jansson-2.4:=
+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 )"
+       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!
@@ -40,11 +41,13 @@ src_prepare() {
 }
 
 src_configure() {
-       econf \
-               $(use_enable debug) \
-               $(use_enable syslog logging) \
-               $(use_enable dbus) \
+       local myeconfargs=(
+               $(use_enable debug)
+               $(use_enable syslog logging)
+               $(use_enable dbus)
                $(use_enable zmq)
+       )
+       econf "${myeconfargs[@]}"
 }
 
 src_install() {
@@ -54,6 +57,7 @@ src_install() {
 
        insinto /etc/dbus-1/system.d
        doins teamd/dbus/teamd.conf
+       systemd_dounit teamd/redhat/systemd/teamd@.service
 
        if use examples; then
                docinto examples

diff --git a/net-misc/libteam/libteam-9999.ebuild 
b/net-misc/libteam/libteam-9999.ebuild
index 23c3186d0a44..bd9779d7355e 100644
--- a/net-misc/libteam/libteam-9999.ebuild
+++ b/net-misc/libteam/libteam-9999.ebuild
@@ -3,7 +3,7 @@
 
 EAPI=8
 
-inherit autotools linux-info
+inherit autotools linux-info systemd
 
 if [[ ${PV} == *9999 ]] ; then
        EGIT_REPO_URI="https://github.com/jpirko/${PN}.git";
@@ -20,15 +20,16 @@ LICENSE="LGPL-2.1+"
 SLOT="0"
 IUSE="dbus debug examples static-libs +syslog zmq"
 
-DEPEND=">=dev-libs/jansson-2.4:=
+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 )"
+       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!
@@ -40,11 +41,13 @@ src_prepare() {
 }
 
 src_configure() {
-       econf \
-               $(use_enable debug) \
-               $(use_enable syslog logging) \
-               $(use_enable dbus) \
+       local myeconfargs=(
+               $(use_enable debug)
+               $(use_enable syslog logging)
+               $(use_enable dbus)
                $(use_enable zmq)
+       )
+       econf "${myeconfargs[@]}"
 }
 
 src_install() {
@@ -54,6 +57,7 @@ src_install() {
 
        insinto /etc/dbus-1/system.d
        doins teamd/dbus/teamd.conf
+       systemd_dounit teamd/redhat/systemd/teamd@.service
 
        if use examples; then
                docinto examples

Reply via email to