[65088] trunk/dports/security

snc at macports.org snc at macports.org
Sun Mar 21 09:19:40 PDT 2010


Revision: 65088
          http://trac.macports.org/changeset/65088
Author:   snc at macports.org
Date:     2010-03-21 09:19:36 -0700 (Sun, 21 Mar 2010)
Log Message:
-----------
create skipfish

Added Paths:
-----------
    trunk/dports/security/skipfish/
    trunk/dports/security/skipfish/Portfile
    trunk/dports/security/skipfish/files/
    trunk/dports/security/skipfish/files/patch-report.c.diff
    trunk/dports/security/skipfish/files/patch-skipfish.c.diff

Added: trunk/dports/security/skipfish/Portfile
===================================================================
--- trunk/dports/security/skipfish/Portfile	                        (rev 0)
+++ trunk/dports/security/skipfish/Portfile	2010-03-21 16:19:36 UTC (rev 65088)
@@ -0,0 +1,38 @@
+# -*- coding: utf-8; mode: tcl; tab-width: 4; truncate-lines: t; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:et:sw=4:ts=4:sts=4
+# $Id$
+
+PortSystem          1.0
+
+name                skipfish
+version             1.06b
+categories          security
+maintainers         snc openmaintainer
+description         web application security scanner
+long_description    A fully automated, active web application security \
+                    reconnaissance tool.
+
+homepage            http://code.google.com/p/skipfish/
+platforms           darwin
+depends_lib         port:openssl port:libidn port:zlib
+
+master_sites        googlecode
+extract.suffix      .tgz
+checksums           md5     b9109b949afa12c72b4fddb6934b8db7 \
+                    sha1    a395a70022490fe836e119a1c8addda434c3b737 \
+                    rmd160  181487c8a3c37ebf10f2a5fd6ddde93011fe159f
+
+worksrcdir          ${name}
+
+patchfiles          patch-report.c.diff patch-skipfish.c.diff
+post-patch {
+    reinplace s|@@SHARE@@|${prefix}/share/${name}/|g ${worksrcpath}/report.c
+    reinplace s|@@SHARE@@|${prefix}/share/${name}/|g ${worksrcpath}/skipfish.c
+}
+
+use_configure       no
+
+destroot {
+    file mkdir ${destroot}${prefix}/share/${name}
+    file copy ${worksrcpath}/skipfish ${destroot}${prefix}/bin/skipfish
+    file copy ${worksrcpath}/assets/ ${destroot}${prefix}/share/${name}
+}


Property changes on: trunk/dports/security/skipfish/Portfile
___________________________________________________________________
Added: svn:keywords:Id
   + 
Added: svn:eol-style
   + native

Added: trunk/dports/security/skipfish/files/patch-report.c.diff
===================================================================
--- trunk/dports/security/skipfish/files/patch-report.c.diff	                        (rev 0)
+++ trunk/dports/security/skipfish/files/patch-report.c.diff	2010-03-21 16:19:36 UTC (rev 65088)
@@ -0,0 +1,20 @@
+--- report.c.orig	2010-03-21 11:50:07.000000000 -0400
++++ report.c	2010-03-21 11:50:25.000000000 -0400
+@@ -715,7 +715,7 @@
+   if (d->d_name[0] == '.' || !strcmp(d->d_name, "COPYING")) return 0;
+ 
+   itmp = ck_alloc(6 + strlen(d->d_name) + 2);
+-  sprintf((char*)itmp, "assets/%s", d->d_name);
++  sprintf((char*)itmp, "@@SHARE@@assets/%s", d->d_name);
+   i = open((char*)itmp, O_RDONLY);
+ 
+   otmp = ck_alloc(strlen((char*)ca_out_dir) + strlen(d->d_name) + 2);
+@@ -741,7 +741,7 @@
+ static void copy_static_code(u8* out_dir) {
+   struct dirent** d;
+   ca_out_dir = out_dir;
+-  scandir("assets", &d, copy_asset, NULL);
++  scandir("@@SHARE@@assets", &d, copy_asset, NULL);
+ }
+ 
+ 

Added: trunk/dports/security/skipfish/files/patch-skipfish.c.diff
===================================================================
--- trunk/dports/security/skipfish/files/patch-skipfish.c.diff	                        (rev 0)
+++ trunk/dports/security/skipfish/files/patch-skipfish.c.diff	2010-03-21 16:19:36 UTC (rev 65088)
@@ -0,0 +1,13 @@
+--- skipfish.c.orig	2010-03-21 11:49:36.000000000 -0400
++++ skipfish.c	2010-03-21 11:49:58.000000000 -0400
+@@ -370,8 +370,8 @@
+ 
+   }
+ 
+-  if (access("assets/index.html", R_OK))
+-    PFATAL("Unable to access 'assets/index.html' - wrong directory?");
++  if (access("@@SHARE@@assets/index.html", R_OK))
++    PFATAL("Unable to access '@@SHARE@@assets/index.html' - wrong directory?");
+ 
+   srandom(seed);
+ 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100321/e69f6050/attachment-0001.html>


More information about the macports-changes mailing list