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: ChangeLog metasploit-3.1_p5699-r1.ebuild metasploit-3.1_p5699.ebuild
Date: Sun, 05 Oct 2008 10:47:35
Message-Id: E1KmR96-0000aH-BG@stork.gentoo.org
1 pva 08/10/05 10:47:28
2
3 Modified: ChangeLog
4 Added: metasploit-3.1_p5699-r1.ebuild
5 Removed: metasploit-3.1_p5699.ebuild
6 Log:
7 Fixed remaining issue with Online link at msfgui3 and added symlink instead of sed to make about dialog happy, bug #238137.
8 (Portage version: 2.2_rc11/cvs/Linux 2.6.26-gentoo-r1 i686)
9
10 Revision Changes Path
11 1.41 net-analyzer/metasploit/ChangeLog
12
13 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/ChangeLog?rev=1.41&view=markup
14 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/ChangeLog?rev=1.41&content-type=text/plain
15 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/ChangeLog?r1=1.40&r2=1.41
16
17 Index: ChangeLog
18 ===================================================================
19 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v
20 retrieving revision 1.40
21 retrieving revision 1.41
22 diff -u -r1.40 -r1.41
23 --- ChangeLog 3 Oct 2008 12:15:27 -0000 1.40
24 +++ ChangeLog 5 Oct 2008 10:47:27 -0000 1.41
25 @@ -1,6 +1,13 @@
26 # ChangeLog for net-analyzer/metasploit
27 # Copyright 1999-2008 Gentoo Foundation; Distributed under the GPL v2
28 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.40 2008/10/03 12:15:27 pva Exp $
29 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.41 2008/10/05 10:47:27 pva Exp $
30 +
31 +*metasploit-3.1_p5699-r1 (05 Oct 2008)
32 +
33 + 05 Oct 2008; Peter Volkov <pva@g.o> -metasploit-3.1_p5699.ebuild,
34 + +metasploit-3.1_p5699-r1.ebuild:
35 + Fixed remaining issue with Online link at msfgui3 and added symlink
36 + instead of sed to make about dialog happy, bug #238137.
37
38 *metasploit-3.1_p5699 (03 Oct 2008)
39
40
41
42
43 1.1 net-analyzer/metasploit/metasploit-3.1_p5699-r1.ebuild
44
45 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/metasploit-3.1_p5699-r1.ebuild?rev=1.1&view=markup
46 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/metasploit-3.1_p5699-r1.ebuild?rev=1.1&content-type=text/plain
47
48 Index: metasploit-3.1_p5699-r1.ebuild
49 ===================================================================
50 # Copyright 1999-2008 Gentoo Foundation
51 # Distributed under the terms of the GNU General Public License v2
52 # $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-3.1_p5699-r1.ebuild,v 1.1 2008/10/05 10:47:27 pva Exp $
53
54 MY_P=${PN/metasploit/framework}-${PV}
55
56 # Metasploit uses subversion as a *normal* update mechanism for stable branches
57 # of the package. This ebuild uses _p<number> inside $PV to install updated up
58 # to revision <number> version of framework. For more information, take a look
59 # at bug #195924.
60 if [[ "${PV}" =~ (_p)([0-9]+) ]] ; then
61 inherit subversion
62 SRC_URI=""
63 MTSLPT_REV=${BASH_REMATCH[2]}
64 ESVN_REPO_URI="https://metasploit.com/svn/framework3/branches/framework-${PV%_p*}/@${MTSLPT_REV}"
65 else
66 SRC_URI="http://sugar.metasploit.com/releases/${MY_P}.tar.gz"
67 fi
68
69 DESCRIPTION="Advanced open-source framework for developing, testing, and using vulnerability exploit code"
70 HOMEPAGE="http://www.metasploit.org/"
71
72 LICENSE="MSF-1.2"
73 SLOT="3"
74 KEYWORDS="~amd64 ~ppc ~sparc ~x86"
75 IUSE="gtk sqlite sqlite3 postgres httpd"
76
77 # blocker on ruby-1.8.7:
78 # http://spool.metasploit.com/pipermail/framework/2008-September/003671.html
79 RDEPEND="dev-lang/ruby
80 !>=dev-lang/ruby-1.8.7
81 gtk? ( dev-ruby/ruby-libglade2 )
82 httpd? ( =dev-ruby/rails-1.2* )
83 sqlite? ( dev-ruby/sqlite-ruby
84 dev-ruby/activerecord )
85 sqlite3? ( dev-ruby/sqlite3-ruby
86 dev-ruby/activerecord )
87 postgres? ( dev-ruby/ruby-postgres
88 dev-ruby/activerecord )"
89 DEPEND=""
90
91 S=${WORKDIR}/${MY_P}
92
93 src_compile() {
94 sed -i -e "s/RAILS_GEM_VERSION = '1.2.2'/RAILS_GEM_VERSION = '1.2'/" \
95 data/msfweb/config/environment.rb || die "sed failed"
96 sed -i \
97 's#http://metasploit3.com/msf/support#http://metasploit.com/framework/support#' \
98 lib/msf/ui/gtk2/app.rb
99 }
100
101 src_install() {
102 if [[ "${SRC_URI}" != "" ]] ; then
103 find "${S}" -type d -name ".svn" -print0 | xargs -0 -n1 rm -R
104 fi
105
106 # should be as simple as copying everything into the target...
107 dodir /usr/lib/${PN}${SLOT}
108 cp -R "${S}"/* "${D}"/usr/lib/${PN}${SLOT} || die "Copy files failed"
109 rm -Rf "${D}"/usr/lib/${PN}${SLOT}/documentation "${D}"/usr/lib/${PN}${SLOT}/README
110
111 # do not remove LICENSE, bug #238137
112 dodir /usr/share/doc/${PF}
113 cp -R "${S}"/{documentation,README} "${D}"/usr/share/doc/${PF}
114 dosym /usr/share/doc/${PF}/documentation /usr/lib/${PN}${SLOT}/documentation
115
116 dodir /usr/bin/
117 for file in `ls msf*`; do
118 dosym /usr/lib/${PN}${SLOT}/${file} /usr/bin/${file}${SLOT}
119 done
120
121 chown -R root:0 "${D}"
122
123 if use httpd; then
124 newinitd "${FILESDIR}"/msfweb${SLOT}.initd msfweb${SLOT} \
125 || die "newinitd failed"
126 newconfd "${FILESDIR}"/msfweb${SLOT}.confd msfweb${SLOT} \
127 || die "newconfd failed"
128 fi
129 }
130
131 pkg_postinst() {
132 if [[ "${SRC_URI}" == "" ]] ; then
133 elog "If you wish to update ${PN} manually simply run:"
134 elog
135 elog "ESVN_REVISION=<rev> emerge =${PF}"
136 elog
137 elog "where <rev> is either HEAD (in case you wish to get all updates)"
138 elog "or specific revision number. But NOTE, this update will vanish"
139 elog "next time you reemerge ${PN}. To make update permanent either"
140 elog "create ebuild with specific revision number inside your overlay"
141 elog "or report revision bump bug at http://bugs.gentoo.org ."
142 elog
143 elog "In case you use portage it's also possible to create"
144 elog "/etc/portage/env/${CATEGORY}/${PN} file with ESVN_REVISION=<rev>"
145 elog "content. Then each time you run emerge ${PN} you'll have said"
146 elog "<rev> installed. For example, if you run"
147 elog " # mkdir -p /etc/portage/env/${CATEGORY}"
148 elog " # echo ESVN_REVISION=HEAD >> /etc/portage/env/${CATEGORY}/${PN}"
149 elog "each time you reemerge ${PN} it'll be updated to get all possible"
150 elog "updates for framework-${PV%_p*} branch."
151 elog "You can do similar things in paludis using /etc/paludis/bashrc."
152 else
153 ewarn "${PN} version you installed is for testing purposes only"
154 ewarn "as it's impossible to update it. For day by day work use"
155 ewarn "different version."
156 fi
157 }