From 6fbde8aaf51fc0bcaf991519b739b0592c98f740 Mon Sep 17 00:00:00 2001 From: stas Date: Sun, 6 Apr 2008 08:58:21 +0000 Subject: - Add ruby 1.9 support - Implement new knobs for gems and rake (these are included in ruby 1.9 distribution already). Also move gem bits from ruby-gems/Makefile.common to bsd.ruby.mk[1]. Now to depend on gems or rake you should define USE_RUBYGEMS/USE_RAKE accordingly. Also RAKE_BIN variable is provided for pointing to the right rake executable. - Rewrite RUBY_SCHEBANG in awk to eliminate build dependency on ruby. Discussed with: Jonathan Weiss [1] (gems maintainer) Tested by: ports@ --- security/metasploit/Makefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'security/metasploit') diff --git a/security/metasploit/Makefile b/security/metasploit/Makefile index 429fa97a9c4f..b15c6890baad 100644 --- a/security/metasploit/Makefile +++ b/security/metasploit/Makefile @@ -15,7 +15,6 @@ 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.15.6.gemspec:${PORTSDIR}/databases/rubygem-activerecord SCRIPTS= msfcli msfconsole msfd msfencode msflicense msfopcode \ @@ -28,6 +27,10 @@ USE_RUBY= yes .include +.if ${RUBY_VER} == 1.9 +RUN_DEPENDS+= ${LOCALBASE}/bin/gem:${PORTSDIR}/devel/ruby-gems +.endif + .if defined(WITH_MSFGUI) RUN_DEPENDS+= ${RUBY_SITEARCHLIBDIR}/wxruby.so:${PORTSDIR}/x11-toolkits/ruby-wx SCRIPTS+= msfgui -- cgit