Diff bird-2.0.7 with a bird-2.0.10

/usr/portage/net-misc/bird/bird-2.0.10.ebuild 2023-10-09 14:52:34.632368480 +0300
1
# Copyright 1999-2021 Gentoo Authors
1
# Copyright 2020-2023 Gentoo Authors
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=8
5

  
6
inherit autotools fcaps
5 7

  
6 8
DESCRIPTION="A routing daemon implementing OSPF, RIPv2 & BGP for IPv4 & IPv6"
7
HOMEPAGE="http://bird.network.cz"
9
HOMEPAGE="https://bird.network.cz"
8 10
SRC_URI="ftp://bird.network.cz/pub/${PN}/${P}.tar.gz"
9 11
LICENSE="GPL-2"
10 12

  
11 13
SLOT="0"
12 14
KEYWORDS="amd64 ~arm64 ~x86 ~x64-macos"
13
IUSE="+client debug"
15
IUSE="+client debug libssh"
14 16

  
15
RDEPEND="client? ( sys-libs/ncurses )
16
	client? ( sys-libs/readline )"
17
DEPEND="sys-devel/flex
17
RDEPEND="
18
	client? (
19
		sys-libs/ncurses:=
20
		sys-libs/readline:=
21
	)
22
	filecaps? (
23
		acct-group/bird
24
		acct-user/bird
25
	)
26
	libssh? ( net-libs/libssh:= )"
27
BDEPEND="
18 28
	sys-devel/bison
19
	sys-devel/m4"
29
	sys-devel/flex
30
	sys-devel/m4
31
"
32

  
33
FILECAPS=(
34
	CAP_NET_ADMIN			usr/sbin/bird
35
	CAP_NET_BIND_SERVICE	usr/sbin/bird
36
	CAP_NET_RAW				usr/sbin/bird
37
)
20 38

  
21 39
PATCHES=(
22
	"${FILESDIR}/${P}-gcc10.patch"
40
	"${FILESDIR}/${PN}-2.0.9-musl-tests.patch"
23 41
)
24 42

  
43
src_prepare() {
44
	default
45
	eautoreconf
46
}
47

  
25 48
src_configure() {
26 49
	econf \
27 50
		--localstatedir="${EPREFIX}/var" \
28 51
		$(use_enable client) \
29
		$(use_enable debug)
52
		$(use_enable debug) \
53
		$(use_enable libssh)
30 54
}
31 55

  
32 56
src_install() {
33 57
	if use client; then
34 58
		dobin birdc
35 59
	fi
60

  
36 61
	dobin birdcl
37 62
	dosbin bird
38
	newinitd "${FILESDIR}/initd-${PN}-2" bird
63

  
64
	newinitd "${FILESDIR}/initd-${PN}-2" ${PN}
65
	newconfd "${FILESDIR}/confd-${PN}-2" ${PN}
66

  
39 67
	dodoc doc/bird.conf.example
40 68
}
69

  
70
pkg_postinst() {
71
	use filecaps && \
72
		einfo "If you want to run bird as non-root, edit"
73
		einfo "'${EROOT}/etc/conf.d/bird' and set BIRD_GROUP and BIRD_USER with"
74
		einfo "the wanted username."
75
}
Thank you!