diff --git a/app-exploits/traitor/Manifest b/app-exploits/traitor/Manifest index 7147c2c3e..d65c1845d 100644 --- a/app-exploits/traitor/Manifest +++ b/app-exploits/traitor/Manifest @@ -1,2 +1 @@ DIST traitor-0.0.14.tar.gz 1731197 BLAKE2B 0a7ee3e5af203d7fbd8e99ca8665503777f13d35744b4c0d5a8d9e056a10bc0a6871c638e4af6809bc6721017ff90aa221b6e71bdff82e8899db232247169b81 SHA512 d507a4a7aad40a57b38917923411d599895fc40483f30b08955f8536f055aa793ae5e7144303f2df128ff1e8311592913303c69b40eb933a865566900ba9530f -DIST traitor-0.0.3.tar.gz 2117288 BLAKE2B 6449f650e3505bb4435d9b570516032e4d48a83b9175144e78273a1bdbf0c93b76d9370ac178b0e4556eb7f5c3c52f71e535b5ebea804ed73ba9b4e90a34b3b4 SHA512 71a5f0d7d19cbe94c0f4903768f4979f4e0cafb80c3027880a83c5335f5969868c6d9f883dfe512da1a6f8f735da70fecdffd6fdfdaeaa379dfc64e02f2cada5 diff --git a/app-exploits/traitor/metadata.xml b/app-exploits/traitor/metadata.xml new file mode 100644 index 000000000..711df9f40 --- /dev/null +++ b/app-exploits/traitor/metadata.xml @@ -0,0 +1,11 @@ + + + + + unknown@pentoo.ch + Author Unknown + + + liamg/traitor + + diff --git a/app-exploits/traitor/traitor-0.0.14.ebuild b/app-exploits/traitor/traitor-0.0.14.ebuild index da3581a29..fc23a7988 100644 --- a/app-exploits/traitor/traitor-0.0.14.ebuild +++ b/app-exploits/traitor/traitor-0.0.14.ebuild @@ -1,21 +1,13 @@ -# Copyright 1999-2022 Gentoo Authors +# Copyright 1999-2024 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -# 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 +inherit go-module 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}" +SRC_URI="https://github.com/liamg/traitor/archive/v${PV}.tar.gz -> ${P}.tar.gz" LICENSE="MIT" SLOT="0" @@ -24,15 +16,12 @@ 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 + #ego build + make build } src_install(){ - GOPATH="${S}:$(get_golibdir_gopath)" \ - GOCACHE="${T}/go-cache" \ - go install -v -work -x -ldflags="-w" ./... || die + dobin traitor - dobin bin/traitor + default } diff --git a/app-exploits/traitor/traitor-0.0.3.ebuild b/app-exploits/traitor/traitor-0.0.3.ebuild deleted file mode 100644 index 5dc192324..000000000 --- a/app-exploits/traitor/traitor-0.0.3.ebuild +++ /dev/null @@ -1,38 +0,0 @@ -# Copyright 1999-2021 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -# 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 -}