mirror of
https://github.com/pentoo/pentoo-overlay
synced 2026-04-29 10:11:12 +02:00
opensnitch: go deps
This commit is contained in:
parent
2d9d6590e7
commit
0f996bdc65
6 changed files with 1 additions and 159 deletions
|
|
@ -23,7 +23,7 @@ REQUIRED_USE="|| ( iptables nftables )"
|
|||
|
||||
DEPEND=">=dev-lang/go-1.19
|
||||
net-libs/libnetfilter_queue
|
||||
dev-go/go-protobuf
|
||||
dev-go/protobuf-go
|
||||
dev-go/protoc-gen-go-grpc
|
||||
"
|
||||
RDEPEND="
|
||||
|
|
@ -1,6 +0,0 @@
|
|||
DIST github.com-golang-net-aaf60122140d3fcf75376d319f0554393160eb50.tar.gz 965206 BLAKE2B 018ab877bfa7208bb0ca9b4ede85077ed37c8ee3c7065569646e6c9704715d6810b0286276ea0fa9a271f12ffbe964b41f55ec762711c8a43ccea564607f3265 SHA512 d56f5608e64e8d883a782f0c460f08da20e7d01a97330fad35c8757420ac82fb84b657c3f64e3c4d90a08cc4d8905ab37225d6fab8472e8f1fd3d7be212df8b9
|
||||
DIST github.com-golang-sync-1d60e4601c6fd243af51cc01ddf169918a5407ca.tar.gz 16326 BLAKE2B d214c190a03006b726b4e5daa8320aa2f664572db46ac6a57545ccd3e98529c63fd5d9296e2afe0af0b781fcced4af52127d8079e72d116e0310688465e1882e SHA512 dc67de045513305edb3239b412b9154b44b6f408eace3cbbcf400c08d68322cec7090b9e6b22d63bcfaaec459e221d0e3f2c057aa19ae9b35a4a134dd72475c5
|
||||
DIST github.com-google-go-genproto-af9cb2a35e7f169ec875002c1829c9b315cddc04.tar.gz 2323831 BLAKE2B a614c74b60f8e347b47c8686807228ea76b021a918fc732b69293c8b59c1bc5396e320cbce6db87ab43b9a4fd649d19779874934bdd667f7cabf03165439c54a SHA512 a6524f31e8c4775195c245ffbe54c7f770591d46663ea86b8120ffd8efb3cf9269569fbf457b0d0272dc47177ccf3b413e858c2b437ee9892b5ac6698d07ed4d
|
||||
DIST github.com-protocolbuffers-protobuf-go-v1.27.1.tar.gz 1278521 BLAKE2B 1591dbfc5aae2360d69ca3e5e9247c4287114699f732d85011fb1c6b5daa3532d2218ce4ddf0390ffb23a3fd097ffa1b6bc418ba968dab98112a4522cc5fe93b SHA512 a0236bc88b963df0acc2a2c7c247334614b2d555f341e103fd06759665802069a320ced4ab51be658283cc816ec9f2d53ed98728895c5b8ce18954a17663264b
|
||||
DIST go-protobuf-1.2.0.tar.gz 332565 BLAKE2B 6916341aaa30f593c9a27363d4d73c548d0f7a629adffeab927078bb3ebc64f59a5c568b7bb7999c7505d526ce0ead0c9163908080f24ecd6c7b94ed2db28335 SHA512 a0f596ee96f7501ee47da75ea234c1e29c0abb2c3fda731acd601a55880502ae90d70f6d3da9c9a35e493fd1bcb69971c062e16b1e49a0996137950dac2effac
|
||||
DIST go-protobuf-1.5.2.tar.gz 171702 BLAKE2B 4b1b0936aed1919f3ec967648d15a0c533b57d9d19d3c80c8d4149345bf6bda096d6b5cfd5c49ef5e76eb7358e694fc159d16faedb096faf81e82e425377892d SHA512 5707936f2ea9493d2f3897a3ec04139afcc00b3dbfaa2142b56a492d356bc17e26237c74788b047592a0fa89c0078b7970dbf481f7c33a7a63c5f50557779590
|
||||
|
|
@ -1,51 +0,0 @@
|
|||
# Copyright 1999-2019 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
EGO_SRC="github.com/golang/protobuf"
|
||||
EGO_PN=${EGO_SRC}/...
|
||||
EGO_VENDOR=(
|
||||
"google.golang.org/genproto af9cb2a35e7f169ec875002c1829c9b315cddc04 github.com/google/go-genproto"
|
||||
"golang.org/x/net aaf60122140d3fcf75376d319f0554393160eb50 github.com/golang/net"
|
||||
"golang.org/x/sync 1d60e4601c6fd243af51cc01ddf169918a5407ca github.com/golang/sync"
|
||||
)
|
||||
|
||||
inherit golang-build golang-vcs-snapshot
|
||||
|
||||
DESCRIPTION="Go support for Google's protocol buffers"
|
||||
HOMEPAGE="https://github.com/golang/protobuf"
|
||||
SRC_URI="https://${EGO_SRC}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${EGO_VENDOR_URI}"
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PVR}"
|
||||
KEYWORDS="~amd64"
|
||||
IUSE="test"
|
||||
DEPEND="test? ( dev-libs/protobuf )"
|
||||
RDEPEND=""
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
# golden_test.go:113: golden file differs: deprecated/deprecated.pb.go
|
||||
sed -e 's:^\(func \)\(TestGolden\):\1_\2:' \
|
||||
-i src/${EGO_SRC}/protoc-gen-go/golden_test.go || die
|
||||
}
|
||||
|
||||
src_compile() {
|
||||
env GOPATH="${S}" \
|
||||
go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
GOPATH="${S}" \
|
||||
go test -v -work -x "${EGO_PN}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
rm -rf src/${EGO_SRC}/.git* || die
|
||||
golang_install_pkgs
|
||||
rm -rf "${D%/}$(get_golibdir_gopath)/src/${EGO_SRC}/vendor" || die
|
||||
|
||||
dobin bin/*
|
||||
}
|
||||
|
|
@ -1,52 +0,0 @@
|
|||
# Copyright 1999-2022 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
EGO_SRC="github.com/golang/protobuf"
|
||||
EGO_PN=${EGO_SRC}/...
|
||||
EGO_VENDOR=(
|
||||
"google.golang.org/genproto af9cb2a35e7f169ec875002c1829c9b315cddc04 github.com/google/go-genproto"
|
||||
"golang.org/x/net aaf60122140d3fcf75376d319f0554393160eb50 github.com/golang/net"
|
||||
"golang.org/x/sync 1d60e4601c6fd243af51cc01ddf169918a5407ca github.com/golang/sync"
|
||||
"google.golang.org/protobuf v1.27.1 github.com/protocolbuffers/protobuf-go"
|
||||
)
|
||||
|
||||
inherit golang-build golang-vcs-snapshot
|
||||
|
||||
DESCRIPTION="Go support for Google's protocol buffers"
|
||||
HOMEPAGE="https://github.com/golang/protobuf"
|
||||
SRC_URI="https://${EGO_SRC}/archive/v${PV}.tar.gz -> ${P}.tar.gz
|
||||
${EGO_VENDOR_URI}"
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PVR}"
|
||||
KEYWORDS="amd64 x86"
|
||||
IUSE="test"
|
||||
DEPEND="test? ( dev-libs/protobuf )"
|
||||
RDEPEND=""
|
||||
RESTRICT="!test? ( test )"
|
||||
|
||||
#src_prepare() {
|
||||
# default
|
||||
# golden_test.go:113: golden file differs: deprecated/deprecated.pb.go
|
||||
# sed -e 's:^\(func \)\(TestGolden\):\1_\2:' \
|
||||
# -i src/${EGO_SRC}/protoc-gen-go/golden_test.go || die
|
||||
#}
|
||||
|
||||
src_compile() {
|
||||
env GOPATH="${S}" \
|
||||
go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
|
||||
}
|
||||
|
||||
src_test() {
|
||||
GOPATH="${S}" \
|
||||
go test -v -work -x "${EGO_PN}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
rm -rf src/${EGO_SRC}/.git* || die
|
||||
golang_install_pkgs
|
||||
rm -rf "${D%/}$(get_golibdir_gopath)/src/${EGO_SRC}/vendor" || die
|
||||
|
||||
dobin bin/*
|
||||
}
|
||||
|
|
@ -1 +0,0 @@
|
|||
DIST go-text-0.3.0.tar.gz 6102619 BLAKE2B c92e68014a8c157d76741c02acd708771d66bd3dda5b19285f5aa3e073e0fe3fccb9054744d35ea62b681ae4421bb7489238d6868f9314fb26f88e002287abe8 SHA512 bd60dfaa7d9dbfca171a3ba40b51f5663c01257cf3b12b618d35689a97ab2212d316d5716ff09681bf40b099f7e20a0e0df8cfc065699cb6a07ad1dc2e2bc189
|
||||
|
|
@ -1,48 +0,0 @@
|
|||
# Copyright 1999-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
EGO_PN=golang.org/x/text/...
|
||||
|
||||
if [[ ${PV} = *9999* ]]; then
|
||||
inherit golang-vcs
|
||||
else
|
||||
# fails to compile
|
||||
# KEYWORDS="~amd64 ~arm ~x86"
|
||||
EGIT_COMMIT="v${PV}"
|
||||
SRC_URI="https://github.com/golang/text/archive/${EGIT_COMMIT}.tar.gz -> ${P}.tar.gz"
|
||||
inherit golang-vcs-snapshot
|
||||
fi
|
||||
inherit golang-build
|
||||
|
||||
DESCRIPTION="Go text processing support"
|
||||
HOMEPAGE="https://godoc.org/golang.org/x/text"
|
||||
LICENSE="BSD"
|
||||
SLOT="0/${PVR}"
|
||||
IUSE=""
|
||||
DEPEND=">=dev-go/go-tools-0_pre20180817"
|
||||
RDEPEND=""
|
||||
|
||||
src_compile() {
|
||||
export -n GOCACHE XDG_CACHE_HOME #680946
|
||||
# Create an isolated golibdir in order to avoid an
|
||||
# "use of internal package not allowed" error when
|
||||
# and older version is installed.
|
||||
mkdir -p "${T}/golibdir/src/golang.org/x" || die
|
||||
ln -s "$(get_golibdir_gopath)/src/golang.org/x/tools" "${T}/golibdir/src/golang.org/x/tools" || die
|
||||
GOPATH="${S}:${T}/golibdir" \
|
||||
go install -v -work -x ${EGO_BUILD_FLAGS} "${EGO_PN}" || die
|
||||
}
|
||||
|
||||
src_install() {
|
||||
golang_install_pkgs
|
||||
exeopts -m0755 -p # preserve timestamps for bug 551486
|
||||
exeinto "$(go env GOROOT)/bin"
|
||||
doexe bin/*
|
||||
}
|
||||
|
||||
src_test() {
|
||||
GOPATH="${S}:${T}/golibdir" \
|
||||
go test -v -work -x "${EGO_PN}" || die
|
||||
}
|
||||
Loading…
Reference in a new issue