Diff bird-1.6.6 with a bird-2.0.2

/usr/portage/net-misc/bird/bird-2.0.2.ebuild 2018-06-08 16:09:00.000000000 +0300
1
# Copyright 1999-2019 Gentoo Authors
1
# Copyright 1999-2018 Gentoo Foundation
2 2
# Distributed under the terms of the GNU General Public License v2
3 3

  
4
EAPI=7
4
EAPI=6
5 5

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

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

  
15 15
RDEPEND="client? ( sys-libs/ncurses )
16 16
	client? ( sys-libs/readline )"
......
18 18
	sys-devel/bison
19 19
	sys-devel/m4"
20 20

  
21
src_prepare() {
22
	eapply_user
23
	mkdir ipv6
24
	tar c --exclude ipv6 . | tar x -C ipv6
25
}
26

  
27 21
src_configure() {
28 22
	econf \
29
		--disable-ipv6 \
30 23
		--localstatedir="${EPREFIX}/var" \
31 24
		$(use_enable client) \
32 25
		$(use_enable debug)
33

  
34
	if use ipv6; then
35
		cd ipv6
36
		econf \
37
			--enable-ipv6 \
38
			--localstatedir="${EPREFIX}/var" \
39
			$(use_enable client) \
40
			$(use_enable debug)
41
	fi
42
}
43

  
44
src_compile() {
45
	emake
46
	if use ipv6; then
47
		cd ipv6
48
		emake
49
	fi
50 26
}
51 27

  
52 28
src_install() {
53
	if use ipv6; then
54
		if use client; then
55
			newbin ipv6/birdc birdc6
56
		fi
57
		newbin ipv6/birdcl birdcl6
58
		newsbin ipv6/bird bird6
59
		newinitd "${FILESDIR}/initd-${PN}-2" bird6
60
	fi
61 29
	if use client; then
62 30
		dobin birdc
63 31
	fi
64 32
	dobin birdcl
65 33
	dosbin bird
66
	newinitd "${FILESDIR}/initd-${PN}-2" bird
34
	newinitd "${FILESDIR}/initd-v4-${PN}-1.3.8" bird
67 35
	dodoc doc/bird.conf.example
68 36
}
Thank you!