aboutsummaryrefslogtreecommitdiff
path: root/security/metasploit-devel/Makefile
blob: dce9a37a121ff84797cc086d0228f2ad75f81671 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
# Ports collection makefile for:	metasploit-devel
# Date created:				18 Nov 2004
# Whom:					Yonatan <onatan@gmail.com>
#
# $FreeBSD$
#

PORTNAME=	metasploit
DISTVERSION=	3.0-beta-3
CATEGORIES=	security
MASTER_SITES=	#
PKGNAMESUFFIX=	-devel
DISTNAME=	framework-${DISTVERSION}-svn

MAINTAINER=	onatan@gmail.com
COMMENT=	Exploit-Framework for Penetration-Testing

RUN_DEPENDS=	${LOCALBASE}/bin/svn:${PORTSDIR}/devel/subversion \
		${LOCALBASE}/bin/gem:${PORTSDIR}/devel/ruby-gems \
		${LOCALBASE}/lib/ruby/gems/1.8/specifications/activerecord-1.14.4.gemspec:${PORTSDIR}/databases/rubygem-activerecord

SCRIPTS=	msfcli msfconsole msfd msfencode msflicense msfopcode \
		msfpayload msfpescan msfweb

.if defined(WITH_MSFWX)
RUN_DEPENDS+=	${RUBY_SITEARCHLIBDIR}/wxruby.so:${PORTSDIR}/x11-toolkits/ruby-wx
SCRIPTS+=	msfwx
.endif

WRKSRC=	${WRKDIR}/framework-${DISTVERSION}
RESTRICTED=	May not be re-sold for more than the cost of duplication, nor redistributed after patching

CONFLICTS=	metasploit-2*
NO_BUILD=	yes
USE_RUBY=	yes

.include <bsd.port.pre.mk>

.if !exists(${DISTDIR}/${DISTNAME}${EXTRACT_SUFX}) && !defined(PACKAGE_BUILDING)
ECHO_MSG=/usr/bin/printf
IGNORE=\n \
Due to licensing restrictions you have to accept the Metasploit Framework\n \
License before downloading ${DISTNAME}${EXTRACT_SUFX}. Please direct your\n \
web browser to http://metasploit.com/projects/Framework/msf3/ to read and\n \
accept the license. Once downloaded, save ${DISTNAME}${EXTRACT_SUFX} \n \
in ${DISTDIR} and try again.\n
.endif

post-extract:
	@${FIND} ${WRKSRC}/ -type d -name '.svn' | ${XARGS} ${RM} -rf

do-install:
	${MKDIR} ${DATADIR}
	${CP} -Rp ${WRKSRC}/ ${DATADIR}
.for f in ${SCRIPTS}
	${LN} -s ${DATADIR}/${f} ${PREFIX}/bin
.endfor

.include <bsd.port.post.mk>