mtr: setcap on the correct binary (mtr-packet)

From version 0.88 mtr sends probes from a subprocess "mtr-packet",
so that's what needs the privileged capabilities.

Also, link with libcap which lets mtr-packet drop its privileges when
they're no longer needed.
This commit is contained in:
Daniel Néri 2017-06-09 22:35:47 +00:00 committed by Leah Neukirchen
parent 3aac07bf59
commit 084520690f
2 changed files with 3 additions and 3 deletions

View File

@ -1,5 +1,5 @@
case "${ACTION}" in
post)
setcap CAP_NET_RAW+ep usr/bin/mtr
setcap CAP_NET_RAW+ep usr/bin/mtr-packet
;;
esac

View File

@ -1,10 +1,10 @@
# Template file for 'mtr'
pkgname=mtr
version=0.92
revision=1
revision=2
build_style="gnu-configure"
hostmakedepends="automake pkg-config gtk+-devel"
makedepends="ncurses-devel gtk+-devel"
makedepends="ncurses-devel gtk+-devel libcap-devel"
depends="libcap-progs"
short_desc="Combines the functionality of traceroute and ping into one tool"
maintainer="Steven R <dev@styez.com>"