Diff mtr-0.87 with a mtr-0.92-r1

/usr/portage/net-analyzer/mtr/mtr-0.92-r1.ebuild 2020-03-26 18:41:00.000000000 +0300
10 10

  
11 11
LICENSE="GPL-2"
12 12
SLOT="0"
13
KEYWORDS="~alpha amd64 arm hppa ~ia64 ~mips ppc ppc64 ~s390 sparc x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
14
IUSE="gtk ipv6"
13
KEYWORDS="~alpha ~amd64 ~arm ~hppa ~ia64 ~mips ~ppc ~ppc64 ~s390 ~sparc ~x86 ~amd64-linux ~x86-linux ~ppc-macos ~x64-macos ~x86-macos"
14
IUSE="gtk ipv6 ncurses"
15 15

  
16 16
RDEPEND="
17
	sys-libs/ncurses:0=
18 17
	gtk? (
19 18
		dev-libs/glib:2
20 19
		x11-libs/gtk+:2
21 20
	)
21
	ncurses? ( sys-libs/ncurses:0= )
22 22
"
23 23
DEPEND="
24 24
	${RDEPEND}
......
27 27
"
28 28

  
29 29
DOCS=( AUTHORS FORMATS NEWS README SECURITY TODO )
30
FILECAPS=( cap_net_raw /usr/sbin/mtr )
30
FILECAPS=( cap_net_raw usr/sbin/mtr-packet )
31 31
PATCHES=(
32
	"${FILESDIR}"/${PN}-0.80-impl-dec.patch
33
	"${FILESDIR}"/${PN}-0.87-ipv6.patch
34
	"${FILESDIR}"/${PN}-0.87-tinfo.patch
32
	"${FILESDIR}"/${PN}-0.88-tinfo.patch
35 33
)
36 34

  
37 35
src_prepare() {
38 36
	default
37

  
39 38
	eautoreconf
40 39
}
41 40

  
......
43 42
	# In the source's configure script -lresolv is commented out. Apparently it
44 43
	# is needed for 64bit macos still.
45 44
	[[ ${CHOST} == *-darwin* ]] && append-libs -lresolv
46

  
47 45
	econf \
48 46
		$(use_enable ipv6) \
49 47
		$(use_with gtk) \
50
		--disable-gtktest
48
		$(use_with ncurses)
49
}
50

  
51
src_test() {
52
	[[ "$UID" = 0 ]] && default
53
}
54

  
55
pkg_postinst() {
56
	fcaps_pkg_postinst
57

  
58
	if use prefix && [[ ${CHOST} == *-darwin* ]] ; then
59
		ewarn "mtr needs root privileges to run.  To grant them:"
60
		ewarn " % sudo chown root ${EPREFIX}/usr/sbin/mtr"
61
		ewarn " % sudo chmod u+s ${EPREFIX}/usr/sbin/mtr"
62
	fi
51 63
}
Thank you!