From 5f2a14f38a6e24198ff36b89f22b41e8b3bfc487 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 7 Aug 2024 00:05:35 +0000 Subject: [PATCH] chore: update dependencies --- app-admin/1password/1password-8.10.38.ebuild | 77 +++++++++++++++++++ app-admin/1password/Manifest | 2 + app-admin/google-cloud-cli-bin/Manifest | 2 + .../google-cloud-cli-bin-487.0.0.ebuild | 34 ++++++++ 4 files changed, 115 insertions(+) create mode 100644 app-admin/1password/1password-8.10.38.ebuild create mode 100644 app-admin/google-cloud-cli-bin/google-cloud-cli-bin-487.0.0.ebuild diff --git a/app-admin/1password/1password-8.10.38.ebuild b/app-admin/1password/1password-8.10.38.ebuild new file mode 100644 index 0000000..0794b0c --- /dev/null +++ b/app-admin/1password/1password-8.10.38.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 +# shellcheck shell=bash + +EAPI=8 + +inherit desktop xdg + +DESCRIPTION="Password Manager" +HOMEPAGE="https://1password.com" +SRC_URI=" + amd64? ( https://downloads.1password.com/linux/tar/stable/x86_64/${PN}-${PV}.x64.tar.gz -> ${P}-amd64.tar.gz ) + arm64? ( https://downloads.1password.com/linux/tar/stable/aarch64/${PN}-${PV}.arm64.tar.gz -> ${P}-arm64.tar.gz )" + +LICENSE="all-rights-reserved" +KEYWORDS="amd64 arm64" +IUSE="policykit cli" +DEPEND=" +x11-misc/xdg-utils +acct-group/onepassword +policykit? ( sys-auth/polkit ) +cli? ( app-admin/op-cli-bin ) +" +RDEPEND="${DEPEND}" +SLOT="0" + +RESTRICT="bindist mirror strip" + +QA_PREBUILT="usr/bin/${MY_PN}" + +S="${WORKDIR}" + +src_prepare() { + default + xdg_environment_reset +} + +src_install() { + mkdir -p "${D}/opt/1Password/" + cp -ar "${S}/${PN}-"**"/"* "${D}/opt/1Password/" || die "Install failed!" + + # Fill in policy kit file with a list of (the first 10) human users of + # the system. + mkdir -p "${D}/usr/share/polkit-1/actions/" + export POLICY_OWNERS + POLICY_OWNERS="$(cut -d: -f1,3 /etc/passwd | grep -E ':[0-9]{4}$' | cut -d: -f1 | head -n 10 | sed 's/^/unix-user:/' | tr '\n' ' ')" + eval "cat <"${D}/usr/share/polkit-1/actions/com.1password.1Password.policy" + chmod 644 "${D}/usr/share/polkit-1/actions/com.1password.1Password.policy" + + dosym /opt/1Password/1password /usr/bin/1password + dosym /opt/1Password/op-ssh-sign /usr/bin/op-ssh-sign + + dosym /opt/1Password/resources/1password.desktop "/usr/share/applications/${PN}.desktop" + newicon "${D}/opt/1Password/resources/icons/hicolor/512x512/apps/1password.png" "${PN}.png" + + dodoc "${D}/opt/1Password/resources/custom_allowed_browsers" +} + +pkg_postinst() { + # chrome-sandbox requires the setuid bit to be specifically set. + # See https://github.com/electron/electron/issues/17972 + chmod 4755 /opt/1Password/chrome-sandbox + + # This gives no extra permissions to the binary. It only hardens it against environmental tampering. + chgrp onepassword /opt/1Password/1Password-BrowserSupport + chmod g+s /opt/1Password/1Password-BrowserSupport + + xdg_pkg_postinst +} + +pkg_postrm() { + xdg_icon_cache_update + xdg_desktop_database_update + xdg_mimeinfo_database_update +} diff --git a/app-admin/1password/Manifest b/app-admin/1password/Manifest index 4d62f5d..52be543 100644 --- a/app-admin/1password/Manifest +++ b/app-admin/1password/Manifest @@ -2,3 +2,5 @@ DIST 1password-8.10.34-amd64.tar.gz 191389023 BLAKE2B 6e58c961889d98a062d9208610 DIST 1password-8.10.34-arm64.tar.gz 189902221 BLAKE2B f2f838ffd8248bba301bb4eb1f0435a383f0f0ebd00050908a4c08b0aade238c82fe25e687fbf5b8c61d566b5a17dcf3f7a15834c0f02c21a6442901006db328 SHA512 0d16c688b092763d87dec3a7dc66cae471320f47a8089010e42d297b9877f733cdcf0b2a5572bc25179efb9c4033f68969f8156938e2f6106ac439671be89d67 DIST 1password-8.10.36-amd64.tar.gz 193898712 BLAKE2B 8e22df57aac1519763c9c446d9c6a322f71b48609b0deb57b3ee43389badef6623b7a33417e3093e17f6fa9647302748ae883236123b1c44fbb5b829249d7594 SHA512 43f2e59f1450b3790bddb8efb65b3fd1d1f719aea469dbc8cc090339cb1cef3383cf908b75b7c1ed28da0d8d967b2818d57c4a31f33d75a7131707ae2d675026 DIST 1password-8.10.36-arm64.tar.gz 192293571 BLAKE2B bbab0545489f385e3f6f654db5fb39c07a8fea9e93cad32d149698bb11416e6e04079d65da7c59f447221e2c868c77859f96900bf910f832ef7cb2b039536b9c SHA512 7c5907167acab1c13ef45828293a37e81e86d20b39233f2e136b4056da791b30afd667a0aebf92859badca0b7666a24e02ba96de97e7ecca0ad5db44bd2acb16 +DIST 1password-8.10.38-amd64.tar.gz 194459175 BLAKE2B b461060d64499b7eb5a8b11346516b62eff5dfdea0048afff0fe1b310e5f56282ba14868bdeb72c78826c3a2a7e53ceac133c299283c939538e6a0e2180a3416 SHA512 73866deb6b2b28bf73b137183025bbb291242e5819e96b7c607f6b70e016813bd1b0a0deb97c9c81faa7695a0fb16f0e85e3d36153bdbc3807049a496538d512 +DIST 1password-8.10.38-arm64.tar.gz 193009801 BLAKE2B 13de26e85146a87b4d0bc31acfda2c7c249c475f35ea15d430569b97267de4622f8ccc744ca28db8615272032e1cc0dd3fc74241f94a69ac53c1763560100402 SHA512 13df7adc2589091b30e9767c2a847156e867d39ddd05d561334554b860b3fc4dcd06328600cb1b96eecdf7568cee01b7ea769d839c4a97f10e00e169d342f700 diff --git a/app-admin/google-cloud-cli-bin/Manifest b/app-admin/google-cloud-cli-bin/Manifest index 53b9551..8fbab18 100644 --- a/app-admin/google-cloud-cli-bin/Manifest +++ b/app-admin/google-cloud-cli-bin/Manifest @@ -2,3 +2,5 @@ DIST google-cloud-cli-485.0.0-linux-arm.tar.gz 52532375 BLAKE2B c78a01cf4ffd7607 DIST google-cloud-cli-485.0.0-linux-x86_64.tar.gz 129958922 BLAKE2B 47de1586ff0d0d4be627d4e7ceb0642def927961e41ed5bc7158d3b9ce39fce405836d4403399cf01a658fa0f74bbfe615ec24f199ef94475fd3c1dd6deadcfd SHA512 c4ba5d2367557551a7a54961523b758e8669d4bc85a51e1790cebe6dd61e6771ce8d14e09e60f000470e44e62c6d30b13e92fce1e32ebd589ad7a595a21eb5d3 DIST google-cloud-cli-486.0.0-linux-arm.tar.gz 52624517 BLAKE2B eae6ddf88550b74e53172d10a0c2f65e1dd81d66aeafaba181a81efb80879ab09a100bce8a30db5b2fe9f67919e7194da462ce159cd85c33e4c0c53e28f04dad SHA512 3e880b1161bead06c16876c04cce3fb9aee723345680922dd2c70809770c59b23a1c4d45bd50b0cdd64586512372333fa29e2e884194f6a63997142dfee3a2a7 DIST google-cloud-cli-486.0.0-linux-x86_64.tar.gz 130054358 BLAKE2B 3a610ef14a0e44c68f7473d0053d1b0203bd044c7737865a7d237b30b3ae0923bb0a925929bcdb192c46db355affa249fe68f140327f840cc9a20f3ca015d190 SHA512 313f6049bc08b2b4e6510ae4f4fe65767d3612142f0d40d6f9090555d41111530c3304e6bd5352777327c3e9dd5b9c98865f5211eda85f5ba284e0fbcad65036 +DIST google-cloud-cli-487.0.0-linux-arm.tar.gz 52675472 BLAKE2B e9c9d25550998846fab22c77996fd4085b8ec15dcd151b4e28b04a957ef62237bbea2ef1e624ad63d35b3a3a562edad1e1fbbf5bf33a243805a09a16dc9e44b6 SHA512 378131d645ecc83206b20fc63a719f2383b5a6aa1f122c3c92c854dde10b27180defdc0a714c3476481ef622ce5a66ba2e19232b185b4febf8d64e34cb937e18 +DIST google-cloud-cli-487.0.0-linux-x86_64.tar.gz 130212052 BLAKE2B 71df1b1e60add725a86cbeea76e4283d7391ca69817762c6d332b087e236da670a87fec9cfad8c515c4bb915c050f7619ab87a2c19209e5b4f0821e11c510488 SHA512 2d7548f9cdc6cbc438bc2965e09cd510798c888d01939677ced94c03a75fdbd0a6c38a98fa280b6f2556fa91713c394f1c48052972b93a8545143cb41c999e7f diff --git a/app-admin/google-cloud-cli-bin/google-cloud-cli-bin-487.0.0.ebuild b/app-admin/google-cloud-cli-bin/google-cloud-cli-bin-487.0.0.ebuild new file mode 100644 index 0000000..047bd52 --- /dev/null +++ b/app-admin/google-cloud-cli-bin/google-cloud-cli-bin-487.0.0.ebuild @@ -0,0 +1,34 @@ +# 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 "${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" +}