net-misc/bird: add 3.0.0
Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
parent
0a7fc59b07
commit
0eba3e727a
|
@ -6,9 +6,10 @@ HOMEPAGE=https://bird.network.cz
|
||||||
IDEPEND=filecaps? ( sys-libs/libcap )
|
IDEPEND=filecaps? ( sys-libs/libcap )
|
||||||
INHERIT=autotools fcaps
|
INHERIT=autotools fcaps
|
||||||
IUSE=+client custom-cflags debug libssh +filecaps
|
IUSE=+client custom-cflags debug libssh +filecaps
|
||||||
|
KEYWORDS=~amd64 ~arm64 ~ppc64 ~x86 ~x64-macos
|
||||||
LICENSE=GPL-2
|
LICENSE=GPL-2
|
||||||
RDEPEND=client? ( sys-libs/ncurses:= sys-libs/readline:= ) filecaps? ( acct-group/bird acct-user/bird ) libssh? ( net-libs/libssh:= )
|
RDEPEND=client? ( sys-libs/ncurses:= sys-libs/readline:= ) filecaps? ( acct-group/bird acct-user/bird ) libssh? ( net-libs/libssh:= )
|
||||||
SLOT=0
|
SLOT=0
|
||||||
SRC_URI=https://bird.network.cz/download/3.0pre/bird-3.0alpha1.tar.gz
|
SRC_URI=ftp://bird.network.cz/pub/bird/bird-3.0.0.tar.gz
|
||||||
_eclasses_=gnuconfig ddeb9f8caff1b5f71a09c75b7534df79 toolchain-funcs fa554cc3cff825d21dfe3f24841e29cf multilib b2a329026f2e404e9e371097dda47f96 libtool 6b28392a775f807c8be5fc7ec9a605b9 autotools 7d91cc798a8afd8f4e0c6e9587296ebe fcaps 27152c9e4da035accb14a2d7879744ef
|
_eclasses_=gnuconfig ddeb9f8caff1b5f71a09c75b7534df79 toolchain-funcs fa554cc3cff825d21dfe3f24841e29cf multilib b2a329026f2e404e9e371097dda47f96 libtool 6b28392a775f807c8be5fc7ec9a605b9 autotools 7d91cc798a8afd8f4e0c6e9587296ebe fcaps 27152c9e4da035accb14a2d7879744ef
|
||||||
_md5_=9af2b3c59484a7af9d05075883b51b98
|
_md5_=32ea4b55b2814d666e1bcef5c1c73243
|
|
@ -2,3 +2,4 @@ DIST bird-1.6.8.tar.gz 1042222 BLAKE2B 65974c936a711dfa14d43817a4d23420ebbed317d
|
||||||
DIST bird-2.14.tar.gz 1396217 BLAKE2B fe16b89c7f0ff35c5126366920960e0c55f57fe343380b2c32230122cf24f9abc3eb4d6ed9f37d2176f9e9340a83dffd1e68fed276b59b86cf1bdf5b8bd3c169 SHA512 f6b0672df048cfb78d289030675799e6d19db49d8cc458778d36a4e7c10a15be161dd101d7b03cf017f0fa948206d6504b59139515cbb80acc5bb1fdaa4358b9
|
DIST bird-2.14.tar.gz 1396217 BLAKE2B fe16b89c7f0ff35c5126366920960e0c55f57fe343380b2c32230122cf24f9abc3eb4d6ed9f37d2176f9e9340a83dffd1e68fed276b59b86cf1bdf5b8bd3c169 SHA512 f6b0672df048cfb78d289030675799e6d19db49d8cc458778d36a4e7c10a15be161dd101d7b03cf017f0fa948206d6504b59139515cbb80acc5bb1fdaa4358b9
|
||||||
DIST bird-2.15.1.tar.gz 1409653 BLAKE2B c3fe95ae2b8a3dca036278c8014f3ce2d1fd224c65c10abcc77b2cc1dbdfaa1b5766e8643b873a12ac33f00cd5e866aa7ce853ead78150ec4314b53457ad554a SHA512 75828ae7c3e574097ba6d7e38dd275ada3b078e215454478f2ed9898f7f8447b149e9ba4f47de05a2b8f4e4959b5ee8d46bee0ef58c79b9cb908a44e12df2842
|
DIST bird-2.15.1.tar.gz 1409653 BLAKE2B c3fe95ae2b8a3dca036278c8014f3ce2d1fd224c65c10abcc77b2cc1dbdfaa1b5766e8643b873a12ac33f00cd5e866aa7ce853ead78150ec4314b53457ad554a SHA512 75828ae7c3e574097ba6d7e38dd275ada3b078e215454478f2ed9898f7f8447b149e9ba4f47de05a2b8f4e4959b5ee8d46bee0ef58c79b9cb908a44e12df2842
|
||||||
DIST bird-2.16.tar.gz 1434760 BLAKE2B a76dec4b3babd9739083c29530741e28e61b0cd0eeba726df06070c78f5e61f683aa0039b0952c0384fb7133c09e1788b6daf905a7f3d25e3441df49ba0a6ead SHA512 c230d36bcfad9731e6951a07ef81fdd53dbe65ab3b4883b0ef51cf691f5b67df5b2038af9781e443c436b932b78494e779cab6bddaeb136b8befe84833d184ff
|
DIST bird-2.16.tar.gz 1434760 BLAKE2B a76dec4b3babd9739083c29530741e28e61b0cd0eeba726df06070c78f5e61f683aa0039b0952c0384fb7133c09e1788b6daf905a7f3d25e3441df49ba0a6ead SHA512 c230d36bcfad9731e6951a07ef81fdd53dbe65ab3b4883b0ef51cf691f5b67df5b2038af9781e443c436b932b78494e779cab6bddaeb136b8befe84833d184ff
|
||||||
|
DIST bird-3.0.0.tar.gz 2641569 BLAKE2B d537fc1188c174af2c2126a9c7e0220108489145258762ef3d7f8ed69cffd30d70bc233a78d23e7cc8b6eedbb98d1c3dfa1a320a6fe54be4e7c7484bf52b9370 SHA512 b96238dd9b1c74a9d480b7907ffe1ffbbebc7fc4c1cbc6ded61ddc31b54ab82015213d842b00f483e820bb1b8d1bc2a872892f0252f8797fe32a483edd8a1d1b
|
||||||
|
|
84
net-misc/bird/bird-3.0.0.ebuild
Normal file
84
net-misc/bird/bird-3.0.0.ebuild
Normal file
|
@ -0,0 +1,84 @@
|
||||||
|
# Copyright 2020-2023 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 ~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="
|
||||||
|
sys-devel/bison
|
||||||
|
sys-devel/flex
|
||||||
|
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"
|
||||||
|
--with-protocols="${protocols}"
|
||||||
|
$(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_cv_c_lto=no )
|
||||||
|
|
||||||
|
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."
|
||||||
|
}
|
Loading…
Reference in a new issue