Lines 2-47
Link Here
|
2 |
# $FreeBSD$ |
2 |
# $FreeBSD$ |
3 |
|
3 |
|
4 |
PORTNAME= metasploit |
4 |
PORTNAME= metasploit |
5 |
DISTVERSION= 4.5.0 |
5 |
DISTVERSION= 4.6.2 |
6 |
CATEGORIES= security |
6 |
CATEGORIES= security |
7 |
MASTER_SITES= http://downloads.metasploit.com/data/releases/ |
7 |
MASTER_SITES= http://downloads.metasploit.com/data/releases/archive/ |
8 |
DISTNAME= framework-${DISTVERSION} |
8 |
DISTNAME= framework-${DISTVERSION} |
9 |
|
9 |
|
10 |
MAINTAINER= tanawts@gmail.com |
10 |
MAINTAINER= tanawts@gmail.com |
11 |
COMMENT= Exploit-Framework for Penetration-Testing |
11 |
COMMENT= Exploit-Framework for Penetration-Testing |
12 |
|
12 |
|
13 |
RUN_DEPENDS= nasm:${PORTSDIR}/devel/nasm \ |
13 |
RUN_DEPENDS= nasm:${PORTSDIR}/devel/nasm \ |
14 |
nmap:${PORTSDIR}/security/nmap |
14 |
nmap:${PORTSDIR}/security/nmap \ |
|
|
15 |
rubygem-activesupport>=3.0.0:${PORTSDIR}/devel/rubygem-activesupport \ |
16 |
rubygem-json>=0:${PORTSDIR}/devel/rubygem-json \ |
17 |
rubygem-msgpack>=0:${PORTSDIR}/devel/rubygem-msgpack \ |
18 |
rubygem-nokogiri>=0:${PORTSDIR}/textproc/rubygem-nokogiri \ |
19 |
rubygem-pcaprub>=0:${PORTSDIR}/net/rubygem-pcaprub \ |
20 |
rubygem-robots>=0:${PORTSDIR}/www/rubygem-robots |
15 |
|
21 |
|
16 |
WRKSRC= ${WRKDIR}/msf3 |
22 |
WRKSRC= ${WRKDIR}/msf3 |
17 |
SCRIPTS= msfcli msfconsole msfd msfelfscan msfencode msfmachscan \ |
23 |
SCRIPTS= msfbinscan msfcli msfconsole msfd msfelfscan msfencode \ |
18 |
msfopcode msfpayload msfpescan msfweb |
24 |
msfmachscan msfpayload msfpescan msfrop msfrpc msfrpcd msfvenom |
19 |
|
25 |
|
20 |
OPTIONS_DEFINE= SVN |
|
|
21 |
|
22 |
NO_BUILD= yes |
26 |
NO_BUILD= yes |
23 |
USES= ncurses:port |
27 |
USES= ncurses:port |
24 |
USE_RUBY= yes |
28 |
USE_RUBY= yes |
25 |
USE_RUBY_FEATURES= iconv |
29 |
USE_RUBY_FEATURES= iconv |
26 |
USE_BZIP2= yes |
30 |
USE_BZIP2= yes |
27 |
|
31 |
|
28 |
.include <bsd.port.pre.mk> |
32 |
OPTIONS_DEFINE= DB |
|
|
33 |
OPTIONS_DEFAULT=DB |
34 |
DB_DESC= Database support |
29 |
|
35 |
|
30 |
.if ${RUBY_VER} == 1.8 |
36 |
.include <bsd.port.options.mk> |
31 |
RUN_DEPENDS+= ${LOCALBASE}/bin/gem:${PORTSDIR}/devel/ruby-gems |
|
|
32 |
.else |
33 |
RUN_DEPENDS+= rubygem-actionpack>0:${PORTSDIR}/www/rubygem-actionpack \ |
34 |
rubygem-sqlite3>0:${PORTSDIR}/databases/rubygem-sqlite3 \ |
35 |
rubygem-activerecord>0:${PORTSDIR}/databases/rubygem-activerecord \ |
36 |
rubygem-activesupport>0:${PORTSDIR}/devel/rubygem-activesupport |
37 |
.endif |
38 |
|
37 |
|
39 |
.if ${PORT_OPTIONS:MSVN} |
38 |
.if ${PORT_OPTIONS:MDB} |
40 |
RUN_DEPENDS+= svn:${PORTSDIR}/devel/subversion |
39 |
RUN_DEPENDS+= rubygem-activerecord>=0:${PORTSDIR}/databases/rubygem-activerecord \ |
|
|
40 |
rubygem-metasploit_data_models>=0.15.1:${PORTSDIR}/security/rubygem-metasploit_data_models \ |
41 |
rubygem-pg>=0.11:${PORTSDIR}/databases/rubygem-pg |
41 |
.endif |
42 |
.endif |
42 |
|
43 |
|
|
|
44 |
post-patch: |
45 |
${REINPLACE_CMD} 's|bundler/setup|rubygems|' ${WRKSRC}/lib/msfenv.rb |
46 |
|
43 |
do-install: |
47 |
do-install: |
44 |
${MKDIR} ${DATADIR} |
48 |
@${MKDIR} ${DATADIR} |
45 |
${CP} -Rp ${WRKSRC}/ ${DATADIR} |
49 |
${CP} -Rp ${WRKSRC}/ ${DATADIR} |
46 |
.for f in ${SCRIPTS} |
50 |
.for f in ${SCRIPTS} |
47 |
${LN} -s ${DATADIR}/${f} ${PREFIX}/bin/${f} |
51 |
${LN} -s ${DATADIR}/${f} ${PREFIX}/bin/${f} |
Lines 56-59
Link Here
|
56 |
@${FIND} ${DATADIR} -type d | ${SORT} -r | \ |
60 |
@${FIND} ${DATADIR} -type d | ${SORT} -r | \ |
57 |
${SED} 's,${PREFIX}/,, ; s,^,@dirrm ,' >> ${TMPPLIST} |
61 |
${SED} 's,${PREFIX}/,, ; s,^,@dirrm ,' >> ${TMPPLIST} |
58 |
|
62 |
|
59 |
.include <bsd.port.post.mk> |
63 |
.include <bsd.port.mk> |