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

View file

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