summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
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