SwordArMor-gentoo-overlay/net-misc/bird/bird-2.0.7-r1.ebuild

46 lines
913 B
Bash
Raw Normal View History

# Copyright 2020 Gentoo Authors
2019-10-22 12:49:22 +02:00
# Distributed under the terms of the GNU General Public License v2
EAPI=7
inherit eutils
2019-10-22 12:49:22 +02:00
DESCRIPTION="A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 & IPv6"
HOMEPAGE="https://bird.network.cz"
2019-10-22 12:49:22 +02:00
SRC_URI="ftp://bird.network.cz/pub/${PN}/${P}.tar.gz"
LICENSE="GPL-2"
SLOT="0"
KEYWORDS="~amd64 ~arm64 ~x86 ~x64-macos"
2019-12-31 14:11:05 +01:00
IUSE="+client debug libssh"
2019-10-22 12:49:22 +02:00
RDEPEND="client? ( sys-libs/ncurses )
2019-12-31 14:11:05 +01:00
client? ( sys-libs/readline )
libssh? ( net-libs/libssh )"
2019-10-22 12:49:22 +02:00
DEPEND="sys-devel/flex
sys-devel/bison
sys-devel/m4"
src_configure() {
econf \
--localstatedir="${EPREFIX}/var" \
$(use_enable client) \
2019-12-31 14:11:05 +01:00
$(use_enable debug) \
$(use_enable libssh)
2019-10-22 12:49:22 +02:00
}
src_prepare() {
2020-01-12 09:46:02 +01:00
eapply "${FILESDIR}/ipv6-rpki-${PV}.patch"
eapply_user
}
2019-10-22 12:49:22 +02:00
src_install() {
if use client; then
dobin birdc
fi
dobin birdcl
dosbin bird
newinitd "${FILESDIR}/initd-${PN}-2" bird
dodoc doc/bird.conf.example
}