mtr: update to 0.87.

Switch to capabilities instead of setuid.
This commit is contained in:
Christian Neukirchen 2016-08-08 23:38:38 +02:00
parent e52f77c834
commit 69bc99d037
3 changed files with 17 additions and 5 deletions

5
srcpkgs/mtr/INSTALL Normal file
View File

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

View File

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

View File

@ -1,17 +1,17 @@
# Template file for 'mtr' # Template file for 'mtr'
pkgname=mtr pkgname=mtr
version=0.86 version=0.87
revision=2 revision=1
build_style="gnu-configure" build_style="gnu-configure"
configure_args="--sbindir=/usr/bin"
hostmakedepends="automake pkg-config" hostmakedepends="automake pkg-config"
makedepends="ncurses-devel gtk+-devel" makedepends="ncurses-devel gtk+-devel"
depends="libcap-progs"
short_desc="Combines the functionality of traceroute and ping into one tool" short_desc="Combines the functionality of traceroute and ping into one tool"
maintainer="Steven R <dev@styez.com>" maintainer="Steven R <dev@styez.com>"
license="GPL" license="GPL-2"
homepage="http://www.bitwizard.nl/mtr/" homepage="http://www.bitwizard.nl/mtr/"
distfiles="https://github.com/traviscross/mtr/archive/v${version}.tar.gz" distfiles="https://github.com/traviscross/mtr/archive/v${version}.tar.gz"
checksum=7912f049f9506748913e2866068b7f95b11a4e0a855322120b456c46ac9eb763 checksum=ac177953e7c834d5326fc52d63377b6d0b42d05db8017556390629b87e44e183
nocross=yes nocross=yes
pre_configure() { pre_configure() {
@ -37,6 +37,7 @@ do_build() {
do_install() { do_install() {
cd $wrksrc/build_nox cd $wrksrc/build_nox
make DESTDIR=$DESTDIR install make DESTDIR=$DESTDIR install
chmod 0755 $DESTDIR/usr/bin/*
} }
mtr-x11_package() { mtr-x11_package() {
@ -46,5 +47,6 @@ mtr-x11_package() {
pkg_install() { pkg_install() {
cd $wrksrc/build_x11 cd $wrksrc/build_x11
make DESTDIR=$PKGDESTDIR install make DESTDIR=$PKGDESTDIR install
chmod 0755 $PKGDESTDIR/usr/bin/*
} }
} }