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"
|
IUSE="+client debug libssh"
|
||||||
|
|
||||||
RDEPEND="
|
RDEPEND="
|
||||||
client? ( sys-libs/ncurses )
|
client? ( sys-libs/ncurses:= )
|
||||||
client? ( sys-libs/readline )
|
client? ( sys-libs/readline:= )
|
||||||
filecaps? (
|
filecaps? (
|
||||||
acct-group/bird
|
acct-group/bird
|
||||||
acct-user/bird
|
acct-user/bird
|
||||||
)
|
)
|
||||||
libssh? ( net-libs/libssh )
|
libssh? ( net-libs/libssh:= )"
|
||||||
"
|
BDEPEND="sys-devel/flex
|
||||||
DEPEND="sys-devel/flex
|
|
||||||
sys-devel/bison
|
sys-devel/bison
|
||||||
sys-devel/m4"
|
sys-devel/m4"
|
||||||
|
|
||||||
|
@ -32,6 +31,12 @@ PATCHES=(
|
||||||
"${FILESDIR}/${P}-attrs.c.patch"
|
"${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() {
|
src_configure() {
|
||||||
econf \
|
econf \
|
||||||
--localstatedir="${EPREFIX}/var" \
|
--localstatedir="${EPREFIX}/var" \
|
||||||
|
@ -51,12 +56,6 @@ src_install() {
|
||||||
dodoc doc/bird.conf.example
|
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() {
|
pkg_postinst() {
|
||||||
use filecaps && \
|
use filecaps && \
|
||||||
einfo "If you want to run bird as non-root, edit"
|
einfo "If you want to run bird as non-root, edit"
|
||||||
|
|
Loading…
Reference in a new issue