[143380] trunk/dports/security/metasploit2/Portfile
mojca at macports.org
mojca at macports.org
Sat Dec 12 09:44:29 PST 2015
Revision: 143380
https://trac.macports.org/changeset/143380
Author: mojca at macports.org
Date: 2015-12-11 13:36:46 -0800 (Fri, 11 Dec 2015)
Log Message:
-----------
metasploit2: use p5.22 (#48365, untested)
Modified Paths:
--------------
trunk/dports/security/metasploit2/Portfile
Modified: trunk/dports/security/metasploit2/Portfile
===================================================================
--- trunk/dports/security/metasploit2/Portfile 2015-12-11 21:33:32 UTC (rev 143379)
+++ trunk/dports/security/metasploit2/Portfile 2015-12-11 21:36:46 UTC (rev 143380)
@@ -2,6 +2,7 @@
# $Id$
PortSystem 1.0
+PortGroup perl5 1.0
name metasploit2
conflicts metasploit3
@@ -26,33 +27,34 @@
# Maybe it's time to retire version 2 of this port anyway
master_sites http://www.metasploit.com/tools/
-distfiles framework-${version}.tar.gz
-worksrcdir framework-${version}
+distname framework-${version}
checksums rmd160 cfdf2705522c845bb4405413207a7df0f3873b94 \
sha256 516952772aaa8982628460b927c9119850925f870903c5a131a9c9f0390cf77f
-depends_lib port:perl5.16 \
- port:p5.16-net-ssleay \
- port:p5.16-term-readline-gnu
+perl5.branches 5.22
+depends_run port:perl${perl5.major} \
+ port:p${perl5.major}-net-ssleay \
+ port:p${perl5.major}-term-readline-gnu
+
use_configure no
build {
## remove the .svn/ directories, no need to move them around
system "cd ${worksrcpath} && find . -type d -name '\.svn' | xargs /bin/rm -rf"
foreach file [glob -directory ${worksrcpath} msf*] {
- reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl5.16|" $file
+ reinplace "s|#!/usr/bin/perl|#!${perl5.bin}|" $file
}
}
destroot {
set metasploitTargetDir "libexec/metasploit2"
xinstall -d -m 755 ${destroot}${prefix}/${metasploitTargetDir}
- foreach file [glob -directory ${workpath}/${worksrcdir} *] {
+ foreach file [glob -directory ${workpath}/${worksrcdir} *] {
file copy ${file} ${destroot}${prefix}/${metasploitTargetDir}
}
- foreach file [glob -directory ${destroot}${prefix}/${metasploitTargetDir} msf*] {
+ 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}
@@ -60,4 +62,3 @@
system "cd ${destroot}${prefix}/sbin && /bin/ln -s ../${metasploitTargetDir}/${useFile} ${useFile}"
}
}
-
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/8f6c52fb/attachment.html>
More information about the macports-changes
mailing list