# -*- 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/hakluke/hakrawler 2.1
categories          net security
maintainers         {i0ntempest @i0ntempest} openmaintainer
license             GPL-3

description         Simple, fast web crawler designed for easy, quick discovery of endpoints and assets within a web application
long_description    ${description}

checksums           ${distname}${extract.suffix} \
                        rmd160  e29fbaf2441b79564e287ba74ca2c74dfba0a655 \
                        sha256  b7bc201003e633b748175e147508752d4380f9b264b2821937416e56c1110723 \
                        size    23451

go.vendors          google.golang.org/protobuf \
                        repo    github.com/protocolbuffers/protobuf-go \
                        lock    v1.27.1 \
                        rmd160  a4ac7b66fd88a34a9ea447476d19ff3c1f2b57dd \
                        sha256  fe1055b9bf6b8792aed1771f56c31f836c24a18d69eaeb13c88990db3d9da7ce \
                        size    1278850 \
                    google.golang.org/appengine \
                        repo    github.com/golang/appengine \
                        lock    v1.6.7 \
                        rmd160  32e6de431630b8126df1d04e36eba2abb57626f1 \
                        sha256  3669d59598e4bd657ec079f151fab47b3aa130adfec35daeb05e079220970cd2 \
                        size    333026 \
                    golang.org/x/xerrors \
                        lock    9bdfabe68543 \
                        rmd160  eee9929ac1c0380402c45b388077c5c505f13311 \
                        sha256  dc1be1d7efb43643507e87352ae7161883c48cb5116a20a1739ab93ab558bccf \
                        size    13661 \
                    golang.org/x/text \
                        lock    v0.3.7 \
                        rmd160  52777fe8a68660aab6e4588322a5949b0ba42e58 \
                        sha256  48971ba6a3123c4fd81b2bdec9fda3cef5815fad76f2407c8a888032462c542d \
                        size    8356115 \
                    golang.org/x/net \
                        lock    27dd8689420f \
                        rmd160  d7b9477ec487c7f547c2d6669088f0b77c4ecd3f \
                        sha256  53a566616d208e83a2ec4a58651a450187a3bef980128571a04b01f6231e162d \
                        size    1229543 \
                    github.com/bits-and-blooms/bitset \
                        lock    v1.1.10 \
                        rmd160  9bb547e08d7aa4db0787459e2e985d88d34ce3a6 \
                        sha256  4b78f1ac06eb7ed1f479e871bfe0b78801faae64bedfac0ba14b8720583913e6 \
                        size    18732 \
                    github.com/temoto/robotstxt \
                        lock    v1.1.2 \
                        rmd160  14236d9aeecb4ee45b09b2d5007ef5bbc8fda768 \
                        sha256  adeb5e521a02d010f4ee5a19e7a006601c34450de80dd4b66296fb618935cea8 \
                        size    17506 \
                    github.com/stretchr/testify \
                        lock    v1.3.0 \
                        rmd160  80582370443047a1d7020211865d85d54c036eea \
                        sha256  ac782171992e3af1c8ac8384cbf4a39706ec5f9e3c6eed57a246e02dce571762 \
                        size    102899 \
                    github.com/saintfish/chardet \
                        lock    3af4cd4741ca \
                        rmd160  a28e893e0cfd20596a47d380744c032b9eb612ba \
                        sha256  6a3692185fbc04a1a327d0baf0113dbf6afb835a44973e4d7584a1e6a142b4c6 \
                        size    267103 \
                    github.com/pmezard/go-difflib \
                        lock    v1.0.0 \
                        rmd160  fc879bfbdef9e3ff50844def58404e2b5a613ab8 \
                        sha256  7cd492737641847266115f3060489a67f63581e521a8ec51efbc280c33fc991f \
                        size    11409 \
                    github.com/nlnwa/whatwg-url \
                        lock    v0.1.0 \
                        rmd160  33c9c699089fe2c46af5006f4b86deefd7f44b32 \
                        sha256  a822117d32f0e6a0972d2fd2d70d7e021b19f488c2dea89e750fcf2c861422f3 \
                        size    41731 \
                    github.com/kennygrant/sanitize \
                        lock    v1.2.4 \
                        rmd160  f426ea62471a54fb687b6f0d762cc47a5cb60c28 \
                        sha256  fb4dbf9c12f179e62a6768b5591f9d63916df94c2fc13daa4c0416b4a8cf5131 \
                        size    8928 \
                    github.com/google/go-cmp \
                        lock    v0.5.5 \
                        rmd160  5caef57da3ce09c102ed270168afa2a5200c2c47 \
                        sha256  be284023d91976ef03d13cb5670e338c09a0a0da9925d7de457f44e33aebb724 \
                        size    102365 \
                    github.com/golang/protobuf \
                        lock    v1.5.2 \
                        rmd160  9924f66e6525b49769f4ef61f7196387185b2f9b \
                        sha256  d7b5f7c44e324b3f510fec1b79de20bd8d7537229b23ad7236769cf3974ce0c7 \
                        size    171736 \
                    github.com/golang/groupcache \
                        lock    41bb18bfe9da \
                        rmd160  dba4526dc11102f7cfc3ee7be23cb1416793e35b \
                        sha256  03b46be967afa501b74a1bf72211b08d6e8f6b2a3b42335105480b6df6e51980 \
                        size    26110 \
                    github.com/gocolly/colly \
                        lock    a61109486557 \
                        rmd160  7d21d140db11baa955a5ff935cd6fedd120e382b \
                        sha256  8476031fc021a7433dd7f1deb816b1a3434bc2f1f9f380a78d9be5e8a0062f6c \
                        size    85235 \
                    github.com/gobwas/glob \
                        lock    v0.2.3 \
                        rmd160  1f472cf991498a8091446eb788fe85e0c5403185 \
                        sha256  2de3694ee0ff41a96b66f9aa3eec51048e620cdd09acc8685f18c3abcd6e14ae \
                        size    25971 \
                    github.com/davecgh/go-spew \
                        lock    v1.1.1 \
                        rmd160  7c02883aa81f81aca14e13a27fdca9e7fbc136f7 \
                        sha256  e85d6afa83e64962e0d63dd4812971eccf2b9b5445eda93f46a4406f0c177d5f \
                        size    42171 \
                    github.com/antchfx/xpath \
                        lock    v1.2.0 \
                        rmd160  d2387e287460865f2fab5fa7b486927f9235ae82 \
                        sha256  4dec266cc94c7d09b15ccbdccbfab10b808db1fde067546ebcca932d2abfa173 \
                        size    28745 \
                    github.com/antchfx/xmlquery \
                        lock    v1.3.9 \
                        rmd160  98c28dcff442a6ca66c3bce44997b7068931e08b \
                        sha256  28ca6731d320aad0847af6a5ff692e15b84f5ffa45663bf31e2d9b7b4bdcd23e \
                        size    20539 \
                    github.com/antchfx/htmlquery \
                        lock    v1.2.4 \
                        rmd160  235027062b039cb069347cb85c3e494f315b40d6 \
                        sha256  222917da59ebb10c3bf72b6196c00cb467bf133efaaf9787edfcf89383aeb60a \
                        size    7552 \
                    github.com/andybalholm/cascadia \
                        lock    v1.3.1 \
                        rmd160  c9646a2a7dafdeac093fd99a8e27153cf24f5c92 \
                        sha256  a567b37da6b02ae582740bf015864a29cfd3b44af4815b0ac1680040fe46f67d \
                        size    33105 \
                    github.com/PuerkitoBio/goquery \
                        lock    v1.8.0 \
                        rmd160  81d239bcf19ee6e8dcadea494b9fc04c96f9480f \
                        sha256  ea72d407535c049adac1a50fd783a5e3a2563dd6e6b60ddfb8a00691c43d78bd \
                        size    105214

# Notes for updating this port:
# Replace go.googlesource.com/protobuf with github.com/protocolbuffers/protobuf-go
# replace github.com/willf/bitset with github.com/bits-and-blooms/bitset

pre-build {
    # remove this once upstream adapts to the new name
    ln -s ${gopath}/src/github.com/bits-and-blooms ${gopath}/src/github.com/willf
}

destroot {
    xinstall -m 0755 ${worksrcpath}/${name} ${destroot}${prefix}/bin/
    set docdir ${prefix}/share/doc/${subport}
    xinstall -d ${destroot}${docdir}
    xinstall -m 0644 -W ${worksrcpath} README.md LICENSE ${destroot}${docdir}
}
