commit: 9978484bb481dba378da39d2a3b7336994e7728b Author: Alarig Le Lay <alarig <AT> swordarmor <DOT> fr> AuthorDate: Fri Dec 5 14:19:34 2025 +0000 Commit: Jaco Kroon <jkroon <AT> gentoo <DOT> org> CommitDate: Tue Dec 16 20:41:03 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=9978484b
net-misc/bird: add 3.1.5 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-3.1.5.ebuild | 79 +++++++++++++++++++++++++++++++++++++++++ 2 files changed, 80 insertions(+) diff --git a/net-misc/bird/Manifest b/net-misc/bird/Manifest index ac1b60c12715..2205cc70e9a1 100644 --- a/net-misc/bird/Manifest +++ b/net-misc/bird/Manifest @@ -1,3 +1,4 @@ DIST bird-2.17.2.tar.gz 1499113 BLAKE2B d8f1ed7f701ced4e59fc161ddd7d5fda4b6bebd2897fd8f3b225b5ee1bb8a4173f8eaec6ec7497d1b7291772c2eb5b70a5a9be46a9b90386097fcaedc2277fae SHA512 69cd29ca7a2681b86bd62b3a2063732c30c2b639fb8d2f856adadfa0627ff456c50d870a8a07f6d1c3f7c23099776d580b97871998f34dfe8b053f6621e37b28 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-3.1.5.ebuild b/net-misc/bird/bird-3.1.5.ebuild new file mode 100644 index 000000000000..62414fc1c49d --- /dev/null +++ b/net-misc/bird/bird-3.1.5.ebuild @@ -0,0 +1,79 @@ +# 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 ~ppc64 ~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 + 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() { + use filecaps && \ + 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." +}
