blob: 36b44e78918a373d69350b8417ffd10dee30d880 (
plain)
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
|
# Ports collection makefile for: metasploit
# Date created: 18 Nov 2004
# Whom: Yonatan <onatan@gmail.com>
#
# $FreeBSD$
#
PORTNAME= metasploit
PORTVERSION= 2.5
CATEGORIES= security
MASTER_SITES= http://www.metasploit.org/tools/
DISTNAME= framework-${PORTVERSION}
MAINTAINER= onatan@gmail.com
COMMENT= Exploit-Framework for Penetration-Testing
RUN_DEPENDS= ${SITE_PERL}/mach/Term/ReadLine/Gnu.pm:${PORTSDIR}/devel/p5-ReadLine-Gnu \
${SITE_PERL}/mach/Net/SSLeay.pm:${PORTSDIR}/security/p5-Net-SSLeay \
${LOCALBASE}/bin/nasm:${PORTSDIR}/devel/nasm
NO_BUILD= yes
USE_PERL5_RUN= yes
USE_REINPLACE= yes
REINPLACE_ARGS= -i ''
SCRIPTS= msfcli msfconsole msfelfscan msfencode msflogdump msfpayload msfpescan \
msfupdate msfweb
.include <bsd.port.pre.mk>
.if ${PERL_LEVEL} < 500600
IGNORE= This port requires perl version 5.6.0 or higher.
.endif
post-patch:
.for f in ${SCRIPTS}
@${REINPLACE_CMD} -e 's|/usr/bin/perl|${PERL}|' ${WRKSRC}/${f}
.endfor
do-install:
${MKDIR} ${DATADIR}
${CP} -Rp ${WRKSRC}/ ${DATADIR}
.for f in ${SCRIPTS}
${LN} -s ${DATADIR}/${f} ${PREFIX}/bin
.endfor
.include <bsd.port.post.mk>
|