summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlarig Le Lay <alarig@swordarmor.fr>2021-03-30 11:40:49 +0200
committerSam James <sam@gentoo.org>2021-04-09 22:01:56 +0000
commit13229763ef3e9b2ebfeed2fefda7c2c7c403bc02 (patch)
treebf925a48e3dc536e5353fe5a8d6b1f7e3d7b217a /net-misc/bird/bird-2.0.8.ebuild
parentacct-user/bird: New user for bird (diff)
downloadgentoo-13229763ef3e9b2ebfeed2fefda7c2c7c403bc02.tar.gz
gentoo-13229763ef3e9b2ebfeed2fefda7c2c7c403bc02.tar.bz2
gentoo-13229763ef3e9b2ebfeed2fefda7c2c7c403bc02.zip
net-misc/bird: New upstream version 2.0.8
Closes: https://bugs.gentoo.org/779328 Package-Manager: Portage-3.0.17, Repoman-3.0.2 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr> Closes: https://github.com/gentoo/gentoo/pull/20196 Signed-off-by: Sam James <sam@gentoo.org>
Diffstat (limited to 'net-misc/bird/bird-2.0.8.ebuild')
-rw-r--r--net-misc/bird/bird-2.0.8.ebuild61
1 files changed, 61 insertions, 0 deletions
diff --git a/net-misc/bird/bird-2.0.8.ebuild b/net-misc/bird/bird-2.0.8.ebuild
new file mode 100644
index 00000000000..5b842e0b42e
--- /dev/null
+++ b/net-misc/bird/bird-2.0.8.ebuild
@@ -0,0 +1,61 @@
+# Copyright 2020-2021 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=7
+
+inherit 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 ~x86 ~x64-macos"
+IUSE="+client debug libssh"
+
+RDEPEND="
+ client? ( sys-libs/ncurses:= )
+ client? ( 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_configure() {
+ econf \
+ --localstatedir="${EPREFIX}/var" \
+ $(use_enable client) \
+ $(use_enable debug) \
+ $(use_enable libssh)
+}
+
+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."
+}