diff --git a/net-analyzer/wireshark/metadata.xml b/net-analyzer/wireshark/metadata.xml
index 4a20e26519da6..17945000941a5 100644
--- a/net-analyzer/wireshark/metadata.xml
+++ b/net-analyzer/wireshark/metadata.xml
@@ -42,6 +42,7 @@ be exported to XML, PostScript®, CSV, or plain text.
Use app-arch/lz4 for compression/decompression
Use dev-libs/libmaxminddb for IP address geolocation
Install mergecap, to merge two or more capture files into one
+Build with zip file compression support
Use dev-libs/libnl
Use net-libs/nghttp2 for HTTP/2 support
Use net-libs/libpcap for network packet capturing (build dumpcap, rawshark)
diff --git a/net-analyzer/wireshark/wireshark-3.1.0.ebuild b/net-analyzer/wireshark/wireshark-3.1.0.ebuild
index bd412c65b24cd..ac253458192db 100644
--- a/net-analyzer/wireshark/wireshark-3.1.0.ebuild
+++ b/net-analyzer/wireshark/wireshark-3.1.0.ebuild
@@ -15,9 +15,9 @@ KEYWORDS=""
IUSE="
adns androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc
dpauxmon +dumpcap +editcap kerberos libxml2 lua lz4 maxminddb +mergecap
- +netlink nghttp2 +plugins plugin_ifdemo +pcap +qt5 +randpkt +randpktdump
- +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl sdjournal
- +text2pcap tfshark +tshark +udpdump zlib
+ +minizip +netlink nghttp2 +plugins plugin_ifdemo +pcap +qt5 +randpkt
+ +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl
+ sdjournal +text2pcap tfshark +tshark +udpdump zlib
"
S=${WORKDIR}/${P/_/}
@@ -34,6 +34,7 @@ CDEPEND="
lua? ( >=dev-lang/lua-5.1:* )
lz4? ( app-arch/lz4 )
maxminddb? ( dev-libs/libmaxminddb )
+ minizip? ( sys-libs/zlib[minizip] )
netlink? ( dev-libs/libnl:3 )
nghttp2? ( net-libs/nghttp2 )
pcap? ( net-libs/libpcap )
@@ -158,6 +159,7 @@ src_configure() {
-DENABLE_LIBXML2=$(usex libxml2)
-DENABLE_LUA=$(usex lua)
-DENABLE_LZ4=$(usex lz4)
+ -DENABLE_MINIZIP=$(usex minizip)
-DENABLE_NETLINK=$(usex netlink)
-DENABLE_NGHTTP2=$(usex nghttp2)
-DENABLE_PCAP=$(usex pcap)
diff --git a/net-analyzer/wireshark/wireshark-99999999.ebuild b/net-analyzer/wireshark/wireshark-99999999.ebuild
index c964508b1b073..d85aa0a5e072d 100644
--- a/net-analyzer/wireshark/wireshark-99999999.ebuild
+++ b/net-analyzer/wireshark/wireshark-99999999.ebuild
@@ -15,9 +15,9 @@ KEYWORDS=""
IUSE="
adns androiddump bcg729 brotli +capinfos +captype ciscodump +dftest doc
dpauxmon +dumpcap +editcap kerberos libxml2 lua lz4 maxminddb +mergecap
- +netlink nghttp2 +plugins plugin_ifdemo +pcap +qt5 +randpkt +randpktdump
- +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl sdjournal
- +text2pcap tfshark +tshark +udpdump zlib
+ +minizip +netlink nghttp2 +plugins plugin_ifdemo +pcap +qt5 +randpkt
+ +randpktdump +reordercap sbc selinux +sharkd smi snappy spandsp sshdump ssl
+ sdjournal +text2pcap tfshark +tshark +udpdump zlib
"
S=${WORKDIR}/${P/_/}
@@ -34,6 +34,7 @@ CDEPEND="
lua? ( >=dev-lang/lua-5.1:* )
lz4? ( app-arch/lz4 )
maxminddb? ( dev-libs/libmaxminddb )
+ minizip? ( sys-libs/zlib[minizip] )
netlink? ( dev-libs/libnl:3 )
nghttp2? ( net-libs/nghttp2 )
pcap? ( net-libs/libpcap )
@@ -158,6 +159,7 @@ src_configure() {
-DENABLE_LIBXML2=$(usex libxml2)
-DENABLE_LUA=$(usex lua)
-DENABLE_LZ4=$(usex lz4)
+ -DENABLE_MINIZIP=$(usex minizip)
-DENABLE_NETLINK=$(usex netlink)
-DENABLE_NGHTTP2=$(usex nghttp2)
-DENABLE_PCAP=$(usex pcap)