SwordArMor-gentoo-overlay/net-misc/bird/bird-2.0.4.ebuild

37 lines
764 B
Bash
Raw Normal View History

2019-03-04 10:03:27 +01:00
# Copyright 1999-2019 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"
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
2019-03-05 11:45:47 +01:00
newinitd "${FILESDIR}/initd-${PN}-2" bird
2019-03-04 10:03:27 +01:00
dodoc doc/bird.conf.example
}