mirror of
https://github.com/gentoo-mirror/guru.git
synced 2026-04-07 03:10:15 -04:00
gui-apps/1password: drop 8.10.76-r1
Signed-off-by: joker1007 <kakyoin.hierophant@gmail.com> Part-of: https://github.com/gentoo/guru/pull/404 Closes: https://github.com/gentoo/guru/pull/404 Signed-off-by: David Roman <davidroman96@gmail.com>
This commit is contained in:
@@ -1,87 +0,0 @@
|
||||
# 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/${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 )"
|
||||
|
||||
S="${WORKDIR}"
|
||||
LICENSE="all-rights-reserved"
|
||||
SLOT="0"
|
||||
|
||||
KEYWORDS="~amd64 ~arm64"
|
||||
IUSE="policykit"
|
||||
RESTRICT="bindist mirror strip"
|
||||
|
||||
DEPEND="
|
||||
x11-misc/xdg-utils
|
||||
acct-group/1password
|
||||
"
|
||||
RDEPEND="${DEPEND}"
|
||||
|
||||
QA_PREBUILT="/opt/1Password/*"
|
||||
|
||||
src_prepare() {
|
||||
default
|
||||
xdg_environment_reset
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
dosym -r /opt/1Password/resources/1password.desktop /usr/share/applications/1password.desktop
|
||||
newicon "${ED}/opt/1Password/resources/icons/hicolor/512x512/apps/1password.png" "${PN}.png"
|
||||
|
||||
dodoc "${ED}/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 "${EROOT}"/opt/1Password/chrome-sandbox
|
||||
|
||||
# This gives no extra permissions to the binary. It only hardens it against environmental tampering.
|
||||
chgrp 1password "${EROOT}"/opt/1Password/1Password-BrowserSupport
|
||||
chmod g+s "${EROOT}"/opt/1Password/1Password-BrowserSupport
|
||||
|
||||
xdg_pkg_postinst
|
||||
|
||||
if [[ -z ${REPLACING_VERSIONS} ]]; then
|
||||
optfeature "1Password CLI" app-admin/op-cli-bin
|
||||
fi
|
||||
}
|
||||
|
||||
pkg_postrm() {
|
||||
xdg_icon_cache_update
|
||||
xdg_desktop_database_update
|
||||
xdg_mimeinfo_database_update
|
||||
}
|
||||
@@ -1,4 +1,2 @@
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user