[44588] trunk/dports/security/metasploit3/Portfile

ricci at macports.org ricci at macports.org
Tue Dec 30 19:49:52 PST 2008


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

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

Modified: trunk/dports/security/metasploit3/Portfile
===================================================================
--- trunk/dports/security/metasploit3/Portfile	2008-12-31 03:36:47 UTC (rev 44587)
+++ trunk/dports/security/metasploit3/Portfile	2008-12-31 03:49:52 UTC (rev 44588)
@@ -58,13 +58,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/923d6b1d/attachment-0001.html>


More information about the macports-changes mailing list