net-analyzer/wireshark: Update shared MIME info database (bug #629346).
authorJeroen Roovers <jer@gentoo.org>
Wed, 30 Aug 2017 08:26:38 +0000 (10:26 +0200)
committerJeroen Roovers <jer@gentoo.org>
Wed, 30 Aug 2017 08:27:02 +0000 (10:27 +0200)
Package-Manager: Portage-2.3.8, Repoman-2.3.3

net-analyzer/wireshark/wireshark-2.4.1-r1.ebuild [moved from net-analyzer/wireshark/wireshark-2.4.1.ebuild with 98% similarity]
net-analyzer/wireshark/wireshark-99999999.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 91c6cd5751a266ed00fc571331a113952910ac6e..d5f333a962b29041715e7a8ab2dd192090474c85 100644 (file)
@@ -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
+}
index 7d9cd1a57a7dbc89ac0e603e9b438a6be0288230..0cc1e226403c4f5f4d3a307eea016c319bf7df65 100644 (file)
@@ -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
+}