net-misc/bird: add 3.0_alpha1
This commit is contained in:
parent
8baeec3d21
commit
c09bc2c541
|
@ -2,3 +2,4 @@ DIST bird-1.6.8.tar.gz 1042222 BLAKE2B 65974c936a711dfa14d43817a4d23420ebbed317d
|
||||||
DIST bird-2.0.10.tar.gz 1276546 BLAKE2B 21e1dde7d38d836c761eb13067b6aacdfc66211ca75f4ae72948f2c3a9519ac45af410f764c638e9a7314c51873675621feabc730e0604a42c00f054b0db1017 SHA512 607f9c96bbf55b7622a8c49126ad568ce9a220520801a13e89be63eee65a76c575a8095485e5bbd867d1306fed87c8394a82fe88d76307eaa40ee5902842d158
|
DIST bird-2.0.10.tar.gz 1276546 BLAKE2B 21e1dde7d38d836c761eb13067b6aacdfc66211ca75f4ae72948f2c3a9519ac45af410f764c638e9a7314c51873675621feabc730e0604a42c00f054b0db1017 SHA512 607f9c96bbf55b7622a8c49126ad568ce9a220520801a13e89be63eee65a76c575a8095485e5bbd867d1306fed87c8394a82fe88d76307eaa40ee5902842d158
|
||||||
DIST bird-2.0.11.tar.gz 1301502 BLAKE2B 0761bd50b3b0338ecf2a6325f61f90db9f92324ed814de2ec6b360c6f5a7e12d6ae4ae9b73a11ddede0e6c8fd1d15bea1b62076c38c937ae281f10a8bc2d1cbf SHA512 aaab11b4faf7d0c0afc3c4e3480f24ab6e0037b209aee969192eea57bef698073da5fa9155ef43d999ed91cbe3cd87acb95aa08fa03f2525c5c7653a0589dcf6
|
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.12.tar.gz 1307984 BLAKE2B ca00574bb8e508255afb90e0d65f4e1763880699cff9877731d072efc48944b9f9ac77b35bb7ffd7b780e8e8b1c2eacdc38ee273353817c53723e7972fb5f0d6 SHA512 b5e1235210e500511955c009456710dd12d6ea747825806a6d35a9de5f2f984d9a45fa541d45dd5e353f87f4d61bf1d4612cb6058769e905e4ef6b414ab4212f
|
||||||
|
DIST bird-3.0alpha1.tar.gz 2415234 BLAKE2B c0a035500c4b5e9abd426c8f6835c9c1cb2be0f908803a17b7d6995de41d704c5667bf4e5037bcc19e166629aabe8a411f899d7df719564af4cf93fda9c6f362 SHA512 e41fd923a7e29ba16d70aaf4a5fe70913abc65d84b39bffe1a24fbb70e407ce9eac1b8189c3aecd5b88928dfc7ae62d6a2685dd8aa7de808f73edc918d604cc1
|
||||||
|
|
88
net-misc/bird/bird-3.0_alpha1.ebuild
Normal file
88
net-misc/bird/bird-3.0_alpha1.ebuild
Normal file
|
@ -0,0 +1,88 @@
|
||||||
|
# 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"
|
||||||
|
MY_PV="${PV/_/}"
|
||||||
|
SRC_URI="https://bird.network.cz/download/3.0pre/bird-${MY_PV}.tar.gz"
|
||||||
|
LICENSE="GPL-2"
|
||||||
|
|
||||||
|
SLOT="0"
|
||||||
|
KEYWORDS=""
|
||||||
|
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
|
||||||
|
)
|
||||||
|
|
||||||
|
S="${WORKDIR}/${PN}-${MY_PV}"
|
||||||
|
|
||||||
|
src_prepare() {
|
||||||
|
default
|
||||||
|
eautoreconf
|
||||||
|
}
|
||||||
|
|
||||||
|
src_configure() {
|
||||||
|
# This export makes compilation and test phases verbose
|
||||||
|
export VERBOSE=1
|
||||||
|
|
||||||
|
# lto must be enabled by default as bird is mono-threaded and use several
|
||||||
|
# optimisations to be fast, at it may very likely be exposed to several
|
||||||
|
# thounsand BGP updates per seconds
|
||||||
|
# Although, we make it possible to desactivate it if wanted
|
||||||
|
if use custom-cflags; then
|
||||||
|
export bird_cv_c_lto=no
|
||||||
|
fi
|
||||||
|
|
||||||
|
local myargs=(
|
||||||
|
--localstatedir="${EPREFIX}/var"
|
||||||
|
$(use_enable client)
|
||||||
|
$(use_enable debug)
|
||||||
|
$(use_enable libssh)
|
||||||
|
)
|
||||||
|
|
||||||
|
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