summaryrefslogtreecommitdiff
path: root/net-analyzer/cloudshark
diff options
context:
space:
mode:
authorV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
committerV3n3RiX <venerix@redcorelinux.org>2017-10-09 18:53:29 +0100
commit4f2d7949f03e1c198bc888f2d05f421d35c57e21 (patch)
treeba5f07bf3f9d22d82e54a462313f5d244036c768 /net-analyzer/cloudshark
reinit the tree, so we can have metadata
Diffstat (limited to 'net-analyzer/cloudshark')
-rw-r--r--net-analyzer/cloudshark/Manifest10
-rw-r--r--net-analyzer/cloudshark/cloudshark-1.0.2.174.ebuild48
-rw-r--r--net-analyzer/cloudshark/cloudshark-1.0.3.180.ebuild48
-rw-r--r--net-analyzer/cloudshark/cloudshark-1.0.4.ebuild43
-rw-r--r--net-analyzer/cloudshark/files/cs_log_dir.patch13
-rw-r--r--net-analyzer/cloudshark/metadata.xml11
6 files changed, 173 insertions, 0 deletions
diff --git a/net-analyzer/cloudshark/Manifest b/net-analyzer/cloudshark/Manifest
new file mode 100644
index 000000000000..f1eddc63ab73
--- /dev/null
+++ b/net-analyzer/cloudshark/Manifest
@@ -0,0 +1,10 @@
+AUX cs_log_dir.patch 402 SHA256 7f8e9bc482c4e83dadf617386b769e11d6a56428c4ba7c270bae63cc37f81dfa SHA512 2cd7fa2b25befeaa6ed2474ed8149e34e4115d7c0105501a9c27547a3dfff7fa4bb6dab60749b17b22f5d13bf247f3276d9217b4f2041db7ee9c0d734108d6a9 WHIRLPOOL 4547b19f333c143d9fae7c550ac1d6d057fb69e0e8ead6600c94dc5cd776815c0bd99f86097c3549ebf01ade5a1fa259bf8a5b576c580f6ab4163cd97e0dda6f
+DIST cloudshark-1.0.4.tar.gz 24947 SHA256 9b3c011c3cb6f08234754dbf8abf4e5e095d23b470262a07fe489c867bf60ea5 SHA512 5cb0e43e348d00c0ecc98f079a35f455865cbbe884e34101369b74429bb5bc14bb98acffa9749ce44a765e3653c0548e8b30cc658fb982b09dd61e2ec31b4f86 WHIRLPOOL 8f97d7aa0e88e5693994897abbcf6863b5e4cc4a414f0397130bd371e27436d22472a447d89d83f9870f5d8c0b93a0d54d083c6ea38e5e286965d5fee55b150e
+DIST cloudshark-plugin-1.0.2-174.tgz 143067 SHA256 d5918e9e3dc60059bdc40d436409c18197df428266863d90367a762f08c3623e SHA512 42445e67630b1bd2968f0836f625acb3792f22257de104ec0b90c59fa8d2096649eba2252cd6161ce57c8ff79095d52c5663d2fa018c650667896c9905e9dd7e WHIRLPOOL 01f3f6bc87b3f09645d2fef953d84b7ba3828f960d7e9bb952bf18cbeb8422beb63cee21355434f392727795b0462e59fd2b07549cce6048e689e5e02bcdd19d
+DIST cloudshark-plugin-1.0.3-180.tgz 143381 SHA256 0c0b204622107dcb29d302401688b62fa3b904eb0b5ccfa6bb42802084f5d102 SHA512 765144e6a2c7ce17eaa05f8170216e08ccac224ba6c11750893ae5caa8f40a2b6bee883fd9be91fa800ad3b45dc42d2ec81e564aa573015a91a8537be8384c73 WHIRLPOOL 818abb8dd904c72fe870336bb3702df04af7299c6e3bbed21510a0a4484997ec4eef68c14f0a556285f82a89ef57fd9768c6814cc3311c4abd28194d70159926
+EBUILD cloudshark-1.0.2.174.ebuild 1637 SHA256 043c37dd38b7d909773852018596f73eae5960edb2c0e5e7caa7e5d890d2fd7c SHA512 4602b794455e48c99edd96c84edb72630981e12e86ff73827d9a44336fda8514dca2f2c61b1ac02d237c1f6aa6a76dca6bf413f04e8c93fd4f2774d2731fbd91 WHIRLPOOL 4bfa4272e96ce45e7a6094cf8410ff04429aeae287ff2cad08477c5ec19a67e6946cef67ea628c8d7d30069705447460491699ce6f8a2d8609dcc5685ef37ae1
+EBUILD cloudshark-1.0.3.180.ebuild 1634 SHA256 792c31beff27a4545a212723f96ee865a0fef999bba47235064ccc454eda7aa8 SHA512 9983487c7d5a65de2d3a38392d22eb7e33a1f1be8429e984781f5b4289909baa861f0662d4fa7a0febd075c3ee88ea99366f73c6c3026f68464a2e2069c10655 WHIRLPOOL e88d6ec28ce61ec4590d16e48757f5bbd97bd8bbbbbf2b473057481c543cfcf63607f783b98355c8ed52706f19ccd258935916b012fa812b2daedd133cb35b74
+EBUILD cloudshark-1.0.4.ebuild 1225 SHA256 9c3228f8f295eb58d8cf800bd53e90ad34d7dec0432cdcaa7685a943dac95bda SHA512 1eeec680d1631a708185fcf64b3e1fe44ef60fc7f32ae51a1ac064e2af09c4505026e65ae5cff03f3cd52d11c361a6a0d2bf053009e38b80f573edff07ded47e WHIRLPOOL a6c3b12a482501a40cda4f635e1cd102f3376dbf9ea0903332b5e5bead86a390f2504a9980ddc9772466cbfb1cf7a676085d751677429a7fb37e9f221b7c201b
+MISC ChangeLog 2842 SHA256 e70d2b5294565e390384e98f4e131c116fccfa44433739bf65053cb1df916b25 SHA512 bef5f8ceb98958b2d5bf161bae64f45c88ef0a1ba45d17ddb654c1a2149ab7a4da605df3827d1a101d4782a4e50c12fe1663dd725d27b5f4ce9c97d214f40378 WHIRLPOOL f8b62156aff02e42fbe33a688bc96b732467ae0dd8380e08f81b7692a65defd5555b5e9c77a1ee5eb7c184e90fc9b6bac3541e6aea4a6dd8d29341db8f9669af
+MISC ChangeLog-2015 853 SHA256 40dcbea6618213cac2dd952c3610c3fd28dc1fac8090eda249d8925cf6a57dec SHA512 e4b3c9b2df149a9b126d82cd96108c6e59d4147468b558cb584af1aefacb8ea2185ae1368ee6aa20ff64cdc72c6f581383e5731a04de5cd8f2027a516a5bdb48 WHIRLPOOL 1313028e44b3da445511a5353f08ff8c898b801a4ed73fe45a1fc3222c75e9822ad4de6ebb6f4d11532efaa1932e5f1079918a801bb6977e95d249378c6cde36
+MISC metadata.xml 339 SHA256 62a455ead693e9166e2abe2606b8e591240858c59677d62f8ac769db2dc423f0 SHA512 6f455d12f82e69560c68af083929907b4ba2d5389bdd7acc08725609bde578d8081245185a2c4f1571cf89c7693cbd49ce713ed4f4cb529f58758bdfa8b08272 WHIRLPOOL ee843193ae8342337ff15830ed4e346deaa42c934b995e2ea0ca734941ba604e4f200b4a3d92c0c66df3acb10a5cbfc1f9b482af22ec99b7ad03044c1edfbe3e
diff --git a/net-analyzer/cloudshark/cloudshark-1.0.2.174.ebuild b/net-analyzer/cloudshark/cloudshark-1.0.2.174.ebuild
new file mode 100644
index 000000000000..81f442abebfe
--- /dev/null
+++ b/net-analyzer/cloudshark/cloudshark-1.0.2.174.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib
+
+SV="1.0.2-174"
+
+DESCRIPTION="Easily upload your wireshark captures to CloudShark"
+HOMEPAGE="http://appliance.cloudshark.org/plug-ins-wireshark.html"
+SRC_URI="http://appliance.cloudshark.org/downloads/${PN}-plugin-${SV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+PDEPEND="net-analyzer/wireshark:=[lua]
+ net-misc/curl"
+
+S="${WORKDIR}/${PN}-${SV}"
+
+get_PV() {
+ local pv=$(best_version $1)
+ pv=${pv#$1-}; pv=${pv%-r*}
+ pv=${pv//_}; echo ${pv}
+}
+
+src_prepare() {
+ #cloudshark isn't meant to be installed systemwide, we fix that
+ epatch "${FILESDIR}"/cs_log_dir.patch
+
+ sed -i "s#%s/cloudshark_init.lua#/usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)/cloudshark_init.lua#" cloudshark.lua
+ #causes errors, looks like it expects windows paths only
+ #echo "CLOUDSHARK_CABUNDLE = /usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)/curl-ca-bundle.crt" >> cloudshark_init.default
+ sed -i "s#%s/curl-ca-bundle.crt#/usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)/curl-ca-bundle.crt#" cloudshark.lua
+
+ #stuff to fix cloudshark_init.default to be more sane
+ #sed -i 's#CLOUDSHARK_TSHARK = "n"#CLOUDSHARK_TSHARK = "y"#' cloudshark_init.default (tshark support doesn't seem to work)
+}
+
+src_install() {
+ insinto /usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)
+ doins cloudshark.lua json.lua version.lua curl-ca-bundle.crt
+ newins cloudshark_init.default cloudshark_init.lua
+ dodoc CLOUDSHARK_README.txt
+}
diff --git a/net-analyzer/cloudshark/cloudshark-1.0.3.180.ebuild b/net-analyzer/cloudshark/cloudshark-1.0.3.180.ebuild
new file mode 100644
index 000000000000..5ca1303bbd5f
--- /dev/null
+++ b/net-analyzer/cloudshark/cloudshark-1.0.3.180.ebuild
@@ -0,0 +1,48 @@
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib
+
+SV="1.0.3-180"
+
+DESCRIPTION="Easily upload your wireshark captures to CloudShark"
+HOMEPAGE="http://appliance.cloudshark.org/plug-ins-wireshark.html"
+SRC_URI="http://appliance.cloudshark.org/plugin/${PN}-plugin-${SV}.tgz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+PDEPEND="net-analyzer/wireshark:=[lua]
+ net-misc/curl"
+
+S="${WORKDIR}/${PN}-${SV}"
+
+get_PV() {
+ local pv=$(best_version $1)
+ pv=${pv#$1-}; pv=${pv%-r*}
+ pv=${pv//_}; echo ${pv}
+}
+
+src_prepare() {
+ #cloudshark isn't meant to be installed systemwide, we fix that
+ epatch "${FILESDIR}"/cs_log_dir.patch
+
+ sed -i "s#%s/cloudshark_init.lua#/usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)/cloudshark_init.lua#" cloudshark.lua
+ #causes errors, looks like it expects windows paths only
+ #echo "CLOUDSHARK_CABUNDLE = /usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)/curl-ca-bundle.crt" >> cloudshark_init.default
+ sed -i "s#%s/curl-ca-bundle.crt#/usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)/curl-ca-bundle.crt#" cloudshark.lua
+
+ #stuff to fix cloudshark_init.default to be more sane
+ #sed -i 's#CLOUDSHARK_TSHARK = "n"#CLOUDSHARK_TSHARK = "y"#' cloudshark_init.default (tshark support doesn't seem to work)
+}
+
+src_install() {
+ insinto /usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)
+ doins cloudshark.lua json.lua version.lua curl-ca-bundle.crt
+ newins cloudshark_init.default cloudshark_init.lua
+ dodoc CLOUDSHARK_README.txt
+}
diff --git a/net-analyzer/cloudshark/cloudshark-1.0.4.ebuild b/net-analyzer/cloudshark/cloudshark-1.0.4.ebuild
new file mode 100644
index 000000000000..191d0601fc8a
--- /dev/null
+++ b/net-analyzer/cloudshark/cloudshark-1.0.4.ebuild
@@ -0,0 +1,43 @@
+# Copyright 1999-2016 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=5
+
+inherit eutils multilib
+
+DESCRIPTION="Easily upload your wireshark captures to CloudShark"
+HOMEPAGE="http://appliance.cloudshark.org/plug-ins-wireshark.html"
+SRC_URI="https://github.com/${PN}/wireshark-plugin/archive/${PV}.tar.gz -> ${P}.tar.gz"
+
+LICENSE="GPL-2"
+SLOT="0"
+KEYWORDS="~amd64 ~arm ~x86"
+IUSE=""
+
+PDEPEND="net-analyzer/wireshark:=[lua]
+ net-misc/curl"
+
+S="${WORKDIR}/wireshark-plugin-${PV}"
+
+get_PV() {
+ local pv=$(best_version $1)
+ pv=${pv#$1-}; pv=${pv%-r*}
+ pv=${pv//_}; echo ${pv}
+}
+
+src_prepare() {
+ #cloudshark isn't meant to be installed systemwide, we fix that
+ epatch "${FILESDIR}"/cs_log_dir.patch
+
+ sed -i "s#%s/cloudshark_init.lua#/usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)/cloudshark_init.lua#" cloudshark.lua
+
+ #this enables cloudshark by DEFAULT on tshark, not desired
+ #sed -i 's#CLOUDSHARK_TSHARK = "n"#CLOUDSHARK_TSHARK = "y"#' cloudshark_init.default
+}
+
+src_install() {
+ insinto /usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)
+ doins cloudshark.lua json.lua
+ newins cloudshark_init.default cloudshark_init.lua
+ dodoc README.md
+}
diff --git a/net-analyzer/cloudshark/files/cs_log_dir.patch b/net-analyzer/cloudshark/files/cs_log_dir.patch
new file mode 100644
index 000000000000..9b0424e3cd44
--- /dev/null
+++ b/net-analyzer/cloudshark/files/cs_log_dir.patch
@@ -0,0 +1,13 @@
+diff -Naur cloudshark-1.0.2-174-orig/cloudshark.lua cloudshark-1.0.2-174/cloudshark.lua
+--- cloudshark-1.0.2-174-orig/cloudshark.lua 2013-06-03 00:00:46.669223099 -0400
++++ cloudshark-1.0.2-174/cloudshark.lua 2013-06-03 00:01:31.493224300 -0400
+@@ -180,7 +180,8 @@
+ --
+
+ function cs_log_dir()
+- return persconffile_path('plugins/cloudshark')
++ local log_dir = "/tmp"
++ return log_dir
+ end
+
+ --
diff --git a/net-analyzer/cloudshark/metadata.xml b/net-analyzer/cloudshark/metadata.xml
new file mode 100644
index 000000000000..bbafcdbcbb95
--- /dev/null
+++ b/net-analyzer/cloudshark/metadata.xml
@@ -0,0 +1,11 @@
+<?xml version='1.0' encoding='UTF-8'?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+ <maintainer type="person">
+ <email>zerochaos@gentoo.org</email>
+ <name>Rick Farina</name>
+ </maintainer>
+ <upstream>
+ <remote-id type="github">cloudshark/wireshark-plugin</remote-id>
+ </upstream>
+</pkgmetadata>