mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-21 06:10:56 +02:00
93 lines
2.9 KiB
Bash
93 lines
2.9 KiB
Bash
# Copyright 1999-2019 Gentoo Authors
|
|
# Distributed under the terms of the GNU General Public License v2
|
|
|
|
EAPI=7
|
|
|
|
EGO_PN="github.com/zricethezav/gitleaks"
|
|
EGO_VENDOR=(
|
|
"github.com/BurntSushi/toml v0.3.1"
|
|
"github.com/alcortesm/tgz 9c5fe88"
|
|
"github.com/anmitsu/go-shlex 648efa6"
|
|
"github.com/davecgh/go-spew v1.1.1"
|
|
"github.com/emirpasic/gods v1.12.0"
|
|
"github.com/flynn/go-shlex 3f9db97"
|
|
"github.com/franela/goblin ead4ad1"
|
|
"github.com/fsnotify/fsnotify v1.4.7"
|
|
"github.com/gliderlabs/ssh v0.1.1"
|
|
"github.com/golang/protobuf v1.2.0"
|
|
"github.com/google/go-cmp v0.2.0"
|
|
"github.com/google/go-github v15.0.0"
|
|
"github.com/google/go-querystring v1.0.0"
|
|
"github.com/hako/durafmt 7b7ae1e"
|
|
"github.com/hpcloud/tail v1.0.0"
|
|
"github.com/ipfs/go-ipfs v0.4.19"
|
|
"github.com/jbenet/go-context d14ea06"
|
|
"github.com/jessevdk/go-flags v1.4.0"
|
|
"github.com/kevinburke/ssh_config 81db2a7"
|
|
"github.com/kr/pretty v0.1.0"
|
|
"github.com/kr/pty v1.1.1"
|
|
"github.com/kr/text v0.1.0"
|
|
"github.com/mattn/go-colorable v0.1.2"
|
|
"github.com/mattn/go-isatty v0.0.8"
|
|
"github.com/mitchellh/go-homedir v1.0.0"
|
|
"github.com/onsi/ginkgo v1.8.0"
|
|
"github.com/onsi/gomega v1.5.0"
|
|
"github.com/pelletier/go-buffruneio v0.2.0"
|
|
"github.com/pkg/errors v0.8.0"
|
|
"github.com/pmezard/go-difflib v1.0.0"
|
|
"github.com/sergi/go-diff v1.0.0"
|
|
"github.com/sirupsen/logrus v1.0.6"
|
|
"github.com/src-d/gcfg v1.4.0"
|
|
"github.com/stretchr/testify v1.2.2"
|
|
"github.com/xanzy/go-gitlab v0.11.3"
|
|
"github.com/xanzy/ssh-agent v0.2.0"
|
|
"gopkg.in/airbrake/gobrake.v2 v2.0.9 github.com/airbrake/gobrake"
|
|
"gopkg.in/check.v1 788fd78 github.com/go-check/check"
|
|
"gopkg.in/fsnotify.v1 v1.4.7 github.com/fsnotify/fsnotify"
|
|
"gopkg.in/gemnasium/logrus-airbrake-hook.v2 v2.1.2 github.com/gemnasium/logrus-airbrake-hook"
|
|
"gopkg.in/src-d/go-billy.v4 v4.3.0 github.com/src-d/go-billy"
|
|
"gopkg.in/src-d/go-git-fixtures.v3 v3.1.1 github.com/src-d/go-git-fixtures"
|
|
"gopkg.in/src-d/go-git.v4 v4.9.1 github.com/src-d/go-git"
|
|
"gopkg.in/tomb.v1 dd63297 github.com/go-tomb/tomb"
|
|
"gopkg.in/warnings.v0 v0.1.2 github.com/go-warnings/warnings"
|
|
"gopkg.in/yaml.v2 v2.2.1 github.com/go-yaml/yaml"
|
|
)
|
|
|
|
inherit eutils golang-vcs-snapshot
|
|
|
|
DESCRIPTION="Audit git repos for secrets"
|
|
HOMEPAGE="https://github.com/zricethezav/gitleaks"
|
|
|
|
SRC_URI="https://github.com/zricethezav/gitleaks/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
|
${EGO_VENDOR_URI}"
|
|
|
|
KEYWORDS="~amd64"
|
|
LICENSE="GPL-3"
|
|
IUSE=""
|
|
SLOT=0
|
|
|
|
RDEPEND=""
|
|
DEPEND="
|
|
dev-go/go-net:=
|
|
dev-go/go-oauth2:=
|
|
dev-go/go-crypto:=
|
|
dev-go/go-sys:=
|
|
dev-go/go-text:=
|
|
dev-go/go-tools:=
|
|
>=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,Dockerfile,CHANGELOG.md,CONTRIBUTING.md,gitleaks.toml}
|
|
}
|