mirror of
https://github.com/pentoo/pentoo-overlay
synced 2025-12-12 19:36:45 +01:00
31 lines
779 B
Bash
31 lines
779 B
Bash
# Copyright 1999-2023 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
EGO_PN="github.com/tomnomnom/httprobe"
|
|
|
|
inherit golang-vcs-snapshot
|
|
|
|
DESCRIPTION="Take a list of domains and probe for working HTTP and HTTPS servers"
|
|
HOMEPAGE="https://github.com/tomnomnom/httprobe"
|
|
SRC_URI="https://github.com/tomnomnom/httprobe/archive/v${PV}.tar.gz -> ${P}.tar.gz"
|
|
|
|
LICENSE="MIT"
|
|
SLOT="0"
|
|
KEYWORDS="~amd64"
|
|
|
|
src_compile() {
|
|
GOPATH="${S}:$(get_golibdir_gopath)" \
|
|
GOCACHE="${T}/go-cache" \
|
|
go build -v -work -x -ldflags="-w" "${EGO_PN}" || die
|
|
}
|
|
|
|
src_install() {
|
|
GOPATH="${S}:$(get_golibdir_gopath)" \
|
|
GOCACHE="${T}/go-cache" \
|
|
go install -v -work -x -ldflags="-w" "${EGO_PN}" || die
|
|
|
|
dobin bin/${PN}
|
|
dodoc src/"${EGO_PN}"/README.md
|
|
}
|