- Update to 4.7.2

- Use option helpers
- Convert to STAGEDIR

PR:		ports/183099
Approved by:	maintainer timeout (2 weeks)
This commit is contained in:
Antoine Brodin 2013-11-02 08:54:02 +00:00
parent a1a91e2182
commit cf1d2d6a66
Notes: svn2git 2021-03-31 03:12:20 +00:00
svn path=/head/; revision=332457
2 changed files with 11 additions and 17 deletions

View file

@ -2,8 +2,7 @@
# $FreeBSD$ # $FreeBSD$
PORTNAME= metasploit PORTNAME= metasploit
DISTVERSION= 4.7.0 DISTVERSION= 4.7.2
PORTREVISION= 1
CATEGORIES= security CATEGORIES= security
MASTER_SITES= http://downloads.metasploit.com/data/releases/archive/ MASTER_SITES= http://downloads.metasploit.com/data/releases/archive/
DISTNAME= framework-${DISTVERSION} DISTNAME= framework-${DISTVERSION}
@ -36,32 +35,27 @@ OPTIONS_DEFINE= DB
OPTIONS_DEFAULT=DB OPTIONS_DEFAULT=DB
DB_DESC= Database support DB_DESC= Database support
NO_STAGE= yes DB_RUN_DEPENDS= rubygem-activerecord>=0:${PORTSDIR}/databases/rubygem-activerecord \
.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-metasploit_data_models>=0.15.1:${PORTSDIR}/security/rubygem-metasploit_data_models \
rubygem-pg>=0.11:${PORTSDIR}/databases/rubygem-pg rubygem-pg>=0.11:${PORTSDIR}/databases/rubygem-pg
.endif
post-patch: post-patch:
${REINPLACE_CMD} 's|bundler/setup|rubygems|' ${WRKSRC}/lib/msfenv.rb ${REINPLACE_CMD} 's|bundler/setup|rubygems|' ${WRKSRC}/lib/msfenv.rb
do-install: do-install:
@${MKDIR} ${DATADIR} @${MKDIR} ${STAGEDIR}${DATADIR}
${CP} -Rp ${WRKSRC}/ ${DATADIR} ${CP} -Rp ${WRKSRC}/ ${STAGEDIR}${DATADIR}
.for f in ${SCRIPTS} .for f in ${SCRIPTS}
${LN} -s ${DATADIR}/${f} ${PREFIX}/bin/${f} ${LN} -s ${DATADIR}/${f} ${STAGEDIR}${PREFIX}/bin/${f}
.endfor .endfor
post-install: post-install:
.for f in ${SCRIPTS} .for f in ${SCRIPTS}
${ECHO} "bin/${f}" >> ${TMPPLIST} ${ECHO} "bin/${f}" >> ${TMPPLIST}
.endfor .endfor
@${FIND} ${DATADIR} -type f | ${SED} 's,${PREFIX}/,,' >> ${TMPPLIST} @${FIND} ${STAGEDIR}${DATADIR} -type f | ${SED} 's,${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${DATADIR} -type l | ${SED} 's,${PREFIX}/,,' >> ${TMPPLIST} @${FIND} ${STAGEDIR}${DATADIR} -type l | ${SED} 's,${STAGEDIR}${PREFIX}/,,' >> ${TMPPLIST}
@${FIND} ${DATADIR} -type d | ${SORT} -r | \ @${FIND} ${STAGEDIR}${DATADIR} -type d | ${SORT} -r | \
${SED} 's,${PREFIX}/,, ; s,^,@dirrm ,' >> ${TMPPLIST} ${SED} 's,${STAGEDIR}${PREFIX}/,, ; s,^,@dirrm ,' >> ${TMPPLIST}
.include <bsd.port.mk> .include <bsd.port.mk>

View file

@ -1,2 +1,2 @@
SHA256 (framework-4.7.0.tar.bz2) = 2727c20c895cae12944a213fa42fda3e7ead8523e7714bc195fc4d9a49c0eca2 SHA256 (framework-4.7.2.tar.bz2) = bbbb0cc85585fa148d9e7eefeae09b4eeaf061ba457a7490dee450ca7b150f8f
SIZE (framework-4.7.0.tar.bz2) = 35123599 SIZE (framework-4.7.2.tar.bz2) = 35591358