commit: 6c857a623701da60299015eb04b65d84754ecee4 Author: joker1007 <kakyoin.hierophant <AT> gmail <DOT> com> AuthorDate: Fri Dec 19 16:22:00 2025 +0000 Commit: David Roman <davidroman96 <AT> gmail <DOT> com> CommitDate: Wed Dec 24 12:07:56 2025 +0000 URL: https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=6c857a62
gui-apps/1password: add 8.11.22 Signed-off-by: joker1007 <kakyoin.hierophant <AT> gmail.com> Part-of: https://github.com/gentoo/guru/pull/404 Signed-off-by: David Roman <davidroman96 <AT> gmail.com> gui-apps/1password/1password-8.11.22.ebuild | 73 +++++++++++++++++++++++++++++ gui-apps/1password/Manifest | 2 + 2 files changed, 75 insertions(+) diff --git a/gui-apps/1password/1password-8.11.22.ebuild b/gui-apps/1password/1password-8.11.22.ebuild new file mode 100644 index 0000000000..8b1f7e09f1 --- /dev/null +++ b/gui-apps/1password/1password-8.11.22.ebuild @@ -0,0 +1,73 @@ +# 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 optfeature xdg + +DESCRIPTION="Password Manager" +HOMEPAGE="https://1password.com" +SRC_URI=" + amd64? ( https://downloads.1password.com/linux/tar/stable/x86_64/${P}.x64.tar.gz -> ${P}-amd64.tar.gz ) + arm64? ( https://downloads.1password.com/linux/tar/stable/aarch64/${P}.arm64.tar.gz -> ${P}-arm64.tar.gz )" + +S="${WORKDIR}" +LICENSE="all-rights-reserved" +SLOT="0" + +KEYWORDS="~amd64 ~arm64" +RESTRICT="bindist mirror strip" + +DEPEND=" + x11-misc/xdg-utils + acct-group/1password +" +RDEPEND="${DEPEND}" + +QA_PREBUILT="/opt/1Password/*" + +src_install() { + dodir /opt/1Password + cp -ar "${S}/${PN}-"**"/"* "${ED}/opt/1Password/" || die "Install failed!" + + # Fill in policy kit file with a list of (the first 10) human users of + # the system. + dodir /usr/share/polkit-1/actions + local 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' ' ')" + sed -e "s/\${POLICY_OWNERS}/${policy_owners}/" \ + "${ED}/opt/1Password/com.1password.1Password.policy.tpl" \ + > "${ED}/usr/share/polkit-1/actions/com.1password.1Password.policy" || + die "Failed to create policy file" + + fperms 644 /usr/share/polkit-1/actions/com.1password.1Password.policy + + dosym -r /opt/1Password/1password /usr/bin/1password + dosym -r /opt/1Password/op-ssh-sign /usr/bin/op-ssh-sign + + domenu /opt/1Password/resources/1password.desktop + newicon "${ED}/opt/1Password/resources/icons/hicolor/512x512/apps/1password.png" "${PN}.png" + + dodoc "${ED}/opt/1Password/resources/custom_allowed_browsers" + + # chrome-sandbox requires the setuid bit to be specifically set. + # See https://github.com/electron/electron/issues/17972 + fperms 4755 /opt/1Password/chrome-sandbox + + # This gives no extra permissions to the binary. It only hardens it against environmental tampering. + chgrp 1password "${ED}/opt/1Password/1Password-BrowserSupport" || die "Failed to change group of 1Password-BrowserSupport" + fperms g+s "/opt/1Password/1Password-BrowserSupport" +} + +pkg_postinst() { + xdg_pkg_postinst + + optfeature "1Password CLI" app-misc/1password-cli +} diff --git a/gui-apps/1password/Manifest b/gui-apps/1password/Manifest index 5be35f7830..352830fc13 100644 --- a/gui-apps/1password/Manifest +++ b/gui-apps/1password/Manifest @@ -1,2 +1,4 @@ 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 +DIST 1password-8.11.22-amd64.tar.gz 195612302 BLAKE2B aafac41cf23ba72269a14ece219c296ad3b1bb6efac8108c28d054d5c78ae89210320ff35eb284a49b7caf0fa02d92db9080cfb5a959abf4600a063d8577b994 SHA512 f462a6b71a2c6e3fd04a9a5bf9f8f3390fdafa15a57a086f9ecde4634bd926994b4cd1ad4bd7fa57e77336b6717bf0d4360912113ad2238a0adaa6a88e4f7b69 +DIST 1password-8.11.22-arm64.tar.gz 194201173 BLAKE2B ff9411b9817c62cb7443160ac4d05bde9fce4a613b9730a77a81033a283e13db6728fd3401aa402413136aa35e04830f1c90f8d14e9203091c10bf13316dc3bc SHA512 9d4e79374dc894bf07695a7826fed591d28b09d832c710ae9a7712837cd6cdd4594be72c6a0551be436e5aace9270c958e750c97ff1bfc2b0119a9a2d8567c1a
