From e2f647cdcf8d07efc24ade7f4814569cc819d88e Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Sat, 10 Apr 2021 11:09:56 +0200 Subject: [PATCH] net-misc/bird: rsync from ::gentoo Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Alarig Le Lay --- net-misc/bird/bird-2.0.7.ebuild | 40 ++++++++++++++++++++++ net-misc/bird/bird-2.0.8.ebuild | 6 ++-- net-misc/bird/files/bird-2.0.7-gcc10.patch | 12 +++++++ net-misc/bird/files/initd-bird-2 | 2 +- net-misc/bird/metadata.xml | 8 +++++ 5 files changed, 65 insertions(+), 3 deletions(-) create mode 100644 net-misc/bird/bird-2.0.7.ebuild create mode 100644 net-misc/bird/files/bird-2.0.7-gcc10.patch mode change 100755 => 100644 net-misc/bird/files/initd-bird-2 diff --git a/net-misc/bird/bird-2.0.7.ebuild b/net-misc/bird/bird-2.0.7.ebuild new file mode 100644 index 0000000..ac76083 --- /dev/null +++ b/net-misc/bird/bird-2.0.7.ebuild @@ -0,0 +1,40 @@ +# Copyright 1999-2021 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +DESCRIPTION="A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 & IPv6" +HOMEPAGE="http://bird.network.cz" +SRC_URI="ftp://bird.network.cz/pub/${PN}/${P}.tar.gz" +LICENSE="GPL-2" + +SLOT="0" +KEYWORDS="~amd64 ~arm64 ~x86 ~x64-macos" +IUSE="+client debug" + +RDEPEND="client? ( sys-libs/ncurses ) + client? ( sys-libs/readline )" +DEPEND="sys-devel/flex + sys-devel/bison + sys-devel/m4" + +PATCHES=( + "${FILESDIR}/${P}-gcc10.patch" +) + +src_configure() { + econf \ + --localstatedir="${EPREFIX}/var" \ + $(use_enable client) \ + $(use_enable debug) +} + +src_install() { + if use client; then + dobin birdc + fi + dobin birdcl + dosbin bird + newinitd "${FILESDIR}/initd-${PN}-2" bird + dodoc doc/bird.conf.example +} diff --git a/net-misc/bird/bird-2.0.8.ebuild b/net-misc/bird/bird-2.0.8.ebuild index 951b34a..5b842e0 100644 --- a/net-misc/bird/bird-2.0.8.ebuild +++ b/net-misc/bird/bird-2.0.8.ebuild @@ -22,9 +22,11 @@ RDEPEND=" acct-user/bird ) libssh? ( net-libs/libssh:= )" -BDEPEND="sys-devel/flex +BDEPEND=" sys-devel/bison - sys-devel/m4" + sys-devel/flex + sys-devel/m4 +" FILECAPS=( CAP_NET_ADMIN usr/sbin/bird diff --git a/net-misc/bird/files/bird-2.0.7-gcc10.patch b/net-misc/bird/files/bird-2.0.7-gcc10.patch new file mode 100644 index 0000000..5ba3fda --- /dev/null +++ b/net-misc/bird/files/bird-2.0.7-gcc10.patch @@ -0,0 +1,12 @@ +diff -ruN bird-2.0.7.orig/nest/route.h bird-2.0.7/nest/route.h +--- bird-2.0.7.orig/nest/route.h 2019-10-16 13:45:52.000000000 +0300 ++++ bird-2.0.7/nest/route.h 2020-11-01 02:59:41.199775491 +0200 +@@ -458,7 +458,7 @@ + protocol-specific metric is availabe */ + + +-const char * rta_dest_names[RTD_MAX]; ++extern const char * rta_dest_names[RTD_MAX]; + + static inline const char *rta_dest_name(uint n) + { return (n < RTD_MAX) ? rta_dest_names[n] : "???"; } diff --git a/net-misc/bird/files/initd-bird-2 b/net-misc/bird/files/initd-bird-2 old mode 100755 new mode 100644 index a55004f..3b759df --- a/net-misc/bird/files/initd-bird-2 +++ b/net-misc/bird/files/initd-bird-2 @@ -1,5 +1,5 @@ #!/sbin/openrc-run -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Copyright 2019 Alarig Le Lay # Distributed under the terms of the GNU General Public License v2 diff --git a/net-misc/bird/metadata.xml b/net-misc/bird/metadata.xml index f5abf70..3d13261 100644 --- a/net-misc/bird/metadata.xml +++ b/net-misc/bird/metadata.xml @@ -5,6 +5,14 @@ chainsaw@gentoo.org Tony Vroon + + proxy-maint@gentoo.org + Proxy Maintainers + + + Alarig Le Lay + alarig@swordarmor.fr + Build the ncurses/readline full featured CLI