summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Deutschmann <whissi@gentoo.org>2017-01-15 17:13:41 +0100
committerThomas Deutschmann <whissi@gentoo.org>2017-01-15 17:13:59 +0100
commitef041685437e59103d06f3e28a9a233d7a33728f (patch)
treef3412e7bab59fcf3f94419877f218c8a5f74e5c9 /net-libs
parentnet-misc/networkmanager: Version bump, don't support old upower support in fa... (diff)
downloadgentoo-ef041685437e59103d06f3e28a9a233d7a33728f.tar.gz
gentoo-ef041685437e59103d06f3e28a9a233d7a33728f.tar.bz2
gentoo-ef041685437e59103d06f3e28a9a233d7a33728f.zip
net-libs/liboping: Call fcaps only on files we really have installed (bug #605768)
Package-Manager: Portage-2.3.3, Repoman-2.3.1
Diffstat (limited to 'net-libs')
-rw-r--r--net-libs/liboping/liboping-1.8.0-r1.ebuild19
-rw-r--r--net-libs/liboping/liboping-1.9.0.ebuild19
2 files changed, 28 insertions, 10 deletions
diff --git a/net-libs/liboping/liboping-1.8.0-r1.ebuild b/net-libs/liboping/liboping-1.8.0-r1.ebuild
index 141475405edb..268c953b2f5c 100644
--- a/net-libs/liboping/liboping-1.8.0-r1.ebuild
+++ b/net-libs/liboping/liboping-1.8.0-r1.ebuild
@@ -52,13 +52,22 @@ src_install() {
pkg_postinst() {
if use filecaps; then
local _caps_str="CAP_NET_RAW"
- fcaps "${_caps_str}" \
- "${EROOT%/}/usr/bin/oping" \
- "${EROOT%/}/usr/bin/noping"
+ _files=( "${EROOT%/}/usr/bin/oping")
+
+ if use ncurses; then
+ _files+=( "${EROOT%/}/usr/bin/noping")
+ fi
+
+ fcaps "${_caps_str}" "${_files[@]}"
+
elog "Capabilities for"
elog ""
- elog " ${EROOT%/}/usr/bin/oping"
- elog " ${EROOT%/}/usr/bin/oping"
+
+ local _file=
+ for _file in "${_files[@]}"; do
+ elog " ${_file}"
+ done
+
elog ""
elog "set to ${_caps_str}+EP due to set 'filecaps' USE flag."
elog
diff --git a/net-libs/liboping/liboping-1.9.0.ebuild b/net-libs/liboping/liboping-1.9.0.ebuild
index 141475405edb..268c953b2f5c 100644
--- a/net-libs/liboping/liboping-1.9.0.ebuild
+++ b/net-libs/liboping/liboping-1.9.0.ebuild
@@ -52,13 +52,22 @@ src_install() {
pkg_postinst() {
if use filecaps; then
local _caps_str="CAP_NET_RAW"
- fcaps "${_caps_str}" \
- "${EROOT%/}/usr/bin/oping" \
- "${EROOT%/}/usr/bin/noping"
+ _files=( "${EROOT%/}/usr/bin/oping")
+
+ if use ncurses; then
+ _files+=( "${EROOT%/}/usr/bin/noping")
+ fi
+
+ fcaps "${_caps_str}" "${_files[@]}"
+
elog "Capabilities for"
elog ""
- elog " ${EROOT%/}/usr/bin/oping"
- elog " ${EROOT%/}/usr/bin/oping"
+
+ local _file=
+ for _file in "${_files[@]}"; do
+ elog " ${_file}"
+ done
+
elog ""
elog "set to ${_caps_str}+EP due to set 'filecaps' USE flag."
elog