mirror of
https://github.com/void-linux/void-packages.git
synced 2025-07-29 17:02:56 +02:00
fping: use CAP_NET_RAW instead of setuid
This commit is contained in:
parent
93f908ddb7
commit
78ad5fdd56
2 changed files with 6 additions and 3 deletions
5
srcpkgs/fping/INSTALL
Normal file
5
srcpkgs/fping/INSTALL
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
case "${ACTION}" in
|
||||||
|
post)
|
||||||
|
setcap CAP_NET_RAW+ep usr/bin/fping
|
||||||
|
;;
|
||||||
|
esac
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'fping'
|
# Template file for 'fping'
|
||||||
pkgname=fping
|
pkgname=fping
|
||||||
version=4.1
|
version=4.1
|
||||||
revision=1
|
revision=2
|
||||||
build_style=gnu-configure
|
build_style=gnu-configure
|
||||||
configure_args="--sbindir=/usr/bin --enable-ipv4 --enable-ipv6"
|
configure_args="--sbindir=/usr/bin --enable-ipv4 --enable-ipv6"
|
||||||
short_desc="High performance ping"
|
short_desc="High performance ping"
|
||||||
|
@ -13,6 +13,4 @@ checksum=2733e2a18cc2b5b935c4e3b5b84ccf2080c38043f1864d7c43326e8048ddab73
|
||||||
|
|
||||||
post_install() {
|
post_install() {
|
||||||
vlicense COPYING
|
vlicense COPYING
|
||||||
# make fping setuid.
|
|
||||||
chmod 4555 ${DESTDIR}/usr/bin/fping
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue