# -*- 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.3 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  ab7489f7d7f6ed55145d3580b565567730eaa148 \
                        sha256  2f4cfc8bea214db05d958bc0faf468e97e646b0b2e6c9dba45f4ff122393cdc0 \
                        size    44236

go.vendors          golang.org/x/text \
                        lock    v0.42.0 \
                        rmd160  302e56745bfea393bfb08e557b03a2869bcec7c9 \
                        sha256  857cac6cabae7ad0adc0a2c682b9136015bd30f065afc7e3530e7964bbebf456 \
                        size    6774645 \
                    golang.org/x/sync \
                        lock    v0.23.0 \
                        rmd160  2a21874d9e41b0a032f08824a20d292ae1fb22b8 \
                        sha256  dee0c5d69d22e132ffd534859f7d74cc97b8e3aec39d1f979e4bdf636f6077cc \
                        size    18340 \
                    golang.org/x/net \
                        lock    v0.59.0 \
                        rmd160  66e2c2d4fbc6f8150565d0bfc2d871d0acfe872d \
                        sha256  556d55f97742ebf18e915ad7f940d2afecd24bd9669804c990b08c25a0553821 \
                        size    1460608 \
                    github.com/weppos/publicsuffix-go \
                        lock    v0.50.3 \
                        rmd160  3be35a224b7739d0525457c471bb8fbc594ab9ce \
                        sha256  b9d46c785a9873540818360d3a80021ccc75c61ceba9e2f801b1797b84ca73e6 \
                        size    73094 \
                    github.com/lib/pq \
                        lock    v1.12.3 \
                        rmd160  5d48ed8177923c0aa6f9836cbb8abb98f842ef61 \
                        sha256  4f1e9670a80e6f5052e64ca1bb92eb7fc6eace1c1c0a7e40e8d7f3e72efc3f3c \
                        size    162670
