traitor-0.0.14.ebuild

This commit is contained in:
Anton Bolshakov 2022-03-13 10:28:54 +08:00
parent b52219fd44
commit bfe6fd7a59
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
2 changed files with 39 additions and 0 deletions

View file

@ -1 +1,2 @@
DIST traitor-0.0.14.tar.gz 1731197 BLAKE2B 0a7ee3e5af203d7fbd8e99ca8665503777f13d35744b4c0d5a8d9e056a10bc0a6871c638e4af6809bc6721017ff90aa221b6e71bdff82e8899db232247169b81 SHA512 d507a4a7aad40a57b38917923411d599895fc40483f30b08955f8536f055aa793ae5e7144303f2df128ff1e8311592913303c69b40eb933a865566900ba9530f
DIST traitor-0.0.3.tar.gz 2117288 BLAKE2B 6449f650e3505bb4435d9b570516032e4d48a83b9175144e78273a1bdbf0c93b76d9370ac178b0e4556eb7f5c3c52f71e535b5ebea804ed73ba9b4e90a34b3b4 SHA512 71a5f0d7d19cbe94c0f4903768f4979f4e0cafb80c3027880a83c5335f5969868c6d9f883dfe512da1a6f8f735da70fecdffd6fdfdaeaa379dfc64e02f2cada5

View file

@ -0,0 +1,38 @@
# Copyright 1999-2022 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=7
# go mod vendor && grep "# g" ./vendor/modules.txt | sort
EGO_PN="github.com/liamg/traitor"
#EGO_VENDOR=(
# "github.com/sirupsen/logrus v1.4.2"
#)
inherit golang-vcs-snapshot
DESCRIPTION="Automatically exploit low-hanging fruit to pop a root shell"
HOMEPAGE="https://github.com/liamg/traitor"
SRC_URI="https://${EGO_PN}/archive/v${PV}.tar.gz -> ${P}.tar.gz
${EGO_VENDOR_URI}"
LICENSE="MIT"
SLOT="0"
KEYWORDS="amd64 ~arm64 x86"
BDEPEND=">=dev-lang/go-1.13"
src_compile() {
GOPATH="${S}:$(get_golibdir_gopath)" \
GOCACHE="${T}/go-cache" \
go build -v -work -x -ldflags="-w" ./... || die
}
src_install(){
GOPATH="${S}:$(get_golibdir_gopath)" \
GOCACHE="${T}/go-cache" \
go install -v -work -x -ldflags="-w" ./... || die
dobin bin/traitor
}