# -*- 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: Portfile 80258 2011-07-08 00:09:43Z snc@macports.org $

PortSystem          1.0

name                skipfish
version             2.02b
license             Apache-2.0
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           sha1    5750f51990074e45d71c40c44a379a949e73e0ef \
                    rmd160  c565b2adc64447a03126a1b1fd45f56917c7a03f

patchfiles          patch-config.h.diff
post-patch {
    reinplace s|@@SHARE@@|${prefix}/share/${name}/|g ${worksrcpath}/config.h
}

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}
}
