Gentoo Archives: gentoo-commits

From: "CAdric Krier (cedk)" <cedk@g.o>
To: gentoo-commits@l.g.o
Subject: [gentoo-commits] gentoo-x86 commit in net-analyzer/metasploit: ChangeLog metasploit-3.0.ebuild
Date: Sun, 09 Sep 2007 12:03:14
Message-Id: E1IULOn-0003Tx-DF@stork.gentoo.org
1 cedk 07/09/09 11:56:21
2
3 Modified: ChangeLog
4 Added: metasploit-3.0.ebuild
5 Log:
6 Version bump with new slot for bug #142778
7 (Portage version: 2.1.2.12)
8
9 Revision Changes Path
10 1.23 net-analyzer/metasploit/ChangeLog
11
12 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/ChangeLog?rev=1.23&view=markup
13 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/ChangeLog?rev=1.23&content-type=text/plain
14 diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/ChangeLog?r1=1.22&r2=1.23
15
16 Index: ChangeLog
17 ===================================================================
18 RCS file: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v
19 retrieving revision 1.22
20 retrieving revision 1.23
21 diff -u -r1.22 -r1.23
22 --- ChangeLog 7 Feb 2007 20:44:41 -0000 1.22
23 +++ ChangeLog 9 Sep 2007 11:56:20 -0000 1.23
24 @@ -1,6 +1,12 @@
25 # ChangeLog for net-analyzer/metasploit
26 # Copyright 1999-2007 Gentoo Foundation; Distributed under the GPL v2
27 -# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.22 2007/02/07 20:44:41 blubb Exp $
28 +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.23 2007/09/09 11:56:20 cedk Exp $
29 +
30 +*metasploit-3.0 (09 Sep 2007)
31 +
32 + 09 Sep 2007; Cédric Krier <cedk@g.o> +files/msfweb3.confd,
33 + +files/metasploit-3.0.patch, +files/msfweb3.initd, +metasploit-3.0.ebuild:
34 + Version bump with new slot for bug #142778
35
36 07 Feb 2007; Simon Stelling <blubb@g.o> metasploit-2.7.ebuild:
37 stable on amd64; bug 164246
38
39
40
41 1.1 net-analyzer/metasploit/metasploit-3.0.ebuild
42
43 file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/metasploit-3.0.ebuild?rev=1.1&view=markup
44 plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-analyzer/metasploit/metasploit-3.0.ebuild?rev=1.1&content-type=text/plain
45
46 Index: metasploit-3.0.ebuild
47 ===================================================================
48 # Copyright 1999-2007 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.0.ebuild,v 1.1 2007/09/09 11:56:20 cedk Exp $
51
52 inherit eutils
53
54 MY_P="${PN/metasploit/framework}-${PV}"
55 S="${WORKDIR}/${MY_P}"
56
57 DESCRIPTION="The Metasploit Framework is an advanced open-source platform for developing, testing, and using vulnerability exploit code."
58 HOMEPAGE="http://www.metasploit.org/"
59 SRC_URI="${MY_P}.tar.gz"
60
61 LICENSE="MSF-1.2"
62 SLOT="3"
63 KEYWORDS="~amd64 ~ppc ~x86"
64 RESTRICT="fetch"
65 IUSE="gtk sqlite sqlite3 postgres httpd"
66
67 RDEPEND="dev-lang/ruby
68 gtk? ( dev-ruby/ruby-libglade2 )
69 httpd? ( =dev-ruby/rails-1.2.2* )
70 sqlite? ( dev-ruby/sqlite-ruby
71 dev-ruby/activerecord )
72 sqlite3? ( dev-ruby/sqlite3-ruby
73 dev-ruby/activerecord )
74 postgres? ( dev-ruby/ruby-postgres
75 dev-ruby/activerecord )"
76 DEPEND=""
77
78 pkg_nofetch() {
79 # Fetch restricted due to license acceptation
80 einfo "Please download the framework from:"
81 einfo "http://metasploit.com/projects/Framework/msf3/download.html?Release=${MY_P}.tar.gz"
82 einfo "and move it to ${DISTDIR}"
83 }
84
85 src_compile() {
86 epatch "${FILESDIR}"/${P}.patch
87 }
88
89 src_install() {
90 dodir /usr/lib/
91 dodir /usr/bin/
92
93 # remove the subversion directories
94 find ${S} -type d -name ".svn" | xargs rm -R
95
96 # should be as simple as copying everything into the target...
97 dodir /usr/lib/metasploit${SLOT}
98 cp -R "${S}"/* "${D}"/usr/lib/metasploit${SLOT} || die "Copy files failed"
99 rm -Rf "${D}"/usr/lib/metasploit${SLOT}/documentation "${D}"/README
100
101 for file in `ls msf*`; do
102 dosym /usr/lib/metasploit${SLOT}/${file} /usr/bin/${file}${SLOT}
103 done
104
105 chown -R root:root ${D}
106
107 if use httpd; then
108 newinitd "${FILESDIR}"/msfweb${SLOT}.initd msfweb${SLOT} \
109 || die "newinitd failed"
110 newconfd "${FILESDIR}"/msfweb${SLOT}.confd msfweb${SLOT} \
111 || die "newconfd failed"
112 fi
113 }
114
115
116
117 --
118 gentoo-commits@g.o mailing list