[44590] trunk/dports/security/metasploit2/Portfile

ricci at macports.org ricci at macports.org
Tue Dec 30 19:55:21 PST 2008


Revision: 44590
          http://trac.macports.org/changeset/44590
Author:   ricci at macports.org
Date:     2008-12-30 19:55:20 -0800 (Tue, 30 Dec 2008)
Log Message:
-----------
remove cd command usage as per #17831 (basically used change in said ticket)

Modified Paths:
--------------
    trunk/dports/security/metasploit2/Portfile

Modified: trunk/dports/security/metasploit2/Portfile
===================================================================
--- trunk/dports/security/metasploit2/Portfile	2008-12-31 03:51:58 UTC (rev 44589)
+++ trunk/dports/security/metasploit2/Portfile	2008-12-31 03:55:20 UTC (rev 44590)
@@ -44,13 +44,12 @@
 			foreach file [glob -directory ${workpath}/${worksrcdir} *]  {
 				file copy ${file} ${destroot}/${prefix}/${metasploitTargetDir}
 			}
-			cd ${destroot}/${prefix}/sbin
 			foreach file [glob -directory ${destroot}/${prefix}/${metasploitTargetDir} msf*]  {
 				set useFile [file tail ${file}]
 ## 'file link' doesn't play nice, it doesn't (seem) to want to do relative paths...
 ##				file link -symbolic ${useFile} ../${metasploitTargetDir}/${useFile}
 ## so use 'system "ln -s ..."' instead.
-				system "ln -s ../${metasploitTargetDir}/${useFile} ${useFile}"
+				system "cd ${destroot}/${prefix}/sbin && /bin/ln -s ../${metasploitTargetDir}/${useFile} ${useFile}"
 			}
 		 }
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20081230/df95d8c7/attachment.html>


More information about the macports-changes mailing list