summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
Diffstat (limited to 'testing')
-rw-r--r--testing/iputils/PKGBUILD4
-rw-r--r--testing/iputils/iputils.install9
2 files changed, 8 insertions, 5 deletions
diff --git a/testing/iputils/PKGBUILD b/testing/iputils/PKGBUILD
index 6b5348b45..af7cb0750 100644
--- a/testing/iputils/PKGBUILD
+++ b/testing/iputils/PKGBUILD
@@ -1,11 +1,11 @@
-# $Id: PKGBUILD 163462 2012-07-12 10:24:03Z stephane $
+# $Id: PKGBUILD 167413 2012-10-01 23:45:59Z stephane $
# Maintainer: Stéphane Gaudreault <stephane@archlinux.org>
# Maintainer: Tobias Powalowski <tpowa@archlinux.org>
# Contributor: Aaron Griffin <aaron@archlinux.org>
pkgname=iputils
pkgver=20101006
-pkgrel=4
+pkgrel=6
pkgdesc="IP Configuration Utilities (and Ping)"
arch=('i686' 'x86_64')
license=('GPL')
diff --git a/testing/iputils/iputils.install b/testing/iputils/iputils.install
index 2481fb396..d83f94426 100644
--- a/testing/iputils/iputils.install
+++ b/testing/iputils/iputils.install
@@ -1,7 +1,10 @@
post_install() {
- setcap cap_net_raw=ep usr/bin/ping
- setcap cap_net_raw=ep usr/bin/ping6
- echo " >> Traceroute is now provided by core/traceroute"
+ setcap cap_net_raw=ep usr/bin/ping 2>/dev/null || chmod +s usr/bin/ping
+ setcap cap_net_raw=ep usr/bin/ping6 2>/dev/null || chmod +s usr/bin/ping6
+
+ if [ "$(vercmp $2 20101006-3)" -le 0 ]; then
+ echo " >> Traceroute is now provided by core/traceroute"
+ fi
}
post_upgrade() {