# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem 1.0
PortGroup github 1.0

github.setup    rbsec sslscan 1.11.10-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+ OpenSSLException}

depends_lib     path:lib/libssl.dylib:openssl

checksums       rmd160  2868cf6a0b81c0e4d4d90c4609dfd3fd2c1f4587 \
                sha256  eb2f29299c4e96b3d062fac582cc1ef1c1ef8e0c281b4e3fc428b977f4e14814

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]"