pentoo-overlay/net-misc/httprobe/httprobe-0.1.2.ebuild
Yury Martynov 1767eed4de
net-misc/httprobe: bump to 0.1.2 pre release
Package-Manager: Portage-2.3.89, Repoman-2.3.20
Signed-off-by: Yury Martynov <email@linxon.ru>
2020-03-15 16:54:58 +03:00

31 lines
792 B
Bash

# Copyright 1999-2020 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
EGO_PN="github.com/tomnomnom/httprobe"
inherit eutils 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="Unlicense"
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
}