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

metasploit2: whitespace, first line, checksums only

File:
1 edited

Legend:

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

    r116116 r143378  
     1# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:filetype=tcl:et:sw=4:ts=4:sts=4
    12# $Id$
    23
    3 PortSystem 1.0
     4PortSystem          1.0
    45
    5 name            metasploit2
    6 conflicts       metasploit3
    7 version         2.7
    8 revision        2
    9 categories      security
    10 license         {Artistic-1 GPL-2} GPL-2+ APSL-1.1 Noncommercial Restrictive
    11 maintainers     nomaintainer
    12 description     Tools and information for security research and pentesting
    13 homepage        http://metasploit.com/
    14 platforms       darwin
     6name                metasploit2
     7conflicts           metasploit3
     8version             2.7
     9revision            2
     10categories          security
     11license             {Artistic-1 GPL-2} GPL-2+ APSL-1.1 Noncommercial Restrictive
     12maintainers         nomaintainer
     13homepage            http://metasploit.com/
     14platforms           darwin
    1515
    16 long_description \
    17                 The Metasploit Project goal is to provide useful information to people \
    18                 who perform penetration testing, IDS signature development, and exploit \
    19                 research. This framework was created to fill the gaps in the information \
    20                 publicly available on various exploitation techniques and to create a \
    21                 useful resource for exploit developers. The tools and information are \
    22                 provided for legal security research and testing purposes only.
     16description         Tools and information for security research and pentesting
     17long_description    The Metasploit Project goal is to provide useful information to people \
     18                    who perform penetration testing, IDS signature development, and exploit \
     19                    research. This framework was created to fill the gaps in the information \
     20                    publicly available on various exploitation techniques and to create a \
     21                    useful resource for exploit developers. The tools and information are \
     22                    provided for legal security research and testing purposes only.
    2323
    24 master_sites    http://www.metasploit.com/tools/
     24# This no longer works. New versions are probably available under
     25# https://github.com/rapid7/metasploit-framework
     26# Maybe it's time to retire version 2 of this port anyway
     27master_sites        http://www.metasploit.com/tools/
    2528
    26 distfiles       framework-${version}.tar.gz
    27 worksrcdir      framework-${version}
     29distfiles           framework-${version}.tar.gz
     30worksrcdir          framework-${version}
    2831
    29 checksums       md5 ea592cfb006e1b2510b533cece4ecb18 \
    30                 sha1 da5d41dfa13e549aacd4fbf2994877cbe80ceed9
     32checksums           rmd160  cfdf2705522c845bb4405413207a7df0f3873b94 \
     33                    sha256  516952772aaa8982628460b927c9119850925f870903c5a131a9c9f0390cf77f
    3134
    32 depends_lib     port:perl5.16 \
    33                 port:p5.16-term-readline-gnu \
    34                 port:p5.16-net-ssleay
     35depends_lib         port:perl5.16 \
     36                    port:p5.16-net-ssleay \
     37                    port:p5.16-term-readline-gnu
    3538
    36 use_configure   no
    37 build           {
    38                         ## remove the .svn/ directories, no need to move them around
    39                         system "cd ${worksrcpath} && find . -type d -name '\.svn' | xargs /bin/rm -rf"
    40                         foreach file [glob -directory ${worksrcpath} msf*] {
    41                                 reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl5.16|" $file
    42                         }
    43                 }
    44 destroot        {
    45                         set metasploitTargetDir "libexec/metasploit2"
    46                         xinstall -d -m 755 ${destroot}${prefix}/${metasploitTargetDir}
    47                         foreach file [glob -directory ${workpath}/${worksrcdir} *]  {
    48                                 file copy ${file} ${destroot}${prefix}/${metasploitTargetDir}
    49                         }
    50                         foreach file [glob -directory ${destroot}${prefix}/${metasploitTargetDir} msf*]  {
    51                                 set useFile [file tail ${file}]
     39use_configure       no
     40
     41build {
     42    ## remove the .svn/ directories, no need to move them around
     43    system "cd ${worksrcpath} && find . -type d -name '\.svn' | xargs /bin/rm -rf"
     44    foreach file [glob -directory ${worksrcpath} msf*] {
     45        reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl5.16|" $file
     46    }
     47}
     48
     49destroot {
     50    set metasploitTargetDir "libexec/metasploit2"
     51    xinstall -d -m 755 ${destroot}${prefix}/${metasploitTargetDir}
     52    foreach file [glob -directory ${workpath}/${worksrcdir} *]  {
     53        file copy ${file} ${destroot}${prefix}/${metasploitTargetDir}
     54    }
     55    foreach file [glob -directory ${destroot}${prefix}/${metasploitTargetDir} msf*]  {
     56        set useFile [file tail ${file}]
    5257## 'file link' doesn't play nice, it doesn't (seem) to want to do relative paths...
    53 ##                              file link -symbolic ${useFile} ../${metasploitTargetDir}/${useFile}
     58##              file link -symbolic ${useFile} ../${metasploitTargetDir}/${useFile}
    5459## so use 'system "ln -s ..."' instead.
    55                                 system "cd ${destroot}${prefix}/sbin && /bin/ln -s ../${metasploitTargetDir}/${useFile} ${useFile}"
    56                         }
    57                  }
     60        system "cd ${destroot}${prefix}/sbin && /bin/ln -s ../${metasploitTargetDir}/${useFile} ${useFile}"
     61    }
     62}
    5863
    59 
    60 
    61 #
    62 ##EOF
Note: See TracChangeset for help on using the changeset viewer.