Gentoo Archives: gentoo-commits

From: "Peter Volkov (pva)" <pva@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/metasploit: metasploit-2.7.ebuild metasploit-3.0-r1.ebuild ChangeLog metasploit-3.1.ebuild metasploit-2.6.ebuild
Date: Wed, 30 Jan 2008 15:40:03
Message-Id: E1JKF2d-0001HD-SK@stork.gentoo.org
1 pva 08/01/30 15:39:59
2
3 Modified: metasploit-2.7.ebuild metasploit-3.0-r1.ebuild
4 ChangeLog
5 Added: metasploit-3.1.ebuild
6 Removed: metasploit-2.6.ebuild
7 Log:
8 Version bump.
9 (Portage version: 2.1.4_rc14)
10
11 Revision Changes Path
12 1.6 net-analyzer/metasploit/metasploit-2.7.ebuild
13
14 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/metasploit-2.7.ebuild?rev=1.6&view=markup
15 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/metasploit-2.7.ebuild?rev=1.6&content-type=text/plain
16 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/metasploit-2.7.ebuild?r1=1.5&r2=1.6
17
18 Index: metasploit-2.7.ebuild
19 ===================================================================
20 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-2.7.ebuild,v
21 retrieving revision 1.5
22 retrieving revision 1.6
23 diff -u -r1.5 -r1.6
24 --- metasploit-2.7.ebuild 7 Feb 2007 20:44:41 -0000 1.5
25 +++ metasploit-2.7.ebuild 30 Jan 2008 15:39:59 -0000 1.6
26 @@ -1,6 +1,6 @@
27 -# Copyright 1999-2007 Gentoo Foundation
28 +# Copyright 1999-2008 Gentoo Foundation
29 # Distributed under the terms of the GNU General Public License v2
30 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-2.7.ebuild,v 1.5 2007/02/07 20:44:41 blubb Exp $
31 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-2.7.ebuild,v 1.6 2008/01/30 15:39:59 pva Exp $
32
33 MY_P="${P/metasploit/framework}"
34 S="${WORKDIR}/${MY_P}"
35 @@ -23,15 +23,15 @@
36 dodir /usr/bin/
37
38 # should be as simple as copying everything into the target...
39 - cp -pPR ${S} ${D}usr/lib/metasploit || die
40 + cp -pPR "${S}" "${D}"usr/lib/metasploit || die
41
42 # and creating symlinks in the /usr/bin dir
43 - cd ${D}/usr/bin
44 + cd "${D}"/usr/bin
45 ln -s ../lib/metasploit/msf* ./ || die
46 - chown -R root:0 ${D}
47 + chown -R root:0 "${D}"
48
49 - newinitd ${FILESDIR}/msfweb.initd msfweb || die "newinitd failed"
50 - newconfd ${FILESDIR}/msfweb.confd msfweb || die "newconfd failed"
51 + newinitd "${FILESDIR}"/msfweb.initd msfweb || die "newinitd failed"
52 + newconfd "${FILESDIR}"/msfweb.confd msfweb || die "newconfd failed"
53 }
54
55 pkg_postinst() {
56
57
58
59 1.2 net-analyzer/metasploit/metasploit-3.0-r1.ebuild
60
61 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/metasploit-3.0-r1.ebuild?rev=1.2&view=markup
62 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/metasploit-3.0-r1.ebuild?rev=1.2&content-type=text/plain
63 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/metasploit-3.0-r1.ebuild?r1=1.1&r2=1.2
64
65 Index: metasploit-3.0-r1.ebuild
66 ===================================================================
67 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-3.0-r1.ebuild,v
68 retrieving revision 1.1
69 retrieving revision 1.2
70 diff -u -r1.1 -r1.2
71 --- metasploit-3.0-r1.ebuild 13 Oct 2007 18:14:55 -0000 1.1
72 +++ metasploit-3.0-r1.ebuild 30 Jan 2008 15:39:59 -0000 1.2
73 @@ -1,6 +1,6 @@
74 -# Copyright 1999-2007 Gentoo Foundation
75 +# Copyright 1999-2008 Gentoo Foundation
76 # Distributed under the terms of the GNU General Public License v2
77 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-3.0-r1.ebuild,v 1.1 2007/10/13 18:14:55 cedk Exp $
78 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-3.0-r1.ebuild,v 1.2 2008/01/30 15:39:59 pva Exp $
79
80 inherit eutils
81
82 @@ -48,7 +48,7 @@
83 dodir /usr/bin/
84
85 # remove the subversion directories
86 - find ${S} -type d -name ".svn" | xargs rm -R
87 + find "${S}" -type d -name ".svn" | xargs rm -R
88
89 # should be as simple as copying everything into the target...
90 dodir /usr/lib/metasploit${SLOT}
91 @@ -59,7 +59,7 @@
92 dosym /usr/lib/metasploit${SLOT}/${file} /usr/bin/${file}${SLOT}
93 done
94
95 - chown -R root:root ${D}
96 + chown -R root:0 "${D}"
97
98 if use httpd; then
99 newinitd "${FILESDIR}"/msfweb${SLOT}.initd msfweb${SLOT} \
100
101
102
103 1.25 net-analyzer/metasploit/ChangeLog
104
105 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/ChangeLog?rev=1.25&view=markup
106 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/ChangeLog?rev=1.25&content-type=text/plain
107 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/ChangeLog?r1=1.24&r2=1.25
108
109 Index: ChangeLog
110 ===================================================================
111 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v
112 retrieving revision 1.24
113 retrieving revision 1.25
114 diff -u -r1.24 -r1.25
115 --- ChangeLog 13 Oct 2007 18:14:55 -0000 1.24
116 +++ ChangeLog 30 Jan 2008 15:39:59 -0000 1.25
117 @@ -1,6 +1,12 @@
118 # ChangeLog for net-analyzer/metasploit
119 -# Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
120 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.24 2007/10/13 18:14:55 cedk Exp $
121 +# Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
122 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.25 2008/01/30 15:39:59 pva Exp $
123 +
124 +*metasploit-3.1 (30 Jan 2008)
125 +
126 + 30 Jan 2008; <pva@g.o> -metasploit-2.6.ebuild,
127 + metasploit-2.7.ebuild, metasploit-3.0-r1.ebuild, +metasploit-3.1.ebuild:
128 + Version bump.
129
130 *metasploit-3.0-r1 (13 Oct 2007)
131
132
133
134
135 1.1 net-analyzer/metasploit/metasploit-3.1.ebuild
136
137 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/metasploit-3.1.ebuild?rev=1.1&view=markup
138 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/metasploit-3.1.ebuild?rev=1.1&content-type=text/plain
139
140 Index: metasploit-3.1.ebuild
141 ===================================================================
142 # Copyright 1999-2008 Gentoo Foundation
143 # Distributed under the terms of the GNU General Public License v2
144 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-3.1.ebuild,v 1.1 2008/01/30 15:39:59 pva Exp $
145
146 MY_P=${PN/metasploit/framework}-${PV}
147 S=${WORKDIR}/${MY_P}
148
149 DESCRIPTION="The Metasploit Framework is an advanced open-source platform for developing, testing, and using vulnerability exploit code."
150 HOMEPAGE="http://www.metasploit.org/"
151 SRC_URI="${MY_P}.tar.gz"
152
153 LICENSE="MSF-1.2"
154 SLOT="3"
155 KEYWORDS="~amd64 ~ppc ~x86"
156 RESTRICT="fetch"
157 IUSE="gtk sqlite sqlite3 postgres httpd"
158
159 RDEPEND="dev-lang/ruby
160 gtk? ( dev-ruby/ruby-libglade2 )
161 httpd? ( =dev-ruby/rails-1.2* )
162 sqlite? ( dev-ruby/sqlite-ruby
163 dev-ruby/activerecord )
164 sqlite3? ( dev-ruby/sqlite3-ruby
165 dev-ruby/activerecord )
166 postgres? ( dev-ruby/ruby-postgres
167 dev-ruby/activerecord )"
168 DEPEND=""
169
170 pkg_nofetch() {
171 # Fetch restricted due to license acceptation
172 einfo "Please download the framework from:"
173 einfo "http://metasploit.com/projects/Framework/msf3/download.html?Release=${MY_P}.tar.gz"
174 einfo "and move it to ${DISTDIR}"
175 }
176
177 src_compile() {
178 sed -i \
179 -e "s/RAILS_GEM_VERSION = '1.2.2'/RAILS_GEM_VERSION = '1.2'/" \
180 data/msfweb/config/environment.rb || die "sed failed"
181 }
182
183 src_install() {
184 # remove the subversion directories
185 find "${S}" -type d -name ".svn" | xargs rm -R
186
187 # should be as simple as copying everything into the target...
188 dodir /usr/lib/metasploit${SLOT}
189 cp -R "${S}"/* "${D}"/usr/lib/metasploit${SLOT} || die "Copy files failed"
190 rm -Rf "${D}"/usr/lib/metasploit${SLOT}/documentation "${D}"/README
191
192 rm "${S}"/documentation/LICENSE
193 dodir /usr/share/doc/${PF}
194 cp -R "${S}"/{documentation,README} "${D}"/usr/share/doc/${PF}
195
196 dodir /usr/bin/
197 for file in `ls msf*`; do
198 dosym /usr/lib/metasploit${SLOT}/${file} /usr/bin/${file}${SLOT}
199 done
200
201 chown -R root:0 "${D}"
202
203 if use httpd; then
204 newinitd "${FILESDIR}"/msfweb${SLOT}.initd msfweb${SLOT} \
205 || die "newinitd failed"
206 newconfd "${FILESDIR}"/msfweb${SLOT}.confd msfweb${SLOT} \
207 || die "newconfd failed"
208 fi
209 }
210
211
212
213 --
214 gentoo-commits@l.g.o mailing list