summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Farina <zerochaos@gentoo.org>2013-06-03 04:11:20 +0000
committerRichard Farina <zerochaos@gentoo.org>2013-06-03 04:11:20 +0000
commit8758ba7f269343eaa072bcdf0b33b8c60f52780c (patch)
treeb63cf3d5ffc62e9cf0f1ee502becf89e68bfbac0 /net-analyzer
parentBump (diff)
downloadhistorical-8758ba7f269343eaa072bcdf0b33b8c60f52780c.tar.gz
historical-8758ba7f269343eaa072bcdf0b33b8c60f52780c.tar.bz2
historical-8758ba7f269343eaa072bcdf0b33b8c60f52780c.zip
cloudshark initial commit
Package-Manager: portage-2.1.11.62/cvs/Linux x86_64 Manifest-Sign-Key: 0xDD11F94A
Diffstat (limited to 'net-analyzer')
-rw-r--r--net-analyzer/cloudshark/ChangeLog9
-rw-r--r--net-analyzer/cloudshark/Manifest25
-rw-r--r--net-analyzer/cloudshark/cloudshark-1.0.2.174.ebuild49
-rw-r--r--net-analyzer/cloudshark/files/cs_log_dir.patch13
-rw-r--r--net-analyzer/cloudshark/metadata.xml12
5 files changed, 108 insertions, 0 deletions
diff --git a/net-analyzer/cloudshark/ChangeLog b/net-analyzer/cloudshark/ChangeLog
new file mode 100644
index 000000000000..f6e8f93447bb
--- /dev/null
+++ b/net-analyzer/cloudshark/ChangeLog
@@ -0,0 +1,9 @@
+# ChangeLog for net-analyzer/cloudshark
+# Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cloudshark/ChangeLog,v 1.1 2013/06/03 04:11:05 zerochaos Exp $
+
+*cloudshark-1.0.2.174 (03 Jun 2013)
+
+ 03 Jun 2013; Rick Farina <zerochaos@gentoo.org> +cloudshark-1.0.2.174.ebuild,
+ +files/cs_log_dir.patch, +metadata.xml:
+ cloudshark initial commit
diff --git a/net-analyzer/cloudshark/Manifest b/net-analyzer/cloudshark/Manifest
new file mode 100644
index 000000000000..2f02003f2308
--- /dev/null
+++ b/net-analyzer/cloudshark/Manifest
@@ -0,0 +1,25 @@
+-----BEGIN PGP SIGNED MESSAGE-----
+Hash: SHA512
+
+AUX cs_log_dir.patch 402 SHA256 7f8e9bc482c4e83dadf617386b769e11d6a56428c4ba7c270bae63cc37f81dfa SHA512 2cd7fa2b25befeaa6ed2474ed8149e34e4115d7c0105501a9c27547a3dfff7fa4bb6dab60749b17b22f5d13bf247f3276d9217b4f2041db7ee9c0d734108d6a9 WHIRLPOOL 4547b19f333c143d9fae7c550ac1d6d057fb69e0e8ead6600c94dc5cd776815c0bd99f86097c3549ebf01ade5a1fa259bf8a5b576c580f6ab4163cd97e0dda6f
+DIST cloudshark-plugin-1.0.2-174.tgz 143067 SHA256 d5918e9e3dc60059bdc40d436409c18197df428266863d90367a762f08c3623e SHA512 42445e67630b1bd2968f0836f625acb3792f22257de104ec0b90c59fa8d2096649eba2252cd6161ce57c8ff79095d52c5663d2fa018c650667896c9905e9dd7e WHIRLPOOL 01f3f6bc87b3f09645d2fef953d84b7ba3828f960d7e9bb952bf18cbeb8422beb63cee21355434f392727795b0462e59fd2b07549cce6048e689e5e02bcdd19d
+EBUILD cloudshark-1.0.2.174.ebuild 1980 SHA256 23b93fd1085c3e7b7178571abe2d832de1049babe9e65926297815a62144829f SHA512 2b05ada1cb8555feb8f891ce032662f3c18a8ec3ee77de561551279829b9e4af312fa63bf0c002e0bbabd8592f400bbd0b151233317ba413a36ff92e30e507e2 WHIRLPOOL 914e48dc7e6cd6aa667c8c5d1abb859c026c6f7b894fddc98a0a7f299413fbcf4a20fc9ea222a78bae604d87dd85d3d7bee1f569cd29a81bbf3a2c7f6c0f04e3
+MISC ChangeLog 409 SHA256 9e591d75608dec2f201589c82e480c3e46df802e34face4b0090e445e00fd6d0 SHA512 fd1192a7cbe69abc73aca7bc65aec3c76b1a9447a7db0074981cd14aec6fefe1b1cb1599e917d06ba190284bbfc0f9c238d58d8fac0187639afc957a2bea3ea2 WHIRLPOOL 034dff2516f501a344b12200edb357c34baa143d83b567e98bec0e933c580e21402733dc8bf6e19373e6a4f4121da27d13965fe505b497b0c000a6d53623d0f9
+MISC metadata.xml 295 SHA256 afd395012b7c97a7ee18cbce5a6840f5adeae30738838d5f42eeccb387b0f9ef SHA512 6df65f41b19e55bef435c4db618536b03bd0c81d3d5aade8c17d71d17b76c63b245aa1c50176de673b37d3f8506156058bff6add740948137776f272bb79b556 WHIRLPOOL dc1de3ee50e67cb4fed66bd54cdcdea263c2992daf2e2f2bdd135e4a9eea24a5d359b4b0d2cbdb33411a7d891513cb1a16b8fb0b38c430618bd100c28ea18769
+-----BEGIN PGP SIGNATURE-----
+Version: GnuPG v2.0.19 (GNU/Linux)
+
+iQIcBAEBCgAGBQJRrBeSAAoJEKXdFCfdEflK5akP/RYJ8bfFlivZXg3LZfWWWuwX
+PxhaaTpxWWXT15jdB4Mm7y6zkdw02asWe9KwDBF7DP2y0ib1+ARFGDlR7HbhSmwF
+4aP2QRdUPlwNnFr082XPYf/ZqTaFXwIEMDtPoqaYxxbVayNbGhnWV/VtZpmtvOon
+Srd4nBT3ZkyCF07/wjud6RtEOfQ/6iQUQTyK6naS6i7MxdBvJwM3f35/zlnkLZTO
+/3CcWnhb8/RncCUdu12NroLJSJJw8gGue/b1pkhxnZgd4DzahwLt7NpvJkEL5Tq+
+pLIHN/t3n5wYYBrIRozTuX4ooi0uiCs/QjdW+Eu4LlGjVXGVv9c5vUT3cd9U/rvQ
+HSBMZCQW21fE8bmafB6LpB/oKriC3DJVaRVmEEGLLg4lJ7Sxh0sf25b+6iea7ZbN
+EUkXPLE711Jw9FB5UzVGX841KSdgijl3PU1dWBoRTWBU+TAaC5o6VgbEW24vDXDn
+ZG+l8Ed/DPgj+JM12VH+rFcE6+K4lWZ2UeM2Zl2QFQAchJdrXkVybIZb8uWGFCKC
+LibGwOEUk6VSOWyVQ49Frb5hJbyzklaNPzZyPAul3DqUGbA7Ffsxt6UxogIu1v0o
+oG/0dyUiJngMCdXurEk1eJv0LJvMz6BPqdm7PVwlGXNW7Yz/1aQsr3aiACvItvVQ
+0qrMgXBH2M2fNJijl+B3
+=0CFr
+-----END PGP SIGNATURE-----
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..137e58845fa6
--- /dev/null
+++ b/net-analyzer/cloudshark/cloudshark-1.0.2.174.ebuild
@@ -0,0 +1,49 @@
+# Copyright 1999-2013 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/cloudshark/cloudshark-1.0.2.174.ebuild,v 1.1 2013/06/03 04:11:05 zerochaos Exp $
+
+EAPI=5
+
+inherit eutils multilib
+
+SV="1.0.2-174"
+
+DESCRIPTION="Instantly 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, most of this is caused by that fact
+ 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
+ #the echo line seemed a cleaner solution but it 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_test() {
+ [ "md5sum install-unix" -ne "405cb4dd526bf5261bbb56714baa67f0 install-unix" ] && die "install instructions have changed"
+}
+
+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/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..8c85303e2d1e
--- /dev/null
+++ b/net-analyzer/cloudshark/metadata.xml
@@ -0,0 +1,12 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+<maintainer>
+<email>zerochaos@gentoo.org</email>
+<name>Rick Farina</name>
+</maintainer>
+<herd>netmon</herd>
+<longdescription lang="en">
+</longdescription>
+</pkgmetadata>
+