commit:     a5f44d0c5c70918eaad08ea0e25160d9656c5959
Author:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
AuthorDate: Wed Aug 30 08:26:38 2017 +0000
Commit:     Jeroen Roovers <jer <AT> gentoo <DOT> org>
CommitDate: Wed Aug 30 08:27:02 2017 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=a5f44d0c

net-analyzer/wireshark: Update shared MIME info database (bug #629346).

Package-Manager: Portage-2.3.8, Repoman-2.3.3

 .../{wireshark-2.4.1.ebuild => wireshark-2.4.1-r1.ebuild}         | 8 +++++++-
 net-analyzer/wireshark/wireshark-99999999.ebuild                  | 8 +++++++-
 2 files changed, 14 insertions(+), 2 deletions(-)

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 91c6cd5751a..d5f333a962b 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 7d9cd1a57a7..0cc1e226403 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
+}

Reply via email to