# -*- 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/owasp-amass/amass 4.2.0 v
revision            0

homepage            https://owasp.org/www-project-amass

description         In-depth Attack Surface Mapping and Asset Discovery

long_description    The OWASP Amass Project performs network mapping of \
                    attack surfaces and external asset discovery using open \
                    source information gathering and active reconnaissance \
                    techniques. This includes gathering information from \
                    APIs, certificates, DNS, routing, web & search scraping, \
                    web archives, and WHOIS.

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

checksums           rmd160  d808938e72b1f66157736c733e6d2bf3d96e304d \
                    sha256  cc6b88593972e7078b73f07a0cef2cd0cd3702694cbc1f727829340a3d33425c \
                    size    20440348

go.offline_build no

build.target        ./cmd/${name}

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

    xinstall -d ${destroot}${prefix}/share/${name}

    copy \
        ${worksrcpath}/examples ${destroot}${prefix}/share/${name}/
}