1 |
commit: e1dbc04410cba085c3587626744c8790d015da0a |
2 |
Author: Florian Schmaus <flow <AT> gentoo <DOT> org> |
3 |
AuthorDate: Mon Jan 30 07:09:46 2023 +0000 |
4 |
Commit: Florian Schmaus <flow <AT> gentoo <DOT> org> |
5 |
CommitDate: Mon Jan 30 07:16:23 2023 +0000 |
6 |
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e1dbc044 |
7 |
|
8 |
net-analyzer/wireshark: convert ewarn to readme.gentoo |
9 |
|
10 |
As discussed with sam, the note about the pcap group does not really fit |
11 |
into the 'warning' category. It also causes noise since it is printed |
12 |
with every emerge of wireshark. So instead we use the readme.gentoo-r1 |
13 |
eclass now. |
14 |
|
15 |
Signed-off-by: Florian Schmaus <flow <AT> gentoo.org> |
16 |
|
17 |
net-analyzer/wireshark/files/README.gentoo | 3 +++ |
18 |
net-analyzer/wireshark/wireshark-4.0.3.ebuild | 8 ++++---- |
19 |
2 files changed, 7 insertions(+), 4 deletions(-) |
20 |
|
21 |
diff --git a/net-analyzer/wireshark/files/README.gentoo b/net-analyzer/wireshark/files/README.gentoo |
22 |
new file mode 100644 |
23 |
index 000000000000..a26d2c4dcb76 |
24 |
--- /dev/null |
25 |
+++ b/net-analyzer/wireshark/files/README.gentoo |
26 |
@@ -0,0 +1,3 @@ |
27 |
+NOTE: To capture traffic with wireshark as normal user you have to |
28 |
+add yourself to the pcap group. This security measure ensures |
29 |
+that only trusted users are allowed to sniff your traffic. |
30 |
|
31 |
diff --git a/net-analyzer/wireshark/wireshark-4.0.3.ebuild b/net-analyzer/wireshark/wireshark-4.0.3.ebuild |
32 |
index 38a3ce5e8814..ab3fdea34f32 100644 |
33 |
--- a/net-analyzer/wireshark/wireshark-4.0.3.ebuild |
34 |
+++ b/net-analyzer/wireshark/wireshark-4.0.3.ebuild |
35 |
@@ -6,7 +6,7 @@ EAPI=8 |
36 |
LUA_COMPAT=( lua5-{1..2} ) |
37 |
PYTHON_COMPAT=( python3_{9..10} ) |
38 |
|
39 |
-inherit fcaps flag-o-matic lua-single python-any-r1 qmake-utils xdg cmake |
40 |
+inherit fcaps flag-o-matic readme.gentoo-r1 lua-single python-any-r1 qmake-utils xdg cmake |
41 |
|
42 |
DESCRIPTION="A network protocol analyzer formerly known as ethereal" |
43 |
HOMEPAGE="https://www.wireshark.org/" |
44 |
@@ -292,6 +292,8 @@ src_install() { |
45 |
if [[ -d "${ED}"/usr/share/appdata ]] ; then |
46 |
rm -r "${ED}"/usr/share/appdata || die |
47 |
fi |
48 |
+ |
49 |
+ readme.gentoo_create_doc |
50 |
} |
51 |
|
52 |
pkg_postinst() { |
53 |
@@ -306,7 +308,5 @@ pkg_postinst() { |
54 |
"${EROOT}"/usr/bin/dumpcap |
55 |
fi |
56 |
|
57 |
- ewarn "NOTE: To capture traffic with wireshark as normal user you have to" |
58 |
- ewarn "add yourself to the pcap group. This security measure ensures" |
59 |
- ewarn "that only trusted users are allowed to sniff your traffic." |
60 |
+ readme.gentoo_print_elog |
61 |
} |