diff --git a/net-misc/wireshark-patoolkit/Manifest b/net-misc/wireshark-patoolkit/Manifest index 9767ef18f..ceb29563d 100644 --- a/net-misc/wireshark-patoolkit/Manifest +++ b/net-misc/wireshark-patoolkit/Manifest @@ -1 +1 @@ -DIST wireshark-patoolkit-20181228.tar.gz 120466450 BLAKE2B cfa37c1b1a3429127bca0544be215d737fd7e824b0b67a488d11d664a3ee7b9d534be8c6338cccfa0d0f10a32b615c63a85e2513039677dc1e26ece216cfd706 SHA512 60c0e77fd5e0f4f47b0d079ced9815c24e04c12b5fc85dfc96f6cfe5fdecd196fdedd270563da0089d5b9e49854ea092ecdccabdeafc1ee44d32d6ece7d28c01 +DIST wireshark-patoolkit-20190110.tar.gz 20427 BLAKE2B 9b8f99bc49541d203d372a6c9939e2f66e76fa9074bcc99969a3fbe785e5cef75a3d4e0a4f60ae9d2c1a741fe029ece302537b399266a94ce698c0138e9422b9 SHA512 8883b97e2d6959d9c029639c8820a530a8b12351a24b9c3d7f245eae712c6df9b8df43baa76d35fed8cb3a7d7ead05b8987a0c6ae993e5b8a1b47f1e027b1b80 diff --git a/net-misc/wireshark-patoolkit/files/92patoolkit b/net-misc/wireshark-patoolkit/files/92patoolkit new file mode 100644 index 000000000..28103b4de --- /dev/null +++ b/net-misc/wireshark-patoolkit/files/92patoolkit @@ -0,0 +1 @@ +LUA_PATH="/usr/lib/wireshark/plugins/patoolkit/lib/?.lua" diff --git a/net-misc/wireshark-patoolkit/wireshark-patoolkit-20190110.ebuild b/net-misc/wireshark-patoolkit/wireshark-patoolkit-20190110.ebuild new file mode 100644 index 000000000..ee357bfcc --- /dev/null +++ b/net-misc/wireshark-patoolkit/wireshark-patoolkit-20190110.ebuild @@ -0,0 +1,41 @@ +# Copyright 1999-2019 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=7 + +inherit multilib + +DESCRIPTION="a collection of traffic analysis Wireshark plugins focused on security" +HOMEPAGE="https://github.com/pentesteracademy/patoolkit" +HASH_COMMIT="7db1e070926aab40a93abe86da1c18bd46560e95" +SRC_URI="https://github.com/pentesteracademy/patoolkit/archive/${HASH_COMMIT}.tar.gz -> ${P}.tar.gz" +#branch: https://github.com/pentesteracademy/patoolkit/tree/global-plugins + +LICENSE="GPL-2" +SLOT="0" +KEYWORDS="~amd64 ~arm ~x86" + +RDEPEND=">=net-analyzer/wireshark-2.6:=" +DEPEND="${RDEPEND}" + +S="${WORKDIR}/patoolkit-${HASH_COMMIT}" + +get_PV() { + local pv=$(best_version $1) + pv=${pv#$1-}; pv=${pv%-r*} + pv=${pv//_}; echo ${pv} +} + +src_install() { + #local WS_PLUGIN_DIR="/usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)/patoolkit/" + #lue scripts must be just in "plugin" folder + local WS_PLUGIN_DIR="/usr/$(get_libdir)/wireshark/plugins/patoolkit/" + dodir $WS_PLUGIN_DIR + cp -R "${S}"/plugins/* "${ED}/$WS_PLUGIN_DIR" || die "Copy files failed" + doenvd "${FILESDIR}"/92patoolkit +} + +pkg_postinst() { + elog "Please run 'env-update' and '. /etc/profile' or re-login after the first install," + elog "otherwise you may be missing required environmental variables" +}