From cf14e1b76958f08abbabdc1bc1ee73d3e58feefe Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 12 Jun 2024 00:04:44 +0000 Subject: [PATCH] chore: update dependencies --- app-admin/1password/1password-8.10.34.ebuild | 77 +++++++++++++++++++ app-admin/1password/Manifest | 2 + app-admin/google-cloud-cli-bin/Manifest | 2 + .../google-cloud-cli-bin-480.0.0.ebuild | 34 ++++++++ 4 files changed, 115 insertions(+) create mode 100644 app-admin/1password/1password-8.10.34.ebuild create mode 100644 app-admin/google-cloud-cli-bin/google-cloud-cli-bin-480.0.0.ebuild diff --git a/app-admin/1password/1password-8.10.34.ebuild b/app-admin/1password/1password-8.10.34.ebuild new file mode 100644 index 0000000..d9d1d4e --- /dev/null +++ b/app-admin/1password/1password-8.10.34.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 + + make_desktop_entry "${PN}" "1Password" "${PN}" "Office;Utility;" + 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 526db67..e598922 100644 --- a/app-admin/1password/Manifest +++ b/app-admin/1password/Manifest @@ -1,2 +1,4 @@ DIST 1password-8.10.33-amd64.tar.gz 189241259 BLAKE2B 27a302985ec984afc33825acde8d36dcdcbdb4938e02956475db6e909e4655df448c46bdd960c20bcc74aa83b9a6709a8d466938982f55fbccf8b11d6ab9f49f SHA512 14ced4e4e03b407566fe8a4d981f50e8e935bcd89620b882a8fa2a998e9003466c2609e93abe7a4693a7c48bee677d7d36dc630222a67298d53efb2b8e2c9661 DIST 1password-8.10.33-arm64.tar.gz 187956191 BLAKE2B 6519282a889899e120c4a6201dadd964a2d84883bb580d25acfd6b795a240059e623550b396254e2f1aac4395bd80bf2122d121ca4ba067eb82b7fcf61963c14 SHA512 02b72657bf7ca382ccaa2acb5bc283cdf65cd836cea66fcef0b90dcb3c38ecd403d6f70db6ab4bec0da821669f38939494c86736991e8cce73f3f4395520d0b7 +DIST 1password-8.10.34-amd64.tar.gz 191389023 BLAKE2B 6e58c961889d98a062d920861055d234d7916a4fee996518152f3281a08217df231e1b807f88b41ea8b1bdcc49536b8012ac76741f6814eebc4f8dffe194439c SHA512 91154248da31c3fe2185972421a0a63acbdd6e9d6097071584ec966845cdd112be05a5e3c2fa02c0a892f3f6d30fb1e112cbc8faa48794e9a602dffc19300dcc +DIST 1password-8.10.34-arm64.tar.gz 189902221 BLAKE2B f2f838ffd8248bba301bb4eb1f0435a383f0f0ebd00050908a4c08b0aade238c82fe25e687fbf5b8c61d566b5a17dcf3f7a15834c0f02c21a6442901006db328 SHA512 0d16c688b092763d87dec3a7dc66cae471320f47a8089010e42d297b9877f733cdcf0b2a5572bc25179efb9c4033f68969f8156938e2f6106ac439671be89d67 diff --git a/app-admin/google-cloud-cli-bin/Manifest b/app-admin/google-cloud-cli-bin/Manifest index 3f14804..aedce83 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-478.0.0-linux-arm.tar.gz 51895213 BLAKE2B f9a3aa980bd07dd3 DIST google-cloud-cli-478.0.0-linux-x86_64.tar.gz 130371341 BLAKE2B d218d9781aae810a2430d8f4951cc3fd42da5d59c3089522988da77a662c86bfe3d2ef0b6779592ecec8ecc6c0bfbae7b8bee9784a585a6b0034442c69368431 SHA512 ab819f7a3c613a4954c056749926bdc3d6611f6999970ece77903a0e7e2ac0d63ffccf0bac98fdcf3908050edd60f35b77cedb454c9d5e652b20acf4ab0346de DIST google-cloud-cli-479.0.0-linux-arm.tar.gz 51921910 BLAKE2B 13303616a4884feded09ce946cf7ed0d5a0c8f0f64c7c72dfe9540778ef1f2f0f7bed1e62a8ff2a97cf9999f1300fdc49aa46fb5e581c85612809803326dd895 SHA512 eae2ca6ebf4be2c11ab5e47774e0c0649ab5c074bccacc5a5601ad66602f109a5bfd8be87c16825b77a981443fc643c92d7f3cc203272937e857a5bd2cb5a8ac DIST google-cloud-cli-479.0.0-linux-x86_64.tar.gz 130398210 BLAKE2B 194ffce266ec3fcd143df4f51c2c7ec79ada87ae4ce17aab240a4e19afb7c13c4bcd57075218c13ad77fcbb5ecd49d835c8121822056cb04d2de3634508bab2c SHA512 84fed47f9f75f2ae5bd994a1a6fa43cfbf78ff26efcb0be140363d51cfa26616ab9669a4902b7f559aa58daa84873a7a824545f1503bae2dab7866cbedd1ffd2 +DIST google-cloud-cli-480.0.0-linux-arm.tar.gz 51933910 BLAKE2B 73bc2d9bd695be9cda53016844bcb912136d82452a68149bef53d06acc7ff46761ad1fd99d3fc7271a72b3938ee8db55dfa189d9564ce6dfadfa90895b08cf27 SHA512 6e8b3648c4bceed41273002a6c4cee81a17ca43a88f3840db3b9f748a0b098f68c5d60a0163536b77649a1cb1c9cc7b6bb8f7ae3d57c1e38fb6179069009b6af +DIST google-cloud-cli-480.0.0-linux-x86_64.tar.gz 130406364 BLAKE2B ed50ffe9940b70c45666970aa3a4fc00e454f857590f1572952f640615a5cea5dca61e0a2418c969c9cd3c1624bd71e2c2adba06dbcdc6ce3d90204836acb3d7 SHA512 b6af067804fa4f6ba9d4981752d4c9788b666948d8f813a7a66fe54947bc7399279169108c1cd4de40e532efadf226ced3247f5f7437f3b35c77a3f85a1916cc diff --git a/app-admin/google-cloud-cli-bin/google-cloud-cli-bin-480.0.0.ebuild b/app-admin/google-cloud-cli-bin/google-cloud-cli-bin-480.0.0.ebuild new file mode 100644 index 0000000..047bd52 --- /dev/null +++ b/app-admin/google-cloud-cli-bin/google-cloud-cli-bin-480.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" +}