chore: update dependencies

This commit is contained in:
github-actions[bot] 2024-09-04 00:10:23 +00:00 committed by GitHub
parent 6512b2dcaf
commit cf17e7253b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 79 additions and 0 deletions

View file

@ -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 <<EOF
$(cat "${D}/opt/1Password/com.1password.1Password.policy.tpl")
EOF" >"${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
}

View file

@ -8,3 +8,5 @@ DIST 1password-8.10.39-amd64.tar.gz 194457441 BLAKE2B b1d12ca291f34daabed42310e9
DIST 1password-8.10.39-arm64.tar.gz 193004270 BLAKE2B 8ee44a0760ca4a7579ad330cea8eba8a33af744c425076ed5ed253fd8ea785293e120472f120e458af813e340b23d6b66926cf6eb9d11526a82c1e5ed28d79a5 SHA512 2d28f13ab4a6817e1ba82049d48c27cd80a9fc302656e80603f0bd16a0c0880f297156fedf2993e594fc98cc5d25f890b5dad7fac335a29f6eecf40f96372954
DIST 1password-8.10.40-amd64.tar.gz 194512949 BLAKE2B 1f352d6c770d769653803df92cfcc9ce8d49b09f69470304dfb06a6491c7229454a49ea73f8eba83730e3c000ed024afafc0d77aae0106c28565915596332e14 SHA512 ba32fde12f87fc331547c81709c83ba64fbaf23d561e8c0e365de1478eb63e22a01f73798945524f517ce7bce24c7f63902acbfc41afd84f6e71df4223c1535c
DIST 1password-8.10.40-arm64.tar.gz 193041023 BLAKE2B 28e92fe40726b2174f24badbc5acc0bd876dad7924150346c6e57848e2955bc0624ebfcbf2bf7eb9198ddf8b034bdc8fc821173353faeb6fd5ed5c30a820ce4a SHA512 fd73c9b3a62a6dbf1818c20fd5df92a45aab37b47466ac32a23b2472227d81015dbfb741e4d08bc779ee906ddfeb77b6d5ce726c4da76e54ac28aa4877f4d938
DIST 1password-8.10.44-amd64.tar.gz 196542491 BLAKE2B 569b51c8da1e16bc81f67f60fa2d49ce5c7ad03dc5ec44bc4cdb34f5da108b551b0742da6a5160a1af1b560854db74e83c5eec1839f6f18a18bf7a2021e8a5b2 SHA512 bcb9395499ef9e80cb15232b998ef3d0f6d8fe9fe9b019cea17cb52e9c1f1ed86062fe9dfd7a2e7c10c09a229f02bdf9a919aae954e0d25f15acc97ca1231894
DIST 1password-8.10.44-arm64.tar.gz 195472779 BLAKE2B d5459a7776c7fe40abaa974669d56fd762812ff6c9611f4c342d4f7dc7f9c75083bed3994662ba2858a135a1306fc5e8f1cd7f0a0414665d675c8293e638c5af SHA512 2cc6b6db49036f8380504d68b974869cfbe96b5b40928e784710a2b6a6bf527de60d01e39d614f4b271a52a247b9c599f0d04907db93bd04b741cc844482572d