Changeset 143380 for trunk/dports


Ignore:
Timestamp:
Dec 11, 2015, 9:36:46 PM (3 years ago)
Author:
mojca@…
Message:

metasploit2: use p5.22 (#48365, untested)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/dports/security/metasploit2/Portfile

    r143378 r143380  
    33
    44PortSystem          1.0
     5PortGroup           perl5 1.0
    56
    67name                metasploit2
     
    2728master_sites        http://www.metasploit.com/tools/
    2829
    29 distfiles           framework-${version}.tar.gz
    30 worksrcdir          framework-${version}
     30distname            framework-${version}
    3131
    3232checksums           rmd160  cfdf2705522c845bb4405413207a7df0f3873b94 \
    3333                    sha256  516952772aaa8982628460b927c9119850925f870903c5a131a9c9f0390cf77f
    3434
    35 depends_lib         port:perl5.16 \
    36                     port:p5.16-net-ssleay \
    37                     port:p5.16-term-readline-gnu
     35perl5.branches      5.22
     36
     37depends_run         port:perl${perl5.major} \
     38                    port:p${perl5.major}-net-ssleay \
     39                    port:p${perl5.major}-term-readline-gnu
    3840
    3941use_configure       no
     
    4345    system "cd ${worksrcpath} && find . -type d -name '\.svn' | xargs /bin/rm -rf"
    4446    foreach file [glob -directory ${worksrcpath} msf*] {
    45         reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl5.16|" $file
     47        reinplace "s|#!/usr/bin/perl|#!${perl5.bin}|" $file
    4648    }
    4749}
     
    5052    set metasploitTargetDir "libexec/metasploit2"
    5153    xinstall -d -m 755 ${destroot}${prefix}/${metasploitTargetDir}
    52     foreach file [glob -directory ${workpath}/${worksrcdir} *]  {
     54    foreach file [glob -directory ${workpath}/${worksrcdir} *] {
    5355        file copy ${file} ${destroot}${prefix}/${metasploitTargetDir}
    5456    }
    55     foreach file [glob -directory ${destroot}${prefix}/${metasploitTargetDir} msf*]  {
     57    foreach file [glob -directory ${destroot}${prefix}/${metasploitTargetDir} msf*] {
    5658        set useFile [file tail ${file}]
    5759## 'file link' doesn't play nice, it doesn't (seem) to want to do relative paths...
     
    6163    }
    6264}
    63 
Note: See TracChangeset for help on using the changeset viewer.