source: trunk/dports/security/metasploit2/Portfile @ 50984

Last change on this file since 50984 was 50984, checked in by and.damore@…, 10 years ago

Maintainer email change, second batch, mail without @macports.org domain are put in domain:user form.

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 2.0 KB
Line 
1# $Id: Portfile 50984 2009-05-14 21:08:43Z and.damore@macports.org $
2
3PortSystem 1.0
4name            metasploit2
5version         2.7
6revision        0
7categories      security
8maintainers     darkart.com:opendarwin.org
9description     Tools and information for security research and pentesting
10homepage        http://metasploit.com/
11platforms       darwin
12
13long_description \
14                The Metasploit Project goal is to provide useful information to people \
15                who perform penetration testing, IDS signature development, and exploit \
16                research. This framework was created to fill the gaps in the information \
17                publicly available on various exploitation techniques and to create a \
18                useful resource for exploit developers. The tools and information are \
19                provided for legal security research and testing purposes only.
20
21master_sites    http://www.metasploit.com/tools/
22
23distfiles       framework-${version}.tar.gz
24worksrcdir      framework-${version}
25
26checksums       md5 ea592cfb006e1b2510b533cece4ecb18 \
27                sha1 da5d41dfa13e549aacd4fbf2994877cbe80ceed9
28
29depends_lib     path:bin/perl:perl5 \
30                port:p5-term-readline-gnu \
31                port:p5-net-ssleay
32
33use_configure   no
34build           {
35                        ## remove the .svn/ directories, no need to move them around
36                        system "cd ${worksrcpath} && find . -type d -name '\.svn' | xargs /bin/rm -rf"
37                        foreach file [glob -directory ${worksrcpath} msf*] {
38                                reinplace "s|#!/usr/bin/perl|#!${prefix}/bin/perl|" $file
39                        }
40                }
41destroot        { 
42                        set metasploitTargetDir "libexec/metasploit2"
43                        xinstall -d -m 755 ${destroot}/${prefix}/${metasploitTargetDir}
44                        foreach file [glob -directory ${workpath}/${worksrcdir} *]  {
45                                file copy ${file} ${destroot}/${prefix}/${metasploitTargetDir}
46                        }
47                        foreach file [glob -directory ${destroot}/${prefix}/${metasploitTargetDir} msf*]  {
48                                set useFile [file tail ${file}]
49## 'file link' doesn't play nice, it doesn't (seem) to want to do relative paths...
50##                              file link -symbolic ${useFile} ../${metasploitTargetDir}/${useFile}
51## so use 'system "ln -s ..."' instead.
52                                system "cd ${destroot}/${prefix}/sbin && /bin/ln -s ../${metasploitTargetDir}/${useFile} ${useFile}"
53                        }
54                 }
55
56
57
58#
59##EOF
Note: See TracBrowser for help on using the repository browser.