Gentoo Archives: gentoo-commits

From: "Richard Farina (zerochaos)" <zerochaos@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/cloudshark: metadata.xml cloudshark-1.0.2.174.ebuild ChangeLog
Date: Mon, 03 Jun 2013 04:11:11
Message-Id: 20130603041105.CE0E62171D@flycatcher.gentoo.org
1 zerochaos 13/06/03 04:11:05
2
3 Added: metadata.xml cloudshark-1.0.2.174.ebuild ChangeLog
4 Log:
5 cloudshark initial commit
6
7 (Portage version: 2.1.11.62/cvs/Linux x86_64, signed Manifest commit with key DD11F94A)
8
9 Revision Changes Path
10 1.1 net-analyzer/cloudshark/metadata.xml
11
12 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cloudshark/metadata.xml?rev=1.1&view=markup
13 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cloudshark/metadata.xml?rev=1.1&content-type=text/plain
14
15 Index: metadata.xml
16 ===================================================================
17 <?xml version="1.0" encoding="UTF-8"?>
18 <!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
19 <pkgmetadata>
20 <maintainer>
21 <email>zerochaos@g.o</email>
22 <name>Rick Farina</name>
23 </maintainer>
24 <herd>netmon</herd>
25 <longdescription lang="en">
26 </longdescription>
27 </pkgmetadata>
28
29
30
31
32 1.1 net-analyzer/cloudshark/cloudshark-1.0.2.174.ebuild
33
34 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cloudshark/cloudshark-1.0.2.174.ebuild?rev=1.1&view=markup
35 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cloudshark/cloudshark-1.0.2.174.ebuild?rev=1.1&content-type=text/plain
36
37 Index: cloudshark-1.0.2.174.ebuild
38 ===================================================================
39 # Copyright 1999-2013 Gentoo Foundation
40 # Distributed under the terms of the GNU General Public License v2
41 # $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 $
42
43 EAPI=5
44
45 inherit eutils multilib
46
47 SV="1.0.2-174"
48
49 DESCRIPTION="Instantly Upload Your WIRESHARK CAPTURES to CloudShark."
50 HOMEPAGE="http://appliance.cloudshark.org/plug-ins-wireshark.html"
51 SRC_URI="http://appliance.cloudshark.org/downloads/${PN}-plugin-${SV}.tgz"
52
53 LICENSE="GPL-2"
54 SLOT="0"
55 KEYWORDS="~amd64 ~arm ~x86"
56 IUSE=""
57
58 PDEPEND="net-analyzer/wireshark:=[lua]
59 net-misc/curl"
60
61 S="${WORKDIR}/${PN}-${SV}"
62
63 get_PV() { local pv=$(best_version $1); pv=${pv#$1-}; pv=${pv%-r*}; pv=${pv//_}; echo ${pv}; }
64
65 src_prepare() {
66 #cloudshark isn't meant to be installed systemwide, most of this is caused by that fact
67 epatch "${FILESDIR}"/cs_log_dir.patch
68
69 sed -i "s#%s/cloudshark_init.lua#/usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)/cloudshark_init.lua#" cloudshark.lua
70 #the echo line seemed a cleaner solution but it causes errors, looks like it expects windows paths only
71 #echo "CLOUDSHARK_CABUNDLE = /usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)/curl-ca-bundle.crt" >> cloudshark_init.default
72 sed -i "s#%s/curl-ca-bundle.crt#/usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)/curl-ca-bundle.crt#" cloudshark.lua
73
74 #stuff to fix cloudshark_init.default to be more sane
75 #sed -i 's#CLOUDSHARK_TSHARK = "n"#CLOUDSHARK_TSHARK = "y"#' cloudshark_init.default (tshark support doesn't seem to work)
76 }
77
78 src_test() {
79 [ "md5sum install-unix" -ne "405cb4dd526bf5261bbb56714baa67f0 install-unix" ] && die "install instructions have changed"
80 }
81
82 src_install() {
83 insinto /usr/$(get_libdir)/wireshark/plugins/$(get_PV net-analyzer/wireshark)
84 doins cloudshark.lua json.lua version.lua curl-ca-bundle.crt
85 newins cloudshark_init.default cloudshark_init.lua
86 dodoc CLOUDSHARK_README.txt
87 }
88
89
90
91 1.1 net-analyzer/cloudshark/ChangeLog
92
93 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cloudshark/ChangeLog?rev=1.1&view=markup
94 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/cloudshark/ChangeLog?rev=1.1&content-type=text/plain
95
96 Index: ChangeLog
97 ===================================================================
98 # ChangeLog for net-analyzer/cloudshark
99 # Copyright 1999-2013 Gentoo Foundation; Distributed under the GPL v2
100 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/cloudshark/ChangeLog,v 1.1 2013/06/03 04:11:05 zerochaos Exp $
101
102 *cloudshark-1.0.2.174 (03 Jun 2013)
103
104 03 Jun 2013; Rick Farina <zerochaos@g.o> +cloudshark-1.0.2.174.ebuild,
105 +files/cs_log_dir.patch, +metadata.xml:
106 cloudshark initial commit