commit:     6cd0b1745607a7a0bfa80d3c779a502219d56fa1
Author:     Skyler Mäntysaari <sm+git <AT> skym <DOT> fi>
AuthorDate: Sat May 17 16:13:50 2025 +0000
Commit:     Skyler Mäntysaari <gentoo <AT> samip <DOT> fi>
CommitDate: Sat May 17 16:13:57 2025 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6cd0b174

gui-apps/1password: add 8.10.76

This was pulled from jaredallard's overlay.

Signed-off-by: Skyler Mäntysaari <sm+git <AT> skym.fi>

 gui-apps/1password/1password-8.10.76.ebuild | 78 +++++++++++++++++++++++++++++
 gui-apps/1password/Manifest                 |  2 +
 2 files changed, 80 insertions(+)

diff --git a/gui-apps/1password/1password-8.10.76.ebuild 
b/gui-apps/1password/1password-8.10.76.ebuild
new file mode 100644
index 000000000..c522dbf4f
--- /dev/null
+++ b/gui-apps/1password/1password-8.10.76.ebuild
@@ -0,0 +1,78 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Pulled from jaredallard's overlay to GURU
+
+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
+}

diff --git a/gui-apps/1password/Manifest b/gui-apps/1password/Manifest
index c60f8bba7..86d1018dd 100644
--- a/gui-apps/1password/Manifest
+++ b/gui-apps/1password/Manifest
@@ -1,2 +1,4 @@
 DIST 1password-8.10.48.x86_64.rpm 132173932 BLAKE2B 
f164bda036bfe045b68f2a95372a6bd544d52c8c0ef688192e4321dc102b277e83eb04afb437bba1ec0a9852670d9ee8f30c31a8bc0be6815d2b5ef11c3b3ccb
 SHA512 
9455ad8fc045d463b69e8f8e1e6a04233bfd2ef780b09164441704015bcadf48d8d67717bf7aefbb39f386148f01454c375107d26ec618669cf97df2653acb09
 DIST 1password-8.10.72.x86_64.rpm 134699400 BLAKE2B 
6219ed6ed22ec03a8fc846a135b1504ec9aeb32fe688e12a042126784477e1b15e1ca1e43fc42e1e93c76ab5711154385c78ae64d4ea58d679cc7b331ad05b4b
 SHA512 
f3b589fdfe6f5816691f59872f7b27188bd59a42181cbd927f01fc1f05762a012d27f6855b26674fdfe8e7192d1620e6c7e46a4249cea823abf97df5fe9b4487
+DIST 1password-8.10.76-amd64.tar.gz 202998481 BLAKE2B 
dd3fb572c7d60ff99ae0fb060dbf1562d22528029fc9456437f76c7b684c5f65fa5e13be6a2981caa1e27d70d88b4774b11bf96648ba9e79865a2037168ad5b1
 SHA512 
c52c2b7f80dd872ebce28304c6c9567f1a5785b63f9e00b22a1cc1955ea23010a7b5357675f11bb44ed2e8200577c7de66e9933767a358cdf981404ee8068e6e
+DIST 1password-8.10.76-arm64.tar.gz 206315616 BLAKE2B 
413f32dcb3a05f2f2e810927b2c90268f5db580b7a6da8efce7110119924ff357b3eb35a8dbb2a993214c96e57ef1aebaaa7765699cfdf4a91715130df601595
 SHA512 
f4cbc06e88c52c7faa71ee01079ed1396c214441cd6c46ba8aa8024db49f5be7ae8c01ac43d9b03841b838a8370feb7b25be255d6fc7aa7c1e87cb3f207ae04b

Reply via email to