source: trunk/dports/security/metasploit3/Portfile

Last change on this file was 143383, checked in by mojca@…, 22 months ago

metasploit3: perl is gone, all dependencies are runtime, link to version 4 on github (#49985)

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 3.0 KB
Line 
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
2# $Id: Portfile 143383 2015-12-11 21:54:52Z ryandesign@macports.org $
3
4PortSystem          1.0
5
6name                metasploit3
7conflicts           metasploit2
8version             3.0
9revision            1
10categories          security
11maintainers         nomaintainer
12homepage            http://metasploit.com/
13platforms           darwin
14
15description         Tools and information for security research and pentesting
16long_description    The Metasploit Project goal is to provide useful information to people \
17                    who perform penetration testing, IDS signature development, and exploit \
18                    research. This framework was created to fill the gaps in the information \
19                    publicly available on various exploitation techniques and to create a \
20                    useful resource for exploit developers. The tools and information are \
21                    provided for legal security research and testing purposes only.
22
23# New versions are probably available under
24# https://github.com/rapid7/metasploit-framework
25#master_sites       http://downloads.metasploit.com/data/releases/
26master_sites        macports_distfiles
27
28distname            framework-${version}
29
30checksums           rmd160  849305ffcf0ccbdf16d3dac8d7ab20ac745fbcd8 \
31                    sha256  cb27df6dafe7b2d1c2d2174000afd07965cdc09e759e8cda5147cfc58e445251
32
33depends_run         port:ruby \
34                    port:rb-libglade2 \
35                    port:rb-gtk2 \
36                    port:rb-rails \
37                    port:readline
38
39
40patchfiles          patch-data-msfweb-config-environment.rb \
41                    patch-msfcli \
42                    patch-msfconsole \
43                    patch-msfd \
44                    patch-msfencode \
45                    patch-msfgui \
46                    patch-msfopcode \
47                    patch-msfpayload \
48                    patch-msfpescan \
49                    patch-msfweb \
50                    patch-tools-module_license.rb \
51                    patch-tools-msf_irb_shell.rb
52
53use_configure       no
54
55build {
56    ## remove the .svn/ directories, no need to move them around
57    system "cd ${worksrcpath} && find . -type d -name '\.svn' | xargs /bin/rm -rf"
58}
59
60destroot {
61    set metasploitTargetDir "libexec/${name}"
62    xinstall -d -m 755 ${destroot}${prefix}/${metasploitTargetDir}
63    foreach file [glob -directory ${workpath}/${worksrcdir} *] {
64        file copy ${file} ${destroot}${prefix}/${metasploitTargetDir}
65    }
66    foreach file [glob -directory ${destroot}${prefix}/${metasploitTargetDir} msf*] {
67        set useFile [file tail ${file}]
68## 'file link' doesn't play nice, it doesn't (seem) to want to do relative paths...
69##              file link -symbolic ${useFile} ../${metasploitTargetDir}/${useFile}
70## so use 'system "ln -s ..."' instead.
71        system "cd ${destroot}${prefix}/sbin && /bin/ln -s ../${metasploitTargetDir}/${useFile} ${useFile}"
72    }
73}
Note: See TracBrowser for help on using the repository browser.