# -*- 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           golang 1.0

go.setup            github.com/lanrat/certgraph 0.1.2 v
go.toolchain_min    1.23.0
revision            0

description         \
    An open source intelligence tool to crawl the graph of certificate \
    Alternate Names

long_description    \
    CertGraph crawls SSL certificates creating a directed graph where each \
    domain is a node and the certificate alternative names for that domain\'s \
    certificate are the edges to other domain nodes. New domains are printed \
    as they are found. In Detailed mode upon completion the Graph's adjacency \
    list is printed. \n\
    Crawling defaults to collecting certificate by connecting over TCP, \
    however there are multiple drivers that can search Certificate \
    Transparency logs. \n\
    This tool was designed to be used for host name enumeration via SSL \
    certificates, but it can also show you a \"chain\" of trust between \
    domains and the certificates that re-used between them.

categories          net security
installs_libs       no
license             GPL-2
maintainers         {gmail.com:herby.gillot @herbygillot} \
                    openmaintainer

build.args-append   -ldflags \"-X main.version=${version}\"

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
}

checksums           ${distname}${extract.suffix} \
                        rmd160  42a72e7c3930e9350b4170ff57673cf2907f767c \
                        sha256  233b6bf6c081d88c63ed26b2d11d09a74e55f3dfc860823fdf946dc455a1d135 \
                        size    48260

go.vendors          golang.org/x/text \
                        lock    v0.27.0 \
                        rmd160  3e107b85875c286ddcfc1b54394511131beacef8 \
                        sha256  e17d0f44e43c08335322047d9310665e8cb0b4f796aff6efb5d2e6f89a9ee7a6 \
                        size    8974673 \
                    golang.org/x/sync \
                        lock    v0.16.0 \
                        rmd160  68d9738ce548abe5fee7f08d9a7ce87c6a3c56a8 \
                        sha256  490f41af712f24ebdd058f7b66666645800c32c66697c3f3878bc985a2cdac16 \
                        size    18193 \
                    golang.org/x/net \
                        lock    v0.42.0 \
                        rmd160  6fa0b8351464db25d1033c94a352d5776a063b53 \
                        sha256  3eb38644e1166af6362d1128cff5a62c43640df97142513bb9e7b0eabc0490fe \
                        size    1504674 \
                    github.com/weppos/publicsuffix-go \
                        lock    v0.40.2 \
                        rmd160  e17b6696d5cb2e22b1b00291ec45e42311f28289 \
                        sha256  d437b07f7cfe36107c1108d68eed6dc0a1d4a3e08ee4af8be69ca921ee559e1a \
                        size    71904 \
                    github.com/lib/pq \
                        lock    v1.10.9 \
                        rmd160  beb0e233773f49d8d08ee991abf23bc8febf69d0 \
                        sha256  08610bf0370b202bee369b7303c3085e02c7f6fdfd42a3f58e8f033088151eea \
                        size    114528
