From dade6c807f5e640644e1cd8bfcbd07a701c10408 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 17 Apr 2024 00:05:12 +0000 Subject: [PATCH] chore: update dependencies --- app-admin/1password/1password-8.10.30.ebuild | 81 ++++++++++++++++++++ app-admin/1password/Manifest | 2 + 2 files changed, 83 insertions(+) create mode 100644 app-admin/1password/1password-8.10.30.ebuild diff --git a/app-admin/1password/1password-8.10.30.ebuild b/app-admin/1password/1password-8.10.30.ebuild new file mode 100644 index 0000000..3f0fefc --- /dev/null +++ b/app-admin/1password/1password-8.10.30.ebuild @@ -0,0 +1,81 @@ +# 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 + + # The binary requires setuid so it may interact with the Kernel keyring facilities + chmod u+s /opt/1Password/1Password-KeyringHelper + chmod g+s /opt/1Password/1Password-KeyringHelper + + # 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 ca4dc3b..f380500 100644 --- a/app-admin/1password/Manifest +++ b/app-admin/1password/Manifest @@ -6,3 +6,5 @@ DIST 1password-8.10.27-amd64.tar.gz 169254691 BLAKE2B 44e72e5c64da5fd182e06f8d43 DIST 1password-8.10.27-arm64.tar.gz 169557806 BLAKE2B 4158b09d9fb6936c8233f260cccd5df16e8408f62bff17b70e8f88f6b9d430918523e1d59658702953742d14c7cefdd68dc3401044d90f538a605617f2d8ff11 SHA512 0bc68171cee6afb004df4a715114997a2f5494f67751d2c578a5793083753ad91ff47b281ec331e31bb0683039d3cb2815c02a6fd3177c6cf0ea585132408181 DIST 1password-8.10.28-amd64.tar.gz 213613607 BLAKE2B 02d23d7c926d10a11b93e41372bd93ff2f3d7e9f39e051fcc1e6b0272cfaf562d487a5c9338c4b6781aaf1545686b5d1ad4b0d082ea6c8fe221195573f457d85 SHA512 d5d0263a7a4edf2c61362337646e4b6e6a1eb67947002558eeb5d853b1c1610a77d08bfd8b3e0066bdb36749160d7fa52be8d4285501a61387d77fbee5ad73d5 DIST 1password-8.10.28-arm64.tar.gz 213552383 BLAKE2B a54098c079c30f58fa2a610834aa761624e2da0c31b46feac631cc0fcc464eec272a40f59a7ea848b05e3eca26098fb38c4c9cec976051568d1d08b616196b8b SHA512 1f9faadba7c0d9fc3a072b18ca56324257afd8a1ec8cdda89a16c356c5b7f43c795b514c4e25eac0a267b1f7f8b78d727b64d62a5648d1530bf3d798039eca77 +DIST 1password-8.10.30-amd64.tar.gz 213492492 BLAKE2B 569a2e380c5d387e88c0246125cf5e47b2b41d8d2a331534f2737a9fbe6efbceecf59823b75a6e1a41b383a642933bcd91795f76d610434d55e01f185537d523 SHA512 bc7e62641b65e980e26590a75ca8851dcde92fc1d9c621a622624c23895e38d1a9368b45864f8c9c1ffd6587c6e0c1dd5ebe374d036718d291aca6d0d0a3d840 +DIST 1password-8.10.30-arm64.tar.gz 212922226 BLAKE2B 9b88908d7725ee7eaa4eef406746e4b181f575f68328c18175f64c4b22ad53f167fe2055399fad38ff50fc9686f18b181b54690a00e97c0b5b528c992f9b30a6 SHA512 5629b0d55c23ab5f1a9574e84cbd8a3c5ec653606f8bd1a98342838fd6ecc760008856a6c53191c3dda8f165129f0ccc88d0a14f6564ce6d0b5900a64535abdf