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