svn commit: r320962 - in head/security: . metasploit rubygem-metasploit_data_models
Antoine Brodin
antoine at FreeBSD.org
Fri Jun 14 20:40:11 UTC 2013
Author: antoine
Date: Fri Jun 14 20:40:09 2013
New Revision: 320962
URL: http://svnweb.freebsd.org/changeset/ports/320962
Log:
- Update metasploit to 4.6.2
- Update the list of scripts
- SVN is discontinued
- new DB option for database support
PR: ports/179159
Approved by: maintainer timeout (15 days)
Added:
head/security/rubygem-metasploit_data_models/
head/security/rubygem-metasploit_data_models/Makefile (contents, props changed)
head/security/rubygem-metasploit_data_models/distinfo (contents, props changed)
head/security/rubygem-metasploit_data_models/pkg-descr (contents, props changed)
Modified:
head/security/Makefile
head/security/metasploit/Makefile
head/security/metasploit/distinfo
Modified: head/security/Makefile
==============================================================================
--- head/security/Makefile Fri Jun 14 20:24:11 2013 (r320961)
+++ head/security/Makefile Fri Jun 14 20:40:09 2013 (r320962)
@@ -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
Modified: head/security/metasploit/Makefile
==============================================================================
--- head/security/metasploit/Makefile Fri Jun 14 20:24:11 2013 (r320961)
+++ head/security/metasploit/Makefile Fri Jun 14 20:40:09 2013 (r320962)
@@ -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 at 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>
-
-.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
+OPTIONS_DEFINE= DB
+OPTIONS_DEFAULT=DB
+DB_DESC= Database support
+
+.include <bsd.port.options.mk>
+
+.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
-.if ${PORT_OPTIONS:MSVN}
-RUN_DEPENDS+= svn:${PORTSDIR}/devel/subversion
-.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,^, at dirrm ,' >> ${TMPPLIST}
-.include <bsd.port.post.mk>
+.include <bsd.port.mk>
Modified: head/security/metasploit/distinfo
==============================================================================
--- head/security/metasploit/distinfo Fri Jun 14 20:24:11 2013 (r320961)
+++ head/security/metasploit/distinfo Fri Jun 14 20:40:09 2013 (r320962)
@@ -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
Added: head/security/rubygem-metasploit_data_models/Makefile
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/rubygem-metasploit_data_models/Makefile Fri Jun 14 20:40:09 2013 (r320962)
@@ -0,0 +1,22 @@
+# $FreeBSD$
+
+PORTNAME= metasploit_data_models
+PORTVERSION= 0.15.1
+CATEGORIES= security rubygems
+MASTER_SITES= RG
+
+MAINTAINER= tanawts at 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>
Added: head/security/rubygem-metasploit_data_models/distinfo
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/rubygem-metasploit_data_models/distinfo Fri Jun 14 20:40:09 2013 (r320962)
@@ -0,0 +1,2 @@
+SHA256 (rubygem/metasploit_data_models-0.15.1.gem) = bc8635c7c2571bd2963a4a61f4abe033a437c796c5302ad87c898dbd78fea854
+SIZE (rubygem/metasploit_data_models-0.15.1.gem) = 81408
Added: head/security/rubygem-metasploit_data_models/pkg-descr
==============================================================================
--- /dev/null 00:00:00 1970 (empty, because file is newly added)
+++ head/security/rubygem-metasploit_data_models/pkg-descr Fri Jun 14 20:40:09 2013 (r320962)
@@ -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/
More information about the svn-ports-head
mailing list