Gentoo Archives: gentoo-commits

From: "Patrick Lauer (patrick)" <patrick@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/metasploit: metasploit-4.0.0.ebuild ChangeLog metasploit-9999.ebuild metadata.xml
Date: Wed, 03 Aug 2011 05:56:27
Message-Id: 20110803055615.A8FA02004C@flycatcher.gentoo.org
1 patrick 11/08/03 05:56:15
2
3 Modified: ChangeLog metadata.xml
4 Added: metasploit-4.0.0.ebuild metasploit-9999.ebuild
5 Log:
6 Bump to 4.0, includes lots of nice ebuild improvements from #342013
7
8 (Portage version: 2.2.0_alpha49/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.56 net-analyzer/metasploit/ChangeLog
12
13 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/metasploit/ChangeLog?rev=1.56&view=markup
14 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/metasploit/ChangeLog?rev=1.56&content-type=text/plain
15 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/metasploit/ChangeLog?r1=1.55&r2=1.56
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v
20 retrieving revision 1.55
21 retrieving revision 1.56
22 diff -u -r1.55 -r1.56
23 --- ChangeLog 7 May 2011 17:01:11 -0000 1.55
24 +++ ChangeLog 3 Aug 2011 05:56:15 -0000 1.56
25 @@ -1,6 +1,14 @@
26 # ChangeLog for net-analyzer/metasploit
27 # Copyright 1999-2011 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.55 2011/05/07 17:01:11 patrick Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.56 2011/08/03 05:56:15 patrick Exp $
30 +
31 +*metasploit-9999 (03 Aug 2011)
32 +*metasploit-4.0.0 (03 Aug 2011)
33 +
34 + 03 Aug 2011; Patrick Lauer <patrick@g.o> +metasploit-4.0.0.ebuild,
35 + +files/msfrpcd-4.0-conf, +files/msfrpcd-4.0-initd, +metasploit-9999.ebuild,
36 + +files/metasploit.icon, metadata.xml:
37 + Bump to 4.0, includes lots of nice ebuild improvements from #342013
38
39 *metasploit-3.7.0 (07 May 2011)
40
41
42
43
44 1.5 net-analyzer/metasploit/metadata.xml
45
46 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/metasploit/metadata.xml?rev=1.5&view=markup
47 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/metasploit/metadata.xml?rev=1.5&content-type=text/plain
48 diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/metasploit/metadata.xml?r1=1.4&r2=1.5
49
50 Index: metadata.xml
51 ===================================================================
52 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metadata.xml,v
53 retrieving revision 1.4
54 retrieving revision 1.5
55 diff -u -r1.4 -r1.5
56 --- metadata.xml 28 Sep 2009 19:51:54 -0000 1.4
57 +++ metadata.xml 3 Aug 2011 05:56:15 -0000 1.5
58 @@ -14,4 +14,7 @@
59 Framework was designed to facilitate research and experimentation with
60 new technologies.
61 </longdescription>
62 + <use>
63 + <flag name='gui'>Enable Java GUI</flag>
64 + </use>
65 </pkgmetadata>
66
67
68
69 1.1 net-analyzer/metasploit/metasploit-4.0.0.ebuild
70
71 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/metasploit/metasploit-4.0.0.ebuild?rev=1.1&view=markup
72 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/metasploit/metasploit-4.0.0.ebuild?rev=1.1&content-type=text/plain
73
74 Index: metasploit-4.0.0.ebuild
75 ===================================================================
76 # Copyright 1999-2011 Gentoo Foundation
77 # Distributed under the terms of the GNU General Public License v2
78 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-4.0.0.ebuild,v 1.1 2011/08/03 05:56:15 patrick Exp $
79
80 EAPI="3"
81 inherit eutils
82
83 SRC_URI="http://updates.metasploit.com/data/releases/framework-${PV}.tar.bz2"
84
85 DESCRIPTION="Advanced open-source framework for developing, testing, and using vulnerability exploit code"
86 HOMEPAGE="http://www.metasploit.org/"
87
88 LICENSE="BSD"
89 SLOT="4.0"
90 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
91 IUSE="gui mysql postgres"
92
93 # Note we use bundled gems (see data/msfweb/vendor/rails/) as upstream voted for
94 # such solution, bug #247787
95 RDEPEND="dev-lang/ruby
96 dev-ruby/rubygems
97 gui? ( virtual/jre )
98 mysql? ( dev-ruby/mysql-ruby
99 dev-ruby/activerecord[mysql] )
100 postgres? ( dev-ruby/ruby-postgres
101 dev-ruby/activerecord[postgres] )"
102 DEPEND=""
103
104 QA_PRESTRIPPED="
105 usr/lib/${PN}${SLOT}/data/msflinker_linux_x86.bin
106 usr/lib/${PN}${SLOT}/data/templates/template_armle_linux.bin
107 usr/lib/${PN}${SLOT}/data/templates/template_x86_linux.bin"
108
109 QA_EXECSTACK="
110 usr/lib/${PN}${SLOT}/data/meterpreter/msflinker_linux_x86.bin"
111 QA_WX_LOAD="
112 usr/lib/${PN}${SLOT}/data/templates/template_*_linux.bin"
113
114 S=${WORKDIR}/msf3
115
116 src_configure() {
117 rm "${S}"/msfupdate
118 chmod +x "${S}"/msf*
119
120 use gui || rm msfgui
121 }
122
123 src_install() {
124 # should be as simple as copying everything into the target...
125 dodir /usr/lib/${PN}${SLOT}
126 cp -R "${S}"/* "${D}"/usr/lib/${PN}${SLOT}
127 chown -R root:0 "${D}"
128
129 # do not remove LICENSE, bug #238137
130 dodir /usr/share/doc/${PF}
131 cp "${S}"/{README,HACKING} "${D}"/usr/share/doc/${PF}
132 dosym /usr/lib/${PN}${SLOT}/documentation /usr/share/doc/${PF}/documentation
133
134 dodir /usr/bin/
135 for file in msf*; do
136 dosym /usr/lib/${PN}${SLOT}/${file} /usr/bin/${file}${SLOT}
137 done
138
139 newinitd "${FILESDIR}"/msfrpcd-${SLOT}-initd msfrpcd${SLOT} || die
140 newconfd "${FILESDIR}"/msfrpcd-${SLOT}-conf msfrpcd${SLOT} || die
141
142 use gui && make_desktop_entry msfgui${SLOT} \
143 "Metasploit Framework" \
144 metasploit \
145 'GNOME;System;Network;' &&
146 doicon "${FILESDIR}"/metasploit.xpm
147 }
148
149 pkg_postinst() {
150 if use gui; then
151 elog "You will need to create a /usr/bin/msfrpcd symlink pointing to"
152 elog "the version of msfrpcd if you want to be able to start msfrpcd"
153 elog "from the java gui."
154 elog
155 elog "ln /usr/bin/msfrpcd${SLOT} /usr/bin/msfrpcd"
156 elog
157 fi
158 }
159
160
161
162 1.1 net-analyzer/metasploit/metasploit-9999.ebuild
163
164 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/metasploit/metasploit-9999.ebuild?rev=1.1&view=markup
165 plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/metasploit/metasploit-9999.ebuild?rev=1.1&content-type=text/plain
166
167 Index: metasploit-9999.ebuild
168 ===================================================================
169 # Copyright 1999-2011 Gentoo Foundation
170 # Distributed under the terms of the GNU General Public License v2
171 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-9999.ebuild,v 1.1 2011/08/03 05:56:15 patrick Exp $
172
173 EAPI="3"
174 inherit eutils subversion
175
176 ESVN_REPO_URI="https://metasploit.com/svn/framework3/trunk"
177
178 DESCRIPTION="Advanced open-source framework for developing, testing, and using vulnerability exploit code"
179 HOMEPAGE="http://www.metasploit.org/"
180
181 LICENSE="BSD"
182 SLOT="4.0"
183 KEYWORDS=""
184 IUSE="gui mysql postgres"
185
186 # Note we use bundled gems (see data/msfweb/vendor/rails/) as upstream voted for
187 # such solution, bug #247787
188 RDEPEND="dev-lang/ruby
189 dev-ruby/rubygems
190 gui? ( virtual/jre )
191 mysql? ( dev-ruby/mysql-ruby
192 dev-ruby/activerecord[mysql] )
193 postgres? ( dev-ruby/ruby-postgres
194 dev-ruby/activerecord[postgres] )"
195 DEPEND=""
196
197 QA_PRESTRIPPED="
198 usr/lib/${PN}${SLOT}/data/msflinker_linux_x86.bin
199 usr/lib/${PN}${SLOT}/data/templates/template_armle_linux.bin
200 usr/lib/${PN}${SLOT}/data/templates/template_x86_linux.bin"
201
202 QA_EXECSTACK="
203 usr/lib/${PN}${SLOT}/data/meterpreter/msflinker_linux_x86.bin"
204 QA_WX_LOAD="
205 usr/lib/${PN}${SLOT}/data/templates/template_*_linux.bin"
206
207 S=${WORKDIR}/msf3
208
209 src_unpack() {
210 subversion_fetch
211 }
212
213 src_configure() {
214 [[ "${ESVN_REVISION}" == "" ]] \
215 && find "${S}" -type d -name ".svn" -print0 | xargs -0 -n1 rm -R
216
217 rm "${S}"/msfupdate
218 chmod +x "${S}"/msf*
219
220 use gui || rm msfgui
221 }
222
223 src_install() {
224 # should be as simple as copying everything into the target...
225 dodir /usr/lib/${PN}${SLOT}
226 cp -R "${S}"/* "${D}"/usr/lib/${PN}${SLOT}
227 chown -R root:0 "${D}"
228
229 # do not remove LICENSE, bug #238137
230 dodir /usr/share/doc/${PF}
231 cp "${S}"/{README,HACKING} "${D}"/usr/share/doc/${PF}
232 dosym /usr/lib/${PN}${SLOT}/documentation /usr/share/doc/${PF}/documentation
233
234 dodir /usr/bin/
235 for file in msf*; do
236 dosym /usr/lib/${PN}${SLOT}/${file} /usr/bin/${file}${SLOT}
237 done
238
239 newinitd "${FILESDIR}"/msfrpcd-${SLOT}-initd msfrpcd${SLOT} || die
240 newconfd "${FILESDIR}"/msfrpcd-${SLOT}-conf msfrpcd${SLOT} || die
241
242 use gui && make_desktop_entry msfgui${SLOT} \
243 "Metasploit Framework" \
244 metasploit \
245 'GNOME;System;Network;' &&
246 doicon "${FILESDIR}"/metasploit.xpm
247 }
248
249 pkg_postinst() {
250 if use gui; then
251 elog "You will need to create a /usr/bin/msfrpcd symlink pointing to"
252 elog "the version of msfrpcd if you want to be able to start msfrpcd"
253 elog "from the java gui."
254 elog
255 elog "ln /usr/bin/msfrpcd${SLOT} /usr/bin/msfrpcd"
256 elog
257 fi
258
259 elog "If you wish to update ${PN} manually simply run:"
260 elog
261 elog "ESVN_REVISION=<rev> emerge =${PF}"
262 elog
263 elog "where <rev> is either HEAD (in case you wish to get all updates)"
264 elog "or specific revision number. But NOTE, this update will vanish"
265 elog "next time you reemerge ${PN}. To make update permanent either"
266 elog "create ebuild with specific revision number inside your overlay"
267 elog "or report revision bump bug at http://bugs.gentoo.org ."
268 elog
269 elog "In case you use portage it's also possible to create"
270 elog "/etc/portage/env/${CATEGORY}/${PN} file with ESVN_REVISION=<rev>"
271 elog "content. Then each time you run emerge ${PN} you'll have said"
272 elog "<rev> installed. For example, if you run"
273 elog " # mkdir -p /etc/portage/env/${CATEGORY}"
274 elog " # echo ESVN_REVISION=HEAD >> /etc/portage/env/${CATEGORY}/${PN}"
275 elog "each time you reemerge ${PN} it'll be updated to get all possible"
276 elog "updates for framework-${PV%_p*} branch."
277 }