traitor-0.0.3.ebuild

This commit is contained in:
Anton Bolshakov 2021-04-25 08:56:40 +08:00
parent 571b245d96
commit aebbd807fa
No known key found for this signature in database
GPG key ID: 32BDCED870788F04
3 changed files with 42 additions and 1 deletions

View file

@ -1 +1,2 @@
DIST traitor-0.0.2.tar.gz 2117266 BLAKE2B 3cc78085f3292616d0cc8bb844badcbeca933fb04aadef9ad10f363d86d0d247e97a152ee6003a035d479f76f7a595863a475fdecba9e9eaeb09675c31fc07fd SHA512 133e8b08a34e8364d254ca12a9af171fa7e77b9763523ad236bcf1482fcf011a62b728b5f2328c37d650b0f9229cf4a262e43d6e28c2516c658ca65842494c84
DIST traitor-0.0.3.tar.gz 2117288 BLAKE2B 6449f650e3505bb4435d9b570516032e4d48a83b9175144e78273a1bdbf0c93b76d9370ac178b0e4556eb7f5c3c52f71e535b5ebea804ed73ba9b4e90a34b3b4 SHA512 71a5f0d7d19cbe94c0f4903768f4979f4e0cafb80c3027880a83c5335f5969868c6d9f883dfe512da1a6f8f735da70fecdffd6fdfdaeaa379dfc64e02f2cada5

View file

@ -11,7 +11,7 @@ EGO_PN="github.com/liamg/traitor"
inherit golang-vcs-snapshot
DESCRIPTION="Automatically exploit low-hanging fruit to pop a root shell. Linux privilege escalation made easy!"
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

View file

@ -0,0 +1,40 @@
# Copyright 1999-2021 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"
RESTRICT="mirror"
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
}