commit: 930560646b5af780059b1817e6afd1975be2bf21 Author: Alarig Le Lay <alarig <AT> swordarmor <DOT> fr> AuthorDate: Sun Jan 26 11:57:15 2025 +0000 Commit: Petr Vaněk <arkamar <AT> gentoo <DOT> org> CommitDate: Mon Jan 27 18:15:25 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=93056064
net-misc/bird: add 2.16.1 The LTO/CFLAGS handling has been moved from bird_cv_c_lto=no to bird_cflags_default=no because of upstream commit 404e8261 (configure.ac: properly evaluate ac_test_CFLAGS) Closes: https://bugs.gentoo.org/910330 Signed-off-by: Alarig Le Lay <alarig <AT> swordarmor.fr> Closes: https://github.com/gentoo/gentoo/pull/31875 Signed-off-by: Petr Vaněk <arkamar <AT> gentoo.org> net-misc/bird/Manifest | 1 + net-misc/bird/bird-2.16.1.ebuild | 87 ++++++++++++++++++++++++++++++++++++++++ 2 files changed, 88 insertions(+) diff --git a/net-misc/bird/Manifest b/net-misc/bird/Manifest index 3be63b711736..2711273ac973 100644 --- a/net-misc/bird/Manifest +++ b/net-misc/bird/Manifest @@ -2,3 +2,4 @@ DIST bird-2.0.10.tar.gz 1276546 BLAKE2B 21e1dde7d38d836c761eb13067b6aacdfc66211c DIST bird-2.0.11.tar.gz 1301502 BLAKE2B 0761bd50b3b0338ecf2a6325f61f90db9f92324ed814de2ec6b360c6f5a7e12d6ae4ae9b73a11ddede0e6c8fd1d15bea1b62076c38c937ae281f10a8bc2d1cbf SHA512 aaab11b4faf7d0c0afc3c4e3480f24ab6e0037b209aee969192eea57bef698073da5fa9155ef43d999ed91cbe3cd87acb95aa08fa03f2525c5c7653a0589dcf6 DIST bird-2.0.12.tar.gz 1307984 BLAKE2B ca00574bb8e508255afb90e0d65f4e1763880699cff9877731d072efc48944b9f9ac77b35bb7ffd7b780e8e8b1c2eacdc38ee273353817c53723e7972fb5f0d6 SHA512 b5e1235210e500511955c009456710dd12d6ea747825806a6d35a9de5f2f984d9a45fa541d45dd5e353f87f4d61bf1d4612cb6058769e905e4ef6b414ab4212f DIST bird-2.0.7.tar.gz 1993395 BLAKE2B ceb88d811d254e57e089ef4b4e1e4f34fd96d4622d9f5563cc8694323c060e99d6cdfccfeb5d8c885b9431dc71e96d5cc04e4344901a7c7d899f4249e7503720 SHA512 48ca63be923285dd282e80d7e2b240256953fd7ad4f6eaa5dcba2648f3f148be20198bc8c6e7e888aac1588ecb005a4f4c03e979853e76ea6f8680643a874b35 +DIST bird-2.16.1.tar.gz 1433936 BLAKE2B 80698f6e009662ec944831b869538fb3d74e405f94841cfdd372143b0b6ee6db85e8f136e607574a188e8b1794f2da8b59a9fb2629600bae4ddb1c6e5505a464 SHA512 7eccc9ada56f0f151237e7dacaea968526058dbadc36257adfc2f307876237b7267239cb5f3ee6a01832834dc81f9f54000c1550ae200b69f97da8e748f6af70 diff --git a/net-misc/bird/bird-2.16.1.ebuild b/net-misc/bird/bird-2.16.1.ebuild new file mode 100644 index 000000000000..b669d6aa4a22 --- /dev/null +++ b/net-misc/bird/bird-2.16.1.ebuild @@ -0,0 +1,87 @@ +# 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.network.cz" +SRC_URI="ftp://bird.network.cz/pub/${PN}/${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_prepare() { + default + eautoreconf +} + +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 +}
