From 325c3f980f62b6f24f06a0b965dc5d6a9f136220 Mon Sep 17 00:00:00 2001 From: Alarig Le Lay Date: Sun, 30 Aug 2020 00:28:41 +0200 Subject: [PATCH] net-misc/bird: Backporting improvements from gh #15016 Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Alarig Le Lay --- net-misc/bird/bird-2.0.7-r1.ebuild | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/net-misc/bird/bird-2.0.7-r1.ebuild b/net-misc/bird/bird-2.0.7-r1.ebuild index d57ef2c..105256e 100644 --- a/net-misc/bird/bird-2.0.7-r1.ebuild +++ b/net-misc/bird/bird-2.0.7-r1.ebuild @@ -15,15 +15,14 @@ KEYWORDS="~amd64 ~arm64 ~x86 ~x64-macos" IUSE="+client debug libssh" RDEPEND=" - client? ( sys-libs/ncurses ) - client? ( sys-libs/readline ) + client? ( sys-libs/ncurses:= ) + client? ( sys-libs/readline:= ) filecaps? ( acct-group/bird acct-user/bird ) - libssh? ( net-libs/libssh ) -" -DEPEND="sys-devel/flex + libssh? ( net-libs/libssh:= )" +BDEPEND="sys-devel/flex sys-devel/bison sys-devel/m4" @@ -32,6 +31,12 @@ PATCHES=( "${FILESDIR}/${P}-attrs.c.patch" ) +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" \ @@ -51,12 +56,6 @@ src_install() { dodoc doc/bird.conf.example } -FILECAPS=( - CAP_NET_ADMIN usr/sbin/bird - CAP_NET_BIND_SERVICE usr/sbin/bird - CAP_NET_RAW usr/sbin/bird -) - pkg_postinst() { use filecaps && \ einfo "If you want to run bird as non-root, edit"