Install this version:
emerge -a =net-misc/bird-2.18.1
# Copyright 2020-2026 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit 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 selinux"
RDEPEND="
client? (
sys-libs/ncurses:=
sys-libs/readline:=
)
filecaps? (
acct-group/bird
acct-user/bird
)
libssh? ( net-libs/libssh:= )
"
DEPEND="${RDEPEND}"
BDEPEND="
app-alternatives/yacc
app-alternatives/lex
sys-devel/m4
"
RDEPEND+=" selinux? ( sec-policy/selinux-bird )"
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}-3" ${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
}
Manage flags for this package:
euse -i <flag> -p net-misc/bird |
euse -E <flag> -p net-misc/bird |
euse -D <flag> -p net-misc/bird
client? ( sys-libs/ncurses:= sys-libs/readline:= ) filecaps? ( acct-group/bird acct-user/bird ) libssh? ( net-libs/libssh:= ) selinux? ( sec-policy/selinux-bird )
client? ( sys-libs/ncurses:= sys-libs/readline:= ) filecaps? ( acct-group/bird acct-user/bird ) libssh? ( net-libs/libssh:= ) selinux? ( sec-policy/selinux-bird )
app-alternatives/yacc app-alternatives/lex sys-devel/m4
| Type | File | Size | Source URLs |
|---|---|---|---|
| DIST | bird-2.18.1.tar.gz | 1510621 bytes | https://bird.nic.cz/download/bird-2.18.1.tar.gz |