app-admin/google-cloud-cli-bin: fix sandbox violation
This commit is contained in:
parent
a26c23b9ab
commit
9cd5ae03ed
3 changed files with 5 additions and 70 deletions
|
@ -1,33 +0,0 @@
|
|||
# Copyright 2020-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Interact with the Google Cloud Platform"
|
||||
HOMEPAGE="https://cloud.google.com/cli"
|
||||
SITE="https://dl.google.com/dl/cloudsdk/channels/rapid/downloads"
|
||||
SRC_URI="
|
||||
amd64? ( ${SITE}/google-cloud-cli-${PV}-linux-x86_64.tar.gz )
|
||||
arm64? ( ${SITE}/google-cloud-cli-${PV}-linux-arm.tar.gz )
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm64 arm"
|
||||
|
||||
QA_PREBUILT="
|
||||
google-cloud-sdk/bin/anothoscli
|
||||
google-cloud-sdk/bin/gcloud-crc32c
|
||||
"
|
||||
RESTRICT="bindist mirror"
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
mkdir -p "${D}/opt/google-cloud-sdk"
|
||||
cp -r "${S}/google-cloud-sdk/"* "${D}/opt/google-cloud-sdk" || die "Install failed!"
|
||||
dosym /opt/google-cloud-sdk/bin/gcloud /usr/bin/gcloud
|
||||
dosym /opt/google-cloud-sdk/bin/gsutil /usr/bin/gsutil
|
||||
|
||||
chmod 4755 /opt/google-cloud-sdk/bin/gsutil
|
||||
chmod 4755 /opt/google-cloud-sdk/bin/gcloud
|
||||
}
|
|
@ -1,33 +0,0 @@
|
|||
# Copyright 2020-2023 Gentoo Authors
|
||||
# Distributed under the terms of the GNU General Public License v2
|
||||
|
||||
EAPI=8
|
||||
|
||||
DESCRIPTION="Interact with the Google Cloud Platform"
|
||||
HOMEPAGE="https://cloud.google.com/cli"
|
||||
SITE="https://dl.google.com/dl/cloudsdk/channels/rapid/downloads"
|
||||
SRC_URI="
|
||||
amd64? ( ${SITE}/google-cloud-cli-${PV}-linux-x86_64.tar.gz )
|
||||
arm64? ( ${SITE}/google-cloud-cli-${PV}-linux-arm.tar.gz )
|
||||
"
|
||||
|
||||
LICENSE="Apache-2.0"
|
||||
SLOT="0"
|
||||
KEYWORDS="amd64 arm64 arm"
|
||||
|
||||
QA_PREBUILT="
|
||||
google-cloud-sdk/bin/anothoscli
|
||||
google-cloud-sdk/bin/gcloud-crc32c
|
||||
"
|
||||
RESTRICT="bindist mirror"
|
||||
S="${WORKDIR}"
|
||||
|
||||
src_install() {
|
||||
mkdir -p "${D}/opt/google-cloud-sdk"
|
||||
cp -r "${S}/google-cloud-sdk/"* "${D}/opt/google-cloud-sdk" || die "Install failed!"
|
||||
dosym /opt/google-cloud-sdk/bin/gcloud /usr/bin/gcloud
|
||||
dosym /opt/google-cloud-sdk/bin/gsutil /usr/bin/gsutil
|
||||
|
||||
chmod 4755 /opt/google-cloud-sdk/bin/gsutil
|
||||
chmod 4755 /opt/google-cloud-sdk/bin/gcloud
|
||||
}
|
|
@ -25,9 +25,10 @@ S="${WORKDIR}"
|
|||
src_install() {
|
||||
mkdir -p "${D}/opt/google-cloud-sdk"
|
||||
cp -r "${S}/google-cloud-sdk/"* "${D}/opt/google-cloud-sdk" || die "Install failed!"
|
||||
dosym /opt/google-cloud-sdk/bin/gcloud /usr/bin/gcloud
|
||||
dosym /opt/google-cloud-sdk/bin/gsutil /usr/bin/gsutil
|
||||
|
||||
chmod 4755 /opt/google-cloud-sdk/bin/gsutil
|
||||
chmod 4755 /opt/google-cloud-sdk/bin/gcloud
|
||||
dosym "${D}/opt/google-cloud-sdk/bin/gcloud" /usr/bin/gcloud
|
||||
dosym "${D}/opt/google-cloud-sdk/bin/gsutil" /usr/bin/gsutil
|
||||
|
||||
chmod 4755 "${D}/opt/google-cloud-sdk/bin/gsutil"
|
||||
chmod 4755 "${D}/opt/google-cloud-sdk/bin/gcloud"
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue