View | Details | Raw Unified | Return to bug 179159
Collapse All | Expand All

(-)security/metasploit/Makefile (-21 / +25 lines)
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>
(-)security/metasploit/distinfo (-2 / +2 lines)
Lines 1-2 Link Here
1
SHA256 (framework-4.5.0.tar.bz2) = 1538770b622a9de4acdebe7a73ed6eb584376278e5c914ece329092112dcc3e0
1
SHA256 (framework-4.6.2.tar.bz2) = fc7f9cdf5be68c117fde4ce80b7446c7d89d3a9860b8509e5a5b3fc4a325eae1
2
SIZE (framework-4.5.0.tar.bz2) = 63963598
2
SIZE (framework-4.6.2.tar.bz2) = 40789497
(-)security/rubygem-metasploit_data_models/Makefile (+22 lines)
Line 0 Link Here
1
# $FreeBSD$
2
3
PORTNAME=	metasploit_data_models
4
PORTVERSION=	0.15.1
5
CATEGORIES=	security rubygems
6
MASTER_SITES=	RG
7
8
MAINTAINER=	tanawts@gmail.com
9
COMMENT=	Database layer for Metasploit
10
11
LICENSE=	BSD
12
13
RUN_DEPENDS=	rubygem-activerecord>=3.2.13:${PORTSDIR}/databases/rubygem-activerecord \
14
		rubygem-activesupport>=0:${PORTSDIR}/devel/rubygem-activesupport \
15
		rubygem-pg>=0:${PORTSDIR}/databases/rubygem-pg
16
17
USE_RUBY=	yes
18
USE_RUBYGEMS=	yes
19
RUBYGEM_AUTOPLIST=yes
20
PLIST_FILES=	bin/mdm_console
21
22
.include <bsd.port.mk>
(-)security/rubygem-metasploit_data_models/distinfo (+2 lines)
Line 0 Link Here
1
SHA256 (rubygem/metasploit_data_models-0.15.1.gem) = bc8635c7c2571bd2963a4a61f4abe033a437c796c5302ad87c898dbd78fea854
2
SIZE (rubygem/metasploit_data_models-0.15.1.gem) = 81408
(-)security/rubygem-metasploit_data_models/pkg-descr (+11 lines)
Line 0 Link Here
1
MetasploitDataModels exists to do several key things:
2
- Allow code sharing between Metasploit Framework (MSF) and the commercial
3
versions of Metasploit (Community, Express, Pro -- usually referred to
4
collectively as "Pro")
5
- Give developers a lightweight entry point to MSF's backend for use in
6
developing tools that gather data intended for later use with Metasploit
7
(e.g. specialized scanners)
8
- Make it easy to keep commercial stuff private while increasing the
9
functionality of the open-source tools we provide to the community
10
11
WWW: https://github.com/rapid7/metasploit_data_models/

Return to bug 179159