diff options
author | root <root@rshg054.dnsready.net> | 2012-10-02 01:06:16 -0700 |
---|---|---|
committer | root <root@rshg054.dnsready.net> | 2012-10-02 01:06:16 -0700 |
commit | 941550cbc215d608bd18439f99500b74fbb80f0d (patch) | |
tree | ced50aee5db693d8495b19c59d2bdbd6927c9393 /testing | |
parent | 9b6be78b0c13a61c14d5278f1363eaf9c6388e4c (diff) |
Tue Oct 2 01:06:06 PDT 2012
Diffstat (limited to 'testing')
-rw-r--r-- | testing/iputils/PKGBUILD | 4 | ||||
-rw-r--r-- | testing/iputils/iputils.install | 9 |
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() { |