[arch-commits] Commit in fping/trunk (PKGBUILD fping.install)
Florian Pritz
bluewind at archlinux.org
Thu Sep 27 09:03:37 UTC 2018
Date: Thursday, September 27, 2018 @ 09:03:36
Author: bluewind
Revision: 335462
Use capabilities instead of setuid
Added:
fping/trunk/fping.install
Modified:
fping/trunk/PKGBUILD
---------------+
PKGBUILD | 4 ++--
fping.install | 9 +++++++++
2 files changed, 11 insertions(+), 2 deletions(-)
Modified: PKGBUILD
===================================================================
--- PKGBUILD 2018-09-27 07:30:27 UTC (rev 335461)
+++ PKGBUILD 2018-09-27 09:03:36 UTC (rev 335462)
@@ -3,12 +3,13 @@
pkgname=fping
pkgver=4.0
-pkgrel=1
+pkgrel=2
pkgdesc="A utility to ping multiple hosts at once"
arch=('x86_64')
url="http://www.fping.org/"
license=('custom')
depends=('glibc')
+install="$pkgname.install"
source=("https://www.fping.org/dist/${pkgname}-${pkgver}.tar.gz")
sha256sums=('67eb4152b98ad34f99d2eec4e1098a0bb52caf13c0c89cd147349d08190fe8ce')
@@ -30,5 +31,4 @@
# install license
install -D -m644 COPYING "${pkgdir}/usr/share/licenses/$pkgname/LICENSE"
- chmod 4555 ${pkgdir}/usr/bin/fping
}
Added: fping.install
===================================================================
--- fping.install (rev 0)
+++ fping.install 2018-09-27 09:03:36 UTC (rev 335462)
@@ -0,0 +1,9 @@
+post_install() {
+ setcap cap_net_raw=ep usr/bin/fping 2>/dev/null || chmod +s usr/bin/fping
+}
+
+post_upgrade() {
+ post_install "$1"
+}
+
+# vim:set ts=2 sw=2 et:
More information about the arch-commits
mailing list