# -*- 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 67464 2010-05-10 15:31:35Z snc@macports.org $

PortSystem          1.0

name                skipfish
version             1.34b
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           md5     b988a2d8ddbef7c3cbecbbafd2ec7269 \
                    sha1    f1d91ef84830d62ca84bd134b4cb37f34d342f42 \
                    rmd160  1eac81d3a466ea772c7b5185f9ca748c678004db

worksrcdir          ${name}

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