summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--security/Makefile1
-rw-r--r--security/metasploit/Makefile46
-rw-r--r--security/metasploit/distinfo4
-rw-r--r--security/rubygem-metasploit_data_models/Makefile22
-rw-r--r--security/rubygem-metasploit_data_models/distinfo2
-rw-r--r--security/rubygem-metasploit_data_models/pkg-descr11
6 files changed, 63 insertions, 23 deletions
diff --git a/security/Makefile b/security/Makefile
index 85d2dbdbc156..5f3ab5892b39 100644
--- a/security/Makefile
+++ b/security/Makefile
@@ -852,6 +852,7 @@
SUBDIR += rubygem-ezcrypto
SUBDIR += rubygem-gpgr
SUBDIR += rubygem-hmac
+ SUBDIR += rubygem-metasploit_data_models
SUBDIR += rubygem-net-scp
SUBDIR += rubygem-net-sftp
SUBDIR += rubygem-net-ssh
diff --git a/security/metasploit/Makefile b/security/metasploit/Makefile
index 1602bed49f94..603ab5138fac 100644
--- a/security/metasploit/Makefile
+++ b/security/metasploit/Makefile
@@ -2,22 +2,26 @@
# $FreeBSD$
PORTNAME= metasploit
-DISTVERSION= 4.5.0
+DISTVERSION= 4.6.2
CATEGORIES= security
-MASTER_SITES= http://downloads.metasploit.com/data/releases/
+MASTER_SITES= http://downloads.metasploit.com/data/releases/archive/
DISTNAME= framework-${DISTVERSION}
MAINTAINER= tanawts@gmail.com
COMMENT= Exploit-Framework for Penetration-Testing
-RUN_DEPENDS= nasm:${PORTSDIR}/devel/nasm \
- nmap:${PORTSDIR}/security/nmap
+RUN_DEPENDS= nasm:${PORTSDIR}/devel/nasm \
+ nmap:${PORTSDIR}/security/nmap \
+ rubygem-activesupport>=3.0.0:${PORTSDIR}/devel/rubygem-activesupport \
+ rubygem-json>=0:${PORTSDIR}/devel/rubygem-json \
+ rubygem-msgpack>=0:${PORTSDIR}/devel/rubygem-msgpack \
+ rubygem-nokogiri>=0:${PORTSDIR}/textproc/rubygem-nokogiri \
+ rubygem-pcaprub>=0:${PORTSDIR}/net/rubygem-pcaprub \
+ rubygem-robots>=0:${PORTSDIR}/www/rubygem-robots
WRKSRC= ${WRKDIR}/msf3
-SCRIPTS= msfcli msfconsole msfd msfelfscan msfencode msfmachscan \
- msfopcode msfpayload msfpescan msfweb
-
-OPTIONS_DEFINE= SVN
+SCRIPTS= msfbinscan msfcli msfconsole msfd msfelfscan msfencode \
+ msfmachscan msfpayload msfpescan msfrop msfrpc msfrpcd msfvenom
NO_BUILD= yes
USES= ncurses:port
@@ -25,23 +29,23 @@ USE_RUBY= yes
USE_RUBY_FEATURES= iconv
USE_BZIP2= yes
-.include <bsd.port.pre.mk>
+OPTIONS_DEFINE= DB
+OPTIONS_DEFAULT=DB
+DB_DESC= Database support
-.if ${RUBY_VER} == 1.8
-RUN_DEPENDS+= ${LOCALBASE}/bin/gem:${PORTSDIR}/devel/ruby-gems
-.else
-RUN_DEPENDS+= rubygem-actionpack>0:${PORTSDIR}/www/rubygem-actionpack \
- rubygem-sqlite3>0:${PORTSDIR}/databases/rubygem-sqlite3 \
- rubygem-activerecord>0:${PORTSDIR}/databases/rubygem-activerecord \
- rubygem-activesupport>0:${PORTSDIR}/devel/rubygem-activesupport
-.endif
+.include <bsd.port.options.mk>
-.if ${PORT_OPTIONS:MSVN}
-RUN_DEPENDS+= svn:${PORTSDIR}/devel/subversion
+.if ${PORT_OPTIONS:MDB}
+RUN_DEPENDS+= rubygem-activerecord>=0:${PORTSDIR}/databases/rubygem-activerecord \
+ rubygem-metasploit_data_models>=0.15.1:${PORTSDIR}/security/rubygem-metasploit_data_models \
+ rubygem-pg>=0.11:${PORTSDIR}/databases/rubygem-pg
.endif
+post-patch:
+ ${REINPLACE_CMD} 's|bundler/setup|rubygems|' ${WRKSRC}/lib/msfenv.rb
+
do-install:
- ${MKDIR} ${DATADIR}
+ @${MKDIR} ${DATADIR}
${CP} -Rp ${WRKSRC}/ ${DATADIR}
.for f in ${SCRIPTS}
${LN} -s ${DATADIR}/${f} ${PREFIX}/bin/${f}
@@ -56,4 +60,4 @@ post-install:
@${FIND} ${DATADIR} -type d | ${SORT} -r | \
${SED} 's,${PREFIX}/,, ; s,^,@dirrm ,' >> ${TMPPLIST}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
diff --git a/security/metasploit/distinfo b/security/metasploit/distinfo
index b1c982985ce8..531b19e80608 100644
--- a/security/metasploit/distinfo
+++ b/security/metasploit/distinfo
@@ -1,2 +1,2 @@
-SHA256 (framework-4.5.0.tar.bz2) = 1538770b622a9de4acdebe7a73ed6eb584376278e5c914ece329092112dcc3e0
-SIZE (framework-4.5.0.tar.bz2) = 63963598
+SHA256 (framework-4.6.2.tar.bz2) = fc7f9cdf5be68c117fde4ce80b7446c7d89d3a9860b8509e5a5b3fc4a325eae1
+SIZE (framework-4.6.2.tar.bz2) = 40789497
diff --git a/security/rubygem-metasploit_data_models/Makefile b/security/rubygem-metasploit_data_models/Makefile
new file mode 100644
index 000000000000..b67c177ee2e4
--- /dev/null
+++ b/security/rubygem-metasploit_data_models/Makefile
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+PORTNAME= metasploit_data_models
+PORTVERSION= 0.15.1
+CATEGORIES= security rubygems
+MASTER_SITES= RG
+
+MAINTAINER= tanawts@gmail.com
+COMMENT= Database layer for Metasploit
+
+LICENSE= BSD
+
+RUN_DEPENDS= rubygem-activerecord>=3.2.13:${PORTSDIR}/databases/rubygem-activerecord \
+ rubygem-activesupport>=0:${PORTSDIR}/devel/rubygem-activesupport \
+ rubygem-pg>=0:${PORTSDIR}/databases/rubygem-pg
+
+USE_RUBY= yes
+USE_RUBYGEMS= yes
+RUBYGEM_AUTOPLIST=yes
+PLIST_FILES= bin/mdm_console
+
+.include <bsd.port.mk>
diff --git a/security/rubygem-metasploit_data_models/distinfo b/security/rubygem-metasploit_data_models/distinfo
new file mode 100644
index 000000000000..404bbb55adc7
--- /dev/null
+++ b/security/rubygem-metasploit_data_models/distinfo
@@ -0,0 +1,2 @@
+SHA256 (rubygem/metasploit_data_models-0.15.1.gem) = bc8635c7c2571bd2963a4a61f4abe033a437c796c5302ad87c898dbd78fea854
+SIZE (rubygem/metasploit_data_models-0.15.1.gem) = 81408
diff --git a/security/rubygem-metasploit_data_models/pkg-descr b/security/rubygem-metasploit_data_models/pkg-descr
new file mode 100644
index 000000000000..9c566f3a196e
--- /dev/null
+++ b/security/rubygem-metasploit_data_models/pkg-descr
@@ -0,0 +1,11 @@
+MetasploitDataModels exists to do several key things:
+- Allow code sharing between Metasploit Framework (MSF) and the commercial
+versions of Metasploit (Community, Express, Pro -- usually referred to
+collectively as "Pro")
+- Give developers a lightweight entry point to MSF's backend for use in
+developing tools that gather data intended for later use with Metasploit
+(e.g. specialized scanners)
+- Make it easy to keep commercial stuff private while increasing the
+functionality of the open-source tools we provide to the community
+
+WWW: https://github.com/rapid7/metasploit_data_models/