# $Id$

PortSystem 1.0
PortGroup github 1.0

github.setup    rbsec sslscan 1.11.7-rbsec
categories      net
maintainers     raimue \
                openmaintainer
description     Fast SSL scanner
long_description \
    SSLScan determines what ciphers are supported on \
    SSL-based services, such as HTTPS. The output will \
    include the certificate and the prefered ciphers of \
    the SSL service in plaintext or XML.
platforms       darwin
license         GPL-3

depends_lib     path:lib/libssl.dylib:openssl

checksums       rmd160  ba1f3b929cdf865a499f43d9ae4c572d9aa2c4e8 \
                sha256  9e25cba93876d59cf8e5f0a3d3c2471f3c1bc980d87225976cff9dc76872be61

patchfiles      patch-Makefile.diff

post-patch {
    reinplace "s|__PREFIX__|${prefix}|g" ${worksrcpath}/Makefile
}

use_configure   no

build.args      CC="${configure.cc}" \
                CFLAGS="[get_canonical_archflags cc]" \
                LDFLAGS="[get_canonical_archflags ld]"