From: Jeroen Roovers Date: Wed, 30 Aug 2017 08:26:38 +0000 (+0200) Subject: net-analyzer/wireshark: Update shared MIME info database (bug #629346). X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=a5f44d0c5c70918eaad08ea0e25160d9656c5959;p=gentoo.git net-analyzer/wireshark: Update shared MIME info database (bug #629346). Package-Manager: Portage-2.3.8, Repoman-2.3.3 --- diff --git a/net-analyzer/wireshark/wireshark-2.4.1.ebuild b/net-analyzer/wireshark/wireshark-2.4.1-r1.ebuild similarity index 98% rename from net-analyzer/wireshark/wireshark-2.4.1.ebuild rename to net-analyzer/wireshark/wireshark-2.4.1-r1.ebuild index 91c6cd5751a2..d5f333a962b2 100644 --- a/net-analyzer/wireshark/wireshark-2.4.1.ebuild +++ b/net-analyzer/wireshark/wireshark-2.4.1-r1.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit autotools eutils fcaps flag-o-matic multilib qmake-utils user +inherit autotools eutils fcaps flag-o-matic multilib qmake-utils user xdg-utils DESCRIPTION="A network protocol analyzer formerly known as ethereal" HOMEPAGE="https://www.wireshark.org/" @@ -264,6 +264,8 @@ src_install() { } pkg_postinst() { + xdg_mimeinfo_database_update + # Add group for users allowed to sniff. enewgroup wireshark @@ -277,3 +279,7 @@ pkg_postinst() { ewarn "add yourself to the wireshark group. This security measure ensures" ewarn "that only trusted users are allowed to sniff your traffic." } + +pkg_postrm() { + xdg_mimeinfo_database_update +} diff --git a/net-analyzer/wireshark/wireshark-99999999.ebuild b/net-analyzer/wireshark/wireshark-99999999.ebuild index 7d9cd1a57a7d..0cc1e226403c 100644 --- a/net-analyzer/wireshark/wireshark-99999999.ebuild +++ b/net-analyzer/wireshark/wireshark-99999999.ebuild @@ -2,7 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=6 -inherit autotools eutils fcaps flag-o-matic git-r3 multilib qmake-utils user +inherit autotools eutils fcaps flag-o-matic git-r3 multilib qmake-utils user xdg-utils DESCRIPTION="A network protocol analyzer formerly known as ethereal" HOMEPAGE="https://www.wireshark.org/" @@ -268,6 +268,8 @@ src_install() { } pkg_postinst() { + xdg_mimeinfo_database_update + # Add group for users allowed to sniff. enewgroup wireshark @@ -281,3 +283,7 @@ pkg_postinst() { ewarn "add yourself to the wireshark group. This security measure ensures" ewarn "that only trusted users are allowed to sniff your traffic." } + +pkg_postrm() { + xdg_mimeinfo_database_update +}