httprobe: new ebuild

This commit is contained in:
Yury Martynov 2019-07-14 13:36:07 +03:00
parent 0e3cbaa9ce
commit 69d289278f
No known key found for this signature in database
GPG key ID: EBE62DD0CCEAE19E
3 changed files with 44 additions and 0 deletions

View file

@ -0,0 +1 @@
DIST httprobe-0.1.1.tar.gz 2805 BLAKE2B e7aa140e1035682d2c6095710577d7bd82723459b570bacbd8286bea61eacd8c2eabb2ff76f2d76eb6af5069ce97dbb99d35106f87d5048912a8113068259ef1 SHA512 99f101eef17b5dad77105c4c1f18f105a90a2593cb2ab75a950b572e5a92b132642939e9a1e308d65d39fca2b6a8ad4cf5a96cc564c345077a6c287dcf308863

View file

@ -0,0 +1,35 @@
# Copyright 1999-2019 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"
KEYWORDS="~amd64"
LICENSE="Unlicense"
IUSE=""
SLOT=0
RDEPEND=""
DEPEND=">=dev-lang/go-1.12"
src_compile() {
GOPATH="${S}:$(get_golibdir_gopath)" \
GOCACHE="${T}/go-cache" \
go build -v -work -x -ldflags="-s -w" "${EGO_PN}" || die
}
src_install() {
GOPATH="${S}:$(get_golibdir_gopath)" \
GOCACHE="${T}/go-cache" \
go install -v -work -x -ldflags="-s -w" "${EGO_PN}" || die
dobin bin/${PN}
dodoc src/"${EGO_PN}"/README.md
}

View file

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "http://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person">
<email>email@linxon.ru</email>
<name>Yury Martynov</name>
</maintainer>
</pkgmetadata>