[143378] trunk/dports/security/metasploit2/Portfile

mojca at macports.org mojca at macports.org
Sat Dec 12 09:43:59 PST 2015


Revision: 143378
          https://trac.macports.org/changeset/143378
Author:   mojca at macports.org
Date:     2015-12-11 13:22:24 -0800 (Fri, 11 Dec 2015)
Log Message:
-----------
metasploit2: whitespace, first line, checksums only

Modified Paths:
--------------
    trunk/dports/security/metasploit2/Portfile

Modified: trunk/dports/security/metasploit2/Portfile
===================================================================
--- trunk/dports/security/metasploit2/Portfile	2015-12-11 20:47:09 UTC (rev 143377)
+++ trunk/dports/security/metasploit2/Portfile	2015-12-11 21:22:24 UTC (rev 143378)
@@ -1,62 +1,63 @@
+# -*- 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
 # $Id$
 
-PortSystem 1.0
+PortSystem          1.0
 
-name		metasploit2
-conflicts       metasploit3
-version		2.7
-revision	2
-categories	security
-license		{Artistic-1 GPL-2} GPL-2+ APSL-1.1 Noncommercial Restrictive
-maintainers	nomaintainer
-description	Tools and information for security research and pentesting
-homepage	http://metasploit.com/
-platforms	darwin
+name                metasploit2
+conflicts           metasploit3
+version             2.7
+revision            2
+categories          security
+license             {Artistic-1 GPL-2} GPL-2+ APSL-1.1 Noncommercial Restrictive
+maintainers         nomaintainer
+homepage            http://metasploit.com/
+platforms           darwin
 
-long_description \
-		The Metasploit Project goal is to provide useful information to people \
-		who perform penetration testing, IDS signature development, and exploit \
-		research. This framework was created to fill the gaps in the information \
-		publicly available on various exploitation techniques and to create a \
-		useful resource for exploit developers. The tools and information are \
-		provided for legal security research and testing purposes only.
+description         Tools and information for security research and pentesting
+long_description    The Metasploit Project goal is to provide useful information to people \
+                    who perform penetration testing, IDS signature development, and exploit \
+                    research. This framework was created to fill the gaps in the information \
+                    publicly available on various exploitation techniques and to create a \
+                    useful resource for exploit developers. The tools and information are \
+                    provided for legal security research and testing purposes only.
 
-master_sites	http://www.metasploit.com/tools/
+# This no longer works. New versions are probably available under
+# https://github.com/rapid7/metasploit-framework
+# 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}
+distfiles           framework-${version}.tar.gz
+worksrcdir          framework-${version}
 
-checksums	md5 ea592cfb006e1b2510b533cece4ecb18 \
-		sha1 da5d41dfa13e549aacd4fbf2994877cbe80ceed9
+checksums           rmd160  cfdf2705522c845bb4405413207a7df0f3873b94 \
+                    sha256  516952772aaa8982628460b927c9119850925f870903c5a131a9c9f0390cf77f
 
-depends_lib	port:perl5.16 \
-		port:p5.16-term-readline-gnu \
-		port:p5.16-net-ssleay
+depends_lib         port:perl5.16 \
+                    port:p5.16-net-ssleay \
+                    port:p5.16-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
-			}
-		}
-destroot        {
-			set metasploitTargetDir "libexec/metasploit2"
-			xinstall -d -m 755 ${destroot}${prefix}/${metasploitTargetDir}
-			foreach file [glob -directory ${workpath}/${worksrcdir} *]  {
-				file copy ${file} ${destroot}${prefix}/${metasploitTargetDir}
-			}
-			foreach file [glob -directory ${destroot}${prefix}/${metasploitTargetDir} msf*]  {
-				set useFile [file tail ${file}]
+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
+    }
+}
+
+destroot {
+    set metasploitTargetDir "libexec/metasploit2"
+    xinstall -d -m 755 ${destroot}${prefix}/${metasploitTargetDir}
+    foreach file [glob -directory ${workpath}/${worksrcdir} *]  {
+        file copy ${file} ${destroot}${prefix}/${metasploitTargetDir}
+    }
+    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}
+##              file link -symbolic ${useFile} ../${metasploitTargetDir}/${useFile}
 ## so use 'system "ln -s ..."' instead.
-				system "cd ${destroot}${prefix}/sbin && /bin/ln -s ../${metasploitTargetDir}/${useFile} ${useFile}"
-			}
-		 }
+        system "cd ${destroot}${prefix}/sbin && /bin/ln -s ../${metasploitTargetDir}/${useFile} ${useFile}"
+    }
+}
 
-
-
-#
-##EOF
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.macosforge.org/pipermail/macports-changes/attachments/20151212/fa555176/attachment.html>


More information about the macports-changes mailing list