Bug 179159 - [patch] update security/metasploit to 4.6.2
Summary: [patch] update security/metasploit to 4.6.2
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: Normal Affects Only Me
Assignee: Antoine Brodin
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-05-31 23:20 UTC by Antoine Brodin
Modified: 2013-06-14 21:50 UTC (History)
1 user (show)

See Also:


Attachments
msf.diff (6.35 KB, patch)
2013-05-31 23:20 UTC, Antoine Brodin
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Brodin freebsd_committer freebsd_triage 2013-05-31 23:20:00 UTC
Update security/metasploit to 4.6.2
This includes a new port, security/rubygems-metasploit_data_models
Comment 1 Edwin Groothuis freebsd_committer freebsd_triage 2013-05-31 23:20:07 UTC
Maintainer of security/metasploit,

Please note that PR ports/179159 has just been submitted.

If it contains a patch for an upgrade, an enhancement or a bug fix
you agree on, reply to this email stating that you approve the patch
and a committer will take care of it.

The full text of the PR can be found at:
    http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/179159

-- 
Edwin Groothuis via the GNATS Auto Assign Tool
edwin@FreeBSD.org
Comment 2 Edwin Groothuis freebsd_committer freebsd_triage 2013-05-31 23:20:08 UTC
State Changed
From-To: open->feedback

Awaiting maintainers feedback (via the GNATS Auto Assign Tool)
Comment 3 Antoine Brodin freebsd_committer freebsd_triage 2013-05-31 23:22:42 UTC
Responsible Changed
From-To: freebsd-ports-bugs->antoine

Track.
Comment 4 dfilter service freebsd_committer freebsd_triage 2013-06-14 21:40:24 UTC
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@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,^,@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@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/
_______________________________________________
svn-ports-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-ports-all
To unsubscribe, send any mail to "svn-ports-all-unsubscribe@freebsd.org"
Comment 5 Antoine Brodin freebsd_committer freebsd_triage 2013-06-14 21:48:05 UTC
State Changed
From-To: feedback->closed

Update committed.