net-misc/bird: Backporting improvements from gh #15016
Package-Manager: Portage-2.3.103, Repoman-2.3.23 Signed-off-by: Alarig Le Lay <alarig@swordarmor.fr>
This commit is contained in:
parent
ad4cfc344a
commit
325c3f980f
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue