commit:     b9fbeeb0b8417e306dc6f3ff5a7feb33f6d2dce8
Author:     Alarig Le Lay <alarig <AT> swordarmor <DOT> fr>
AuthorDate: Fri Dec  5 16:31:58 2025 +0000
Commit:     Jaco Kroon <jkroon <AT> gentoo <DOT> org>
CommitDate: Tue Dec 16 20:41:07 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=b9fbeeb0

net-misc/bird: add 2.17.3

Signed-off-by: Alarig Le Lay <alarig <AT> swordarmor.fr>
Part-of: https://github.com/gentoo/gentoo/pull/44916
Signed-off-by: Jaco Kroon <jkroon <AT> gentoo.org>

 net-misc/bird/Manifest           |  1 +
 net-misc/bird/bird-2.17.3.ebuild | 82 ++++++++++++++++++++++++++++++++++++++++
 2 files changed, 83 insertions(+)

diff --git a/net-misc/bird/Manifest b/net-misc/bird/Manifest
index 2205cc70e9a1..0382a1e0f2f3 100644
--- a/net-misc/bird/Manifest
+++ b/net-misc/bird/Manifest
@@ -1,4 +1,5 @@
 DIST bird-2.17.2.tar.gz 1499113 BLAKE2B 
d8f1ed7f701ced4e59fc161ddd7d5fda4b6bebd2897fd8f3b225b5ee1bb8a4173f8eaec6ec7497d1b7291772c2eb5b70a5a9be46a9b90386097fcaedc2277fae
 SHA512 
69cd29ca7a2681b86bd62b3a2063732c30c2b639fb8d2f856adadfa0627ff456c50d870a8a07f6d1c3f7c23099776d580b97871998f34dfe8b053f6621e37b28
+DIST bird-2.17.3.tar.gz 1504596 BLAKE2B 
bd0659ca0394288d781ea9343d68123c6208f8c95017e1b17cf7cf83210be36b1fe5f8bf3197905e8811421dc00db730395abc74f5d2ae85758cc2accc95c3a5
 SHA512 
932090ddb8d298929832629c5d571c733798d3eb1cfb0f31267010a4ef325c9dca986584c5dec6e68e1b8546d7ffc5264f40468e7d76d247f8b2e5dc59bf7b3c
 DIST bird-3.0.5.tar.gz 2703501 BLAKE2B 
415c328dc992b2b41bcc607c80db619b11d7d0e27ec80afddefd2b880c35e0125edb4fc3cd565bee73e1a780134afbb25f199de6c79c1145bd92b62dc741ae1e
 SHA512 
7c7ea050a16bd62ccdc9e956e64af64eddcc7437c3d516e1d092efd508993a854693b289db6317d999a9fd1689be66ff618021969b5560d1ef7de119ea369e5e
 DIST bird-3.1.4.tar.gz 2738002 BLAKE2B 
67291810095e03655d177f8ab9f8330d187ed19c17d44a784660fdb015caabd3d1f29e2bcf782edac2474a9553de88fe2531675ae5ddfa218aa6af39137fe102
 SHA512 
f890be2ab869c058026acfa0a39f81af5fe33ca96e9a2d3275045d2cdf8128b64748ee112173f36d3ac8fb3495e74a82f6fe511774e685f0f769077dfa3424c8
 DIST bird-3.1.5.tar.gz 2745193 BLAKE2B 
8a580d0abacd0c4fd1a1e629f9f0c45cd3ddf24b3b5de921a4f4ed4bbdc7d45724a4e1dfd5c32921811d822c5417f363c36d06dc1621aba1c7c895dfe58cba3c
 SHA512 
ec619ff4ee3f67dea0e9de9431149ffe68c430d4af38ba1c43c73ae2b8d1ff74855ca8a940655a217a4aadba598b095260b77097a2f95aa4dd1aa9a6a591840c

diff --git a/net-misc/bird/bird-2.17.3.ebuild b/net-misc/bird/bird-2.17.3.ebuild
new file mode 100644
index 000000000000..b88e68d2aae5
--- /dev/null
+++ b/net-misc/bird/bird-2.17.3.ebuild
@@ -0,0 +1,82 @@
+# Copyright 2020-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+inherit autotools fcaps
+
+DESCRIPTION="A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 & IPv6"
+HOMEPAGE="https://bird.nic.cz";
+SRC_URI="https://bird.nic.cz/download/${P}.tar.gz";
+LICENSE="GPL-2"
+
+SLOT="0"
+KEYWORDS="~amd64 ~arm64 ~loong ~x86 ~x64-macos"
+IUSE="+client custom-cflags debug libssh"
+
+RDEPEND="
+       client? (
+               sys-libs/ncurses:=
+               sys-libs/readline:=
+       )
+       filecaps? (
+               acct-group/bird
+               acct-user/bird
+       )
+       libssh? ( net-libs/libssh:= )"
+BDEPEND="
+       app-alternatives/yacc
+       app-alternatives/lex
+       sys-devel/m4
+"
+
+FILECAPS=(
+       CAP_NET_ADMIN                   usr/sbin/bird
+       CAP_NET_BIND_SERVICE    usr/sbin/bird
+       CAP_NET_RAW                             usr/sbin/bird
+)
+
+src_configure() {
+       # This export makes compilation and test phases verbose
+       export VERBOSE=1
+
+       local myargs=(
+               --localstatedir="${EPREFIX}/var"
+               $(use_enable client)
+               $(use_enable debug)
+               $(use_enable libssh)
+       )
+
+       # lto must be enabled by default as bird is mono-threaded and use 
several
+       # optimisations to be fast, as it may very likely be exposed to several
+       # thounsand BGP updates per seconds
+       # Although, we make it possible to deactivate it if wanted
+       # We force the value of the whole cflags var instead of only lto 
because of
+       # upstream commit 404e8261 (configure.ac: properly evaluate 
ac_test_CFLAGS)
+       use custom-cflags && myargs+=( bird_cflags_default=no ) || \
+               myargs+=( bird_cflags_default=yes )
+
+       econf "${myargs[@]}"
+}
+
+src_install() {
+       if use client; then
+               dobin birdc
+       fi
+
+       dobin birdcl
+       dosbin bird
+
+       newinitd "${FILESDIR}/initd-${PN}-2" ${PN}
+       newconfd "${FILESDIR}/confd-${PN}-2" ${PN}
+
+       dodoc doc/bird.conf.example
+}
+
+pkg_postinst() {
+       if use filecaps; then
+               einfo "If you want to run bird as non-root, edit"
+               einfo "'${EROOT}/etc/conf.d/bird' and set BIRD_GROUP and 
BIRD_USER with"
+               einfo "the wanted username."
+       fi
+}

Reply via email to