9c33e48ef4
It will be based on Ruby instead of perl, have a different license, and some utilities (msfconsole, msfencode...) will conflict with the current metasploit package. This update comes to preempt the conflicts and to clarify the pkg-descr. Bump PORTREVISION. PR: ports/101090 Submitted by: Yonatan (maintianer)
49 lines
1.1 KiB
Makefile
49 lines
1.1 KiB
Makefile
# Ports collection makefile for: metasploit
|
|
# Date created: 18 Nov 2004
|
|
# Whom: Yonatan <onatan@gmail.com>
|
|
#
|
|
# $FreeBSD$
|
|
#
|
|
|
|
PORTNAME= metasploit
|
|
PORTVERSION= 2.6
|
|
PORTREVISION= 1
|
|
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
|
|
|
|
CONFLICTS= metasploit-3*
|
|
|
|
NO_BUILD= yes
|
|
USE_PERL5_RUN= yes
|
|
REINPLACE_ARGS= -i ''
|
|
|
|
SCRIPTS= msfcli msfconsole msfelfscan msfencode msflogdump msfpayload msfpescan \
|
|
msfupdate msfweb
|
|
|
|
.include <bsd.port.pre.mk>
|
|
|
|
.if ${PERL_LEVEL} < 500600
|
|
IGNORE= 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>
|