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: ChangeLog metasploit-3.3.3.ebuild metasploit-3.2_p6750.ebuild
Date: Mon, 01 Mar 2010 12:52:58
Message-Id: E1Nm57F-0003NA-Fg@stork.gentoo.org
1 patrick 10/03/01 12:52:53
2
3 Modified: ChangeLog
4 Added: metasploit-3.3.3.ebuild
5 Removed: metasploit-3.2_p6750.ebuild
6 Log:
7 Bump to 3.3.3, fixes #277405 #282501 #296157
8 (Portage version: 2.2_rc63/cvs/Linux x86_64)
9
10 Revision Changes Path
11 1.49 net-analyzer/metasploit/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/ChangeLog?rev=1.49&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/ChangeLog?rev=1.49&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/ChangeLog?r1=1.48&r2=1.49
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v
20 retrieving revision 1.48
21 retrieving revision 1.49
22 diff -u -r1.48 -r1.49
23 --- ChangeLog 26 Sep 2009 23:05:40 -0000 1.48
24 +++ ChangeLog 1 Mar 2010 12:52:52 -0000 1.49
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-analyzer/metasploit
27 -# Copyright 1999-2009 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.48 2009/09/26 23:05:40 a3li Exp $
29 +# Copyright 1999-2010 Gentoo Foundation; Distributed under the GPL v2
30 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.49 2010/03/01 12:52:52 patrick Exp $
31 +
32 +*metasploit-3.3.3 (01 Mar 2010)
33 +
34 + 01 Mar 2010; Patrick Lauer <patrick@g.o> +files/msfweb3.3.confd,
35 + -metasploit-3.2_p6750.ebuild, +files/msfweb3.3.initd,
36 + +metasploit-3.3.3.ebuild:
37 + Bump to 3.3.3, fixes #277405 #282501 #296157
38
39 26 Sep 2009; Alex Legler <a3li@g.o>
40 -metasploit-3.1_p5699-r1.ebuild:
41
42
43
44 1.1 net-analyzer/metasploit/metasploit-3.3.3.ebuild
45
46 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/metasploit-3.3.3.ebuild?rev=1.1&view=markup
47 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/metasploit-3.3.3.ebuild?rev=1.1&content-type=text/plain
48
49 Index: metasploit-3.3.3.ebuild
50 ===================================================================
51 # Copyright 1999-2010 Gentoo Foundation
52 # Distributed under the terms of the GNU General Public License v2
53 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-3.3.3.ebuild,v 1.1 2010/03/01 12:52:52 patrick Exp $
54
55 SRC_URI="http://www.metasploit.com/releases/framework-${PV}.tar.bz2"
56
57 DESCRIPTION="Advanced open-source framework for developing, testing, and using vulnerability exploit code"
58 HOMEPAGE="http://www.metasploit.org/"
59
60 LICENSE="BSD"
61 SLOT="3.3"
62 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
63 IUSE="gtk sqlite postgres"
64
65 # Note we use bundled gems (see data/msfweb/vendor/rails/) as upstream voted for
66 # such solution, bug #247787
67 RDEPEND="dev-lang/ruby
68 dev-ruby/rubygems
69 gtk? ( dev-ruby/ruby-libglade2 )
70 sqlite? ( dev-ruby/sqlite3-ruby
71 dev-ruby/activerecord )
72 postgres? ( dev-ruby/ruby-postgres
73 dev-ruby/activerecord )"
74 DEPEND=""
75
76 S=${WORKDIR}/msf3
77
78 src_install() {
79 if [[ "${SRC_URI}" != "" ]] ; then
80 # svn sources...
81 find "${S}" -type d -name ".svn" -print0 | xargs -0 -n1 rm -R
82 fi
83
84 # should be as simple as copying everything into the target...
85 dodir /usr/lib/${PN}${SLOT}
86 cp -R "${S}"/* "${D}"/usr/lib/${PN}${SLOT} || die "Copy files failed"
87
88 # do not remove LICENSE, bug #238137
89 dodir /usr/share/doc/${PF}
90 cp -R "${S}"/{documentation,README} "${D}"/usr/share/doc/${PF}
91 rm -Rf "${D}"/usr/lib/${PN}${SLOT}/documentation "${D}"/usr/lib/${PN}${SLOT}/README
92 dosym /usr/share/doc/${PF}/documentation /usr/lib/${PN}${SLOT}/documentation
93
94 dodir /usr/bin/
95 use gtk || rm msfgui
96 for file in msf*; do
97 dosym /usr/lib/${PN}${SLOT}/${file} /usr/bin/${file}${SLOT}
98 done
99
100 chown -R root:0 "${D}"
101
102 newinitd "${FILESDIR}"/msfweb${SLOT}.initd msfweb${SLOT} \
103 || die "newinitd failed"
104 newconfd "${FILESDIR}"/msfweb${SLOT}.confd msfweb${SLOT} \
105 || die "newconfd failed"
106 }
107
108 pkg_postinst() {
109 if [[ "${SRC_URI}" == "" ]] ; then
110 elog "If you wish to update ${PN} manually simply run:"
111 elog
112 elog "ESVN_REVISION=<rev> emerge =${PF}"
113 elog
114 elog "where <rev> is either HEAD (in case you wish to get all updates)"
115 elog "or specific revision number. But NOTE, this update will vanish"
116 elog "next time you reemerge ${PN}. To make update permanent either"
117 elog "create ebuild with specific revision number inside your overlay"
118 elog "or report revision bump bug at http://bugs.gentoo.org ."
119 elog
120 elog "In case you use portage it's also possible to create"
121 elog "/etc/portage/env/${CATEGORY}/${PN} file with ESVN_REVISION=<rev>"
122 elog "content. Then each time you run emerge ${PN} you'll have said"
123 elog "<rev> installed. For example, if you run"
124 elog " # mkdir -p /etc/portage/env/${CATEGORY}"
125 elog " # echo ESVN_REVISION=HEAD >> /etc/portage/env/${CATEGORY}/${PN}"
126 elog "each time you reemerge ${PN} it'll be updated to get all possible"
127 elog "updates for framework-${PV%_p*} branch."
128 elog "You can do similar things in paludis using /etc/paludis/bashrc."
129 fi
130 }