From 513a6ae22a31f16f37c4231d26d2098edeb7e94d Mon Sep 17 00:00:00 2001 From: Yury Martynov Date: Sun, 9 Jun 2019 00:40:23 +0300 Subject: [PATCH] ffuf: drop 0.8 --- net-analyzer/ffuf/Manifest | 1 - net-analyzer/ffuf/ffuf-0.8.ebuild | 41 ------------------------------- net-analyzer/ffuf/ffuf-0.9.ebuild | 9 +++++-- 3 files changed, 7 insertions(+), 44 deletions(-) delete mode 100644 net-analyzer/ffuf/ffuf-0.8.ebuild diff --git a/net-analyzer/ffuf/Manifest b/net-analyzer/ffuf/Manifest index f105a81a5..7d5eb80ad 100644 --- a/net-analyzer/ffuf/Manifest +++ b/net-analyzer/ffuf/Manifest @@ -1,2 +1 @@ -DIST ffuf-0.8.tar.gz 12778 BLAKE2B 9c273ed681f4ed6bf86408a4924e3ea5581e2addd470e597a5a0fcb3297bab53926160649dd88471566a4b78a3dbf09fc4de91c755d3eaa5458585ed7210a587 SHA512 78e942d4b4bf07e57359418d36839b9218827c235aed79a9648a8365c8a209cdb165072248a08f9e76110f7d8b5632e9c6745d0e64c21e5e5a2a50f860cb6158 DIST ffuf-0.9.tar.gz 14272 BLAKE2B a31ecb12c2abc01c08286e979bacee080fcbf40433192f3a79e730c8c0025a2fccb218f5c8f56a48bb177577d851d013a7fcbaceacaaf307ed0769d1dbd8683d SHA512 a6788360723bc4930020a87f760d265aaf80787594fbcd920102d2c7c03e9b6ff56d47f3076e5ba52d70416af2c461ccc8c278d74c3bd3dd51a270e75cfb4439 diff --git a/net-analyzer/ffuf/ffuf-0.8.ebuild b/net-analyzer/ffuf/ffuf-0.8.ebuild deleted file mode 100644 index 619e59dc7..000000000 --- a/net-analyzer/ffuf/ffuf-0.8.ebuild +++ /dev/null @@ -1,41 +0,0 @@ -# Copyright 1999-2019 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=7 -EGO_PN="github.com/ffuf/ffuf" - -inherit golang-vcs-snapshot - -DESCRIPTION="Fast web fuzzer written in Go" -HOMEPAGE="https://github.com/ffuf/ffuf" -SRC_URI="" - -if [[ ${PV} == *9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/ffuf/ffuf" -else - SRC_URI="https://github.com/ffuf/ffuf/archive/v${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="~amd64 ~arm ~arm64 ~x86" -fi - -RESTRICT="mirror" -LICENSE="MIT" -SLOT="0" - -RDEPEND="!net-analyzer/ffuf-bin" -DEPEND="${RDEPEND} - dev-lang/go" - -src_compile() { - GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \ - go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" -} - -src_install() { - dobin bin/${PN} - dodoc src/"${EGO_PN}"/README.md -} - -pkg_postinst() { - elog "\nSee documentation: https://github.com/ffuf/ffuf#usage\n" -} diff --git a/net-analyzer/ffuf/ffuf-0.9.ebuild b/net-analyzer/ffuf/ffuf-0.9.ebuild index 619e59dc7..b82d01791 100644 --- a/net-analyzer/ffuf/ffuf-0.9.ebuild +++ b/net-analyzer/ffuf/ffuf-0.9.ebuild @@ -2,6 +2,7 @@ # Distributed under the terms of the GNU General Public License v2 EAPI=7 + EGO_PN="github.com/ffuf/ffuf" inherit golang-vcs-snapshot @@ -18,7 +19,6 @@ else KEYWORDS="~amd64 ~arm ~arm64 ~x86" fi -RESTRICT="mirror" LICENSE="MIT" SLOT="0" @@ -28,10 +28,15 @@ DEPEND="${RDEPEND} src_compile() { GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \ - go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" + GOCACHE="${T}/go-cache" \ + go build -v -work -x -ldflags="-s -w" "${EGO_PN}" } src_install() { + GOPATH="${WORKDIR}/${P}:$(get_golibdir_gopath)" \ + GOCACHE="${T}/go-cache" \ + go install -v -work -x -ldflags="-s -w" "${EGO_PN}" + dobin bin/${PN} dodoc src/"${EGO_PN}"/README.md }