1 |
patrick 12/01/12 08:14:41 |
2 |
|
3 |
Modified: ChangeLog |
4 |
Added: metasploit-4.1.4.ebuild |
5 |
Log: |
6 |
Bump |
7 |
|
8 |
(Portage version: 2.2.0_alpha83/cvs/Linux x86_64) |
9 |
|
10 |
Revision Changes Path |
11 |
1.58 net-analyzer/metasploit/ChangeLog |
12 |
|
13 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/metasploit/ChangeLog?rev=1.58&view=markup |
14 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/metasploit/ChangeLog?rev=1.58&content-type=text/plain |
15 |
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/metasploit/ChangeLog?r1=1.57&r2=1.58 |
16 |
|
17 |
Index: ChangeLog |
18 |
=================================================================== |
19 |
RCS file: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v |
20 |
retrieving revision 1.57 |
21 |
retrieving revision 1.58 |
22 |
diff -u -r1.57 -r1.58 |
23 |
--- ChangeLog 4 Aug 2011 22:03:37 -0000 1.57 |
24 |
+++ ChangeLog 12 Jan 2012 08:14:41 -0000 1.58 |
25 |
@@ -1,6 +1,12 @@ |
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.57 2011/08/04 22:03:37 patrick Exp $ |
29 |
+# Copyright 1999-2012 Gentoo Foundation; Distributed under the GPL v2 |
30 |
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/ChangeLog,v 1.58 2012/01/12 08:14:41 patrick Exp $ |
31 |
+ |
32 |
+*metasploit-4.1.4 (12 Jan 2012) |
33 |
+ |
34 |
+ 12 Jan 2012; Patrick Lauer <patrick@g.o> +files/msfrpcd-4.1-conf, |
35 |
+ +files/msfrpcd-4.1-initd, +metasploit-4.1.4.ebuild: |
36 |
+ Bump |
37 |
|
38 |
*metasploit-4.0.0-r1 (04 Aug 2011) |
39 |
|
40 |
|
41 |
|
42 |
|
43 |
1.1 net-analyzer/metasploit/metasploit-4.1.4.ebuild |
44 |
|
45 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/metasploit/metasploit-4.1.4.ebuild?rev=1.1&view=markup |
46 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-analyzer/metasploit/metasploit-4.1.4.ebuild?rev=1.1&content-type=text/plain |
47 |
|
48 |
Index: metasploit-4.1.4.ebuild |
49 |
=================================================================== |
50 |
# Copyright 1999-2012 Gentoo Foundation |
51 |
# Distributed under the terms of the GNU General Public License v2 |
52 |
# $Header: /var/cvsroot/gentoo-x86/net-analyzer/metasploit/metasploit-4.1.4.ebuild,v 1.1 2012/01/12 08:14:41 patrick Exp $ |
53 |
|
54 |
EAPI="3" |
55 |
inherit eutils |
56 |
|
57 |
#SRC_URI="http://updates.metasploit.com/data/releases/framework-${PV}.tar.bz2" |
58 |
# Naughty upstream ... no versioning at the moment |
59 |
SRC_URI="http://downloads.metasploit.com/data/releases/framework-latest.tar.bz2" |
60 |
|
61 |
DESCRIPTION="Advanced open-source framework for developing, testing, and using vulnerability exploit code" |
62 |
HOMEPAGE="http://www.metasploit.org/" |
63 |
|
64 |
LICENSE="BSD" |
65 |
SLOT="4.1" |
66 |
KEYWORDS="~amd64 ~ppc ~sparc ~x86" |
67 |
IUSE="gui mysql postgres" |
68 |
|
69 |
# Note we use bundled gems (see data/msfweb/vendor/rails/) as upstream voted for |
70 |
# such solution, bug #247787 |
71 |
RDEPEND="dev-lang/ruby |
72 |
dev-ruby/rubygems |
73 |
gui? ( virtual/jre ) |
74 |
mysql? ( dev-ruby/mysql-ruby |
75 |
dev-ruby/activerecord[mysql] ) |
76 |
postgres? ( dev-ruby/ruby-postgres |
77 |
dev-ruby/activerecord[postgres] )" |
78 |
DEPEND="" |
79 |
|
80 |
QA_PRESTRIPPED=" |
81 |
usr/lib/${PN}${SLOT}/data/msflinker_linux_x86.bin |
82 |
usr/lib/${PN}${SLOT}/data/templates/template_armle_linux.bin |
83 |
usr/lib/${PN}${SLOT}/data/templates/template_x86_linux.bin" |
84 |
|
85 |
QA_EXECSTACK=" |
86 |
usr/lib/${PN}${SLOT}/data/meterpreter/msflinker_linux_x86.bin" |
87 |
QA_WX_LOAD=" |
88 |
usr/lib/${PN}${SLOT}/data/templates/template_*_linux.bin" |
89 |
|
90 |
S=${WORKDIR}/msf |
91 |
|
92 |
src_configure() { |
93 |
# upstream makes weird tarbllz |
94 |
find "${S}" -type d -name ".svn" -print0 | xargs -0 -n1 rm -R |
95 |
|
96 |
rm "${S}"/msfupdate |
97 |
chmod +x "${S}"/msf* |
98 |
|
99 |
use gui || rm msfgui |
100 |
} |
101 |
|
102 |
src_install() { |
103 |
# should be as simple as copying everything into the target... |
104 |
dodir /usr/lib/${PN}${SLOT} |
105 |
cp -R "${S}"/* "${D}"/usr/lib/${PN}${SLOT} |
106 |
chown -R root:0 "${D}" |
107 |
|
108 |
# do not remove LICENSE, bug #238137 |
109 |
dodir /usr/share/doc/${PF} |
110 |
cp "${S}"/{README,HACKING} "${D}"/usr/share/doc/${PF} |
111 |
dosym /usr/lib/${PN}${SLOT}/documentation /usr/share/doc/${PF}/documentation |
112 |
|
113 |
dodir /usr/bin/ |
114 |
for file in msf*; do |
115 |
dosym /usr/lib/${PN}${SLOT}/${file} /usr/bin/${file}${SLOT} |
116 |
done |
117 |
|
118 |
newinitd "${FILESDIR}"/msfrpcd-${SLOT}-initd msfrpcd${SLOT} || die |
119 |
newconfd "${FILESDIR}"/msfrpcd-${SLOT}-conf msfrpcd${SLOT} || die |
120 |
|
121 |
use gui && make_desktop_entry msfgui${SLOT} \ |
122 |
"Metasploit Framework" \ |
123 |
metasploit \ |
124 |
'GNOME;System;Network;' && |
125 |
doicon "${FILESDIR}"/metasploit.xpm |
126 |
|
127 |
# Avoid useless revdep-rebuild trigger #377617 |
128 |
dodir /etc/revdep-rebuild/ |
129 |
echo "SEARCH_DIRS_MASK=\"/usr/lib*/${PN}${SLOT}/data/john\"" > \ |
130 |
${D}/etc/revdep-rebuild/70-${PN}-${SLOT} |
131 |
} |
132 |
|
133 |
pkg_postinst() { |
134 |
if use gui; then |
135 |
elog "You will need to create a /usr/bin/msfrpcd symlink pointing to" |
136 |
elog "the version of msfrpcd if you want to be able to start msfrpcd" |
137 |
elog "from the java gui." |
138 |
elog |
139 |
elog "ln /usr/bin/msfrpcd${SLOT} /usr/bin/msfrpcd" |
140 |
elog |
141 |
fi |
142 |
} |