diff options
author | Vitaly Zdanevich <zdanevich.vitaly@ya.ru> | 2023-04-12 19:42:28 +0400 |
---|---|---|
committer | Vitaly Zdanevich <zdanevich.vitaly@ya.ru> | 2023-04-12 19:42:28 +0400 |
commit | e7ac46ad06d4075a69fd065526ac9e2d1007ed90 (patch) | |
tree | eb345dbe9fcf305a3ebeea6bb01d72ca0deaf015 /gui-apps/1password | |
parent | media-fonts/firago: remove empty IUSE (diff) | |
download | guru-e7ac46ad06d4075a69fd065526ac9e2d1007ed90.tar.gz guru-e7ac46ad06d4075a69fd065526ac9e2d1007ed90.tar.bz2 guru-e7ac46ad06d4075a69fd065526ac9e2d1007ed90.zip |
app-misc/1password move to gui-apps/1password
Signed-off-by: Vitaly Zdanevich <zdanevich.vitaly@ya.ru>
Diffstat (limited to 'gui-apps/1password')
-rw-r--r-- | gui-apps/1password/1password-8.10.3.ebuild | 63 | ||||
-rw-r--r-- | gui-apps/1password/Manifest | 1 | ||||
-rw-r--r-- | gui-apps/1password/metadata.xml | 8 |
3 files changed, 72 insertions, 0 deletions
diff --git a/gui-apps/1password/1password-8.10.3.ebuild b/gui-apps/1password/1password-8.10.3.ebuild new file mode 100644 index 000000000..f9f2fcd9d --- /dev/null +++ b/gui-apps/1password/1password-8.10.3.ebuild @@ -0,0 +1,63 @@ +# Copyright 2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit rpm xdg-utils + +DESCRIPTION="The world’s most-loved password manager" +HOMEPAGE="https://1password.com" +SRC_URI="amd64? ( https://downloads.1password.com/linux/rpm/stable/x86_64/${P}.x86_64.rpm )" + +LICENSE="all-rights-reserved" +SLOT="0" +KEYWORDS="~amd64" + +RESTRICT="mirror strip test bindist" + +IUSE="+policykit +cli" + +DEPEND=" + x11-misc/xdg-utils + acct-group/1password + policykit? ( sys-auth/polkit ) + cli? ( app-misc/1password-cli ) +" +RDEPEND="${DEPEND}" +BDEPEND="" + +S=${WORKDIR} + +src_prepare() { + default + xdg_environment_reset +} + +src_unpack() { + rpm_unpack ${P}.x86_64.rpm +} + +src_install() { + cp -ar "${S}/opt" "${D}" || die "Install failed!" + cp -ar "${S}/usr" "${D}" || die "Install failed!" + + chgrp onepassword "${D}/opt/1Password/1Password-BrowserSupport" || die + + dosym ../../opt/1Password/1password /usr/bin/1password +} + +pkg_postinst() { + chmod 4755 /opt/1Password/chrome-sandbox + chmod 6755 /opt/1Password/1Password-KeyringHelper + chmod 2755 /opt/1Password/1Password-BrowserSupport + + xdg_icon_cache_update + xdg_desktop_database_update + xdg_mimeinfo_database_update +} + +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 new file mode 100644 index 000000000..de71d1bf3 --- /dev/null +++ b/gui-apps/1password/Manifest @@ -0,0 +1 @@ +DIST 1password-8.10.3.x86_64.rpm 94457340 BLAKE2B 39d3758e703de999248b86c007119a22b174604882833636d7d480a0da64b1606a2ef8e973addf84a6a1a88ebbe521463dc4f2160c271e73a22223df976d74ef SHA512 6b2272b37c79e8b48ecc4c4f97c03184158d71f4e75cfefd31554e342d725aeba8cd393e4d68960d67f7eacd3d6370ba8c8fa7c00bf86af1dbbb61025b0be346 diff --git a/gui-apps/1password/metadata.xml b/gui-apps/1password/metadata.xml new file mode 100644 index 000000000..4b0439172 --- /dev/null +++ b/gui-apps/1password/metadata.xml @@ -0,0 +1,8 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd"> +<pkgmetadata> + <maintainer type="person"> + <email>zdanevich.vitaly@ya.ru</email> + <name>Vitaly Zdanevich</name> + </maintainer> +</pkgmetadata> |