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