1 |
commit: 4cd0fbd620b0f3210d047a5139bef8e866331c8f |
2 |
Author: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
3 |
AuthorDate: Thu Sep 22 15:46:10 2022 +0000 |
4 |
Commit: Mike Gilbert <floppym <AT> gentoo <DOT> org> |
5 |
CommitDate: Thu Sep 22 15:46:58 2022 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=4cd0fbd6 |
7 |
|
8 |
net-misc/iputils: rework fcaps logic |
9 |
|
10 |
Closes: https://bugs.gentoo.org/872380 |
11 |
Signed-off-by: Mike Gilbert <floppym <AT> gentoo.org> |
12 |
|
13 |
net-misc/iputils/iputils-99999999.ebuild | 11 ++++++----- |
14 |
1 file changed, 6 insertions(+), 5 deletions(-) |
15 |
|
16 |
diff --git a/net-misc/iputils/iputils-99999999.ebuild b/net-misc/iputils/iputils-99999999.ebuild |
17 |
index 6e435f7605da..7f3760b7d4f5 100644 |
18 |
--- a/net-misc/iputils/iputils-99999999.ebuild |
19 |
+++ b/net-misc/iputils/iputils-99999999.ebuild |
20 |
@@ -110,6 +110,10 @@ src_test() { |
21 |
src_install() { |
22 |
meson_src_install |
23 |
|
24 |
+ FILECAPS=( cap_net_raw usr/bin/ping ) |
25 |
+ use arping && FILECAPS+=( usr/bin/arping ) |
26 |
+ use clockdiff && FILECAPS+=( usr/bin/clockdiff ) |
27 |
+ |
28 |
dosym ping /usr/bin/ping4 |
29 |
dosym ping /usr/bin/ping6 |
30 |
|
31 |
@@ -159,15 +163,12 @@ pkg_preinst() { |
32 |
} |
33 |
|
34 |
pkg_postinst() { |
35 |
+ fcaps_pkg_postinst |
36 |
+ |
37 |
if [[ ${HAD_TFTPD_VERSION} -eq 1 ]] ; then |
38 |
ewarn "This upstream version (>= 20211215) drops two tools:" |
39 |
ewarn "1. tftpd (alternatives: net-ftp/tftp-hpa, net-dns/dnsmasq)" |
40 |
ewarn "2. traceroute6 (alternatives: net-analyzer/mtr, net-analyzer/traceroute)" |
41 |
ewarn "Please install one of the listed alternatives if needed!" |
42 |
fi |
43 |
- |
44 |
- fcaps cap_net_raw \ |
45 |
- bin/ping \ |
46 |
- $(usex arping 'bin/arping' '') \ |
47 |
- $(usex clockdiff 'usr/bin/clockdiff' '') |
48 |
} |