Gentoo Archives: gentoo-commits

From: Sam James <sam@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] repo/gentoo:master commit in: net-analyzer/wireshark/
Date: Fri, 16 Apr 2021 05:33:45
Message-Id: 1618551196.38f1aa26c80f353025a8e2763c397dc932a4d100.sam@gentoo
1 commit: 38f1aa26c80f353025a8e2763c397dc932a4d100
2 Author: Sam James <sam <AT> gentoo <DOT> org>
3 AuthorDate: Fri Apr 16 05:17:54 2021 +0000
4 Commit: Sam James <sam <AT> gentoo <DOT> org>
5 CommitDate: Fri Apr 16 05:33:16 2021 +0000
6 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=38f1aa26
7
8 net-analyzer/wireshark: use live template
9
10 Signed-off-by: Sam James <sam <AT> gentoo.org>
11
12 net-analyzer/wireshark/wireshark-3.4.4.ebuild | 27 +++++++++------
13 net-analyzer/wireshark/wireshark-9999.ebuild | 49 +++++++++++++++++----------
14 2 files changed, 47 insertions(+), 29 deletions(-)
15
16 diff --git a/net-analyzer/wireshark/wireshark-3.4.4.ebuild b/net-analyzer/wireshark/wireshark-3.4.4.ebuild
17 index d1606cdc102..9b251700aaf 100644
18 --- a/net-analyzer/wireshark/wireshark-3.4.4.ebuild
19 +++ b/net-analyzer/wireshark/wireshark-3.4.4.ebuild
20 @@ -10,20 +10,25 @@ inherit fcaps flag-o-matic lua-single python-any-r1 qmake-utils xdg-utils cmake
21
22 DESCRIPTION="A network protocol analyzer formerly known as ethereal"
23 HOMEPAGE="https://www.wireshark.org/"
24 -SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz"
25 -SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-glib-2.68-patches.tar.gz"
26 -S="${WORKDIR}/${P/_/}"
27 +
28 +if [[ ${PV} == *9999* ]] ; then
29 + EGIT_REPO_URI="https://gitlab.com/wireshark/wireshark"
30 + inherit git-r3
31 +else
32 + SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz"
33 + SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-glib-2.68-patches.tar.gz"
34 + S="${WORKDIR}/${P/_/}"
35 +
36 + KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc64 x86"
37 +fi
38
39 LICENSE="GPL-2"
40 SLOT="0/${PV}"
41 -KEYWORDS="~alpha amd64 arm arm64 ~hppa ~ia64 ppc64 x86"
42 -IUSE="
43 - androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon
44 - +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb
45 - +mergecap +minizip +netlink opus +plugins plugin-ifdemo +pcap +qt5 +randpkt
46 - +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl
47 - sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd
48 -"
49 +IUSE="androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon"
50 +IUSE+=" +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb"
51 +IUSE+=" +mergecap +minizip +netlink opus +plugins plugin-ifdemo +pcap +qt5 +randpkt"
52 +IUSE+=" +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl"
53 +IUSE+=" sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd"
54
55 CDEPEND="
56 acct-group/pcap
57
58 diff --git a/net-analyzer/wireshark/wireshark-9999.ebuild b/net-analyzer/wireshark/wireshark-9999.ebuild
59 index 0854e2e8254..9e293f6104b 100644
60 --- a/net-analyzer/wireshark/wireshark-9999.ebuild
61 +++ b/net-analyzer/wireshark/wireshark-9999.ebuild
62 @@ -6,23 +6,29 @@ EAPI=7
63 LUA_COMPAT=( lua5-{1..2} )
64 PYTHON_COMPAT=( python3_{7..9} )
65
66 -inherit fcaps flag-o-matic git-r3 lua-single python-any-r1 qmake-utils xdg-utils cmake
67 +inherit fcaps flag-o-matic lua-single python-any-r1 qmake-utils xdg-utils cmake
68
69 DESCRIPTION="A network protocol analyzer formerly known as ethereal"
70 HOMEPAGE="https://www.wireshark.org/"
71 -EGIT_REPO_URI="https://gitlab.com/wireshark/wireshark"
72 -LICENSE="GPL-2"
73
74 +if [[ ${PV} == *9999* ]] ; then
75 + EGIT_REPO_URI="https://gitlab.com/wireshark/wireshark"
76 + inherit git-r3
77 +else
78 + SRC_URI="https://www.wireshark.org/download/src/all-versions/${P/_/}.tar.xz"
79 + SRC_URI+=" https://dev.gentoo.org/~sam/distfiles/${CATEGORY}/${PN}/${P}-glib-2.68-patches.tar.gz"
80 + S="${WORKDIR}/${P/_/}"
81 +
82 + KEYWORDS="~alpha ~amd64 ~arm ~arm64 ~hppa ~ia64 ~ppc64 ~x86"
83 +fi
84 +
85 +LICENSE="GPL-2"
86 SLOT="0/${PV}"
87 -KEYWORDS=""
88 -IUSE="
89 - androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon
90 - +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb
91 - +mergecap +minizip +netlink opus +plugins plugin-ifdemo +pcap +qt5 +randpkt
92 - +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl
93 - sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd
94 -"
95 -S=${WORKDIR}/${P/_/}
96 +IUSE="androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc dpauxmon"
97 +IUSE+=" +dumpcap +editcap http2 ilbc kerberos libxml2 lto lua lz4 maxminddb"
98 +IUSE+=" +mergecap +minizip +netlink opus +plugins plugin-ifdemo +pcap +qt5 +randpkt"
99 +IUSE+=" +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl"
100 +IUSE+=" sdjournal test +text2pcap tfshark +tshark +udpdump zlib +zstd"
101
102 CDEPEND="
103 acct-group/pcap
104 @@ -94,7 +100,9 @@ REQUIRED_USE="
105 lua? ( ${LUA_REQUIRED_USE} )
106 plugin-ifdemo? ( plugins )
107 "
108 -RESTRICT="!test? ( test )"
109 +
110 +RESTRICT="test"
111 +
112 PATCHES=(
113 "${FILESDIR}"/${PN}-2.6.0-redhat.patch
114 "${FILESDIR}"/${PN}-3.4.2-cmake-lua-version.patch
115 @@ -187,7 +195,12 @@ src_configure() {
116 src_test() {
117 cmake_build test-programs
118
119 - myctestargs=( --disable-capture --skip-missing-programs=all --verbose )
120 + myctestargs=(
121 + --disable-capture
122 + --skip-missing-programs=all
123 + --verbose
124 + )
125 +
126 cmake_src_test
127 }
128
129 @@ -212,8 +225,8 @@ src_install() {
130 wiretap
131 wsutil
132 )
133 - for dir in "${dirs[@]}"
134 - do
135 +
136 + for dir in "${dirs[@]}" ; do
137 insinto /usr/include/wireshark/${dir}
138 doins ${dir}/*.h
139 done
140 @@ -235,8 +248,8 @@ src_install() {
141 done
142 fi
143
144 - if [[ -d "${D}"/usr/share/appdata ]]; then
145 - rm -r "${D}"/usr/share/appdata || die
146 + if [[ -d "${ED}"/usr/share/appdata ]]; then
147 + rm -r "${ED}"/usr/share/appdata || die
148 fi
149 }