diff --git a/app-admin/1password/1password-8.10.50.ebuild b/app-admin/1password/1password-8.10.50.ebuild new file mode 100644 index 0000000..0794b0c --- /dev/null +++ b/app-admin/1password/1password-8.10.50.ebuild @@ -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 <"${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/app-admin/1password/Manifest b/app-admin/1password/Manifest index a6b7cf6..2bebf8f 100644 --- a/app-admin/1password/Manifest +++ b/app-admin/1password/Manifest @@ -1,2 +1,4 @@ DIST 1password-8.10.48-amd64.tar.gz 197607998 BLAKE2B 8692622fb6e95fa2c210e61f6fc6fb1ed6c385474db7977a821135ab0b2389e20681f1fa24f97c6e25624ee335598705b28adb5998bcc7a60437be1f59750db1 SHA512 a33b2c426a51c5ff76b418288d9ceae6feae9fe15f067679130224fd4fd944d4e823346e48e18ad52a00c8ec8f557464c1ed25ed32facdd3da7e64f9d7d7704c DIST 1password-8.10.48-arm64.tar.gz 196435870 BLAKE2B 492120ab0ef23beedf7e5e04cd9a68605f4962a5ad97f14ed371d6da92b031462a1c4efe6caf1d2b7a08e03d4271a16153126cefab0f822e061f1ba1e36279b3 SHA512 1ad80c405abf8929e9dac6c56dc374a0a168b0d918fc79c648b99e5757e417ea752608ed80fa271c26be1fa5752c517039d07d8a4b5081963bcea70ed230ad15 +DIST 1password-8.10.50-amd64.tar.gz 201427876 BLAKE2B e08a8e4de44bd981d36b54cc6bd739f933ca8f863b419bef74d46aa61d3e2c509c72f1eb0df3a819c142d27f078832e99e0182c7e802e7446f1bc6be6450ee68 SHA512 1837daee57cc9f1d75555ace1312bb598fdee619f6284511137f80efcf063f916b6b6bd50869b9c0e130ed207cf7e16e54cdb6d8460fced1bbce704ca9afea0f +DIST 1password-8.10.50-arm64.tar.gz 200113910 BLAKE2B 2bbb6b347bd0940648281587ecae3e63fdf1c36e388e5c04f39e362b7e527e06d1b28d8e8b42389c839b2cd7d85b15ec9db292d193c650bf4fc6945b0f422897 SHA512 d23e652a97da721b245a33f3d11ef411015fddc604330f8ab5092d9eb2498ab0efb85c084ef29d049f32995fe751156cac2c0d20d61761ef1c229abbd16f6dbc diff --git a/app-admin/google-cloud-cli-bin/Manifest b/app-admin/google-cloud-cli-bin/Manifest index d5cee2f..113056e 100644 --- a/app-admin/google-cloud-cli-bin/Manifest +++ b/app-admin/google-cloud-cli-bin/Manifest @@ -8,3 +8,5 @@ DIST google-cloud-cli-497.0.0-linux-arm.tar.gz 53562923 BLAKE2B a48e5779a6822b3f DIST google-cloud-cli-497.0.0-linux-x86_64.tar.gz 131333014 BLAKE2B 4d32996fb792449166bc2e8039f54f4da30793ec5dbc738612646b0c82f2c26b92df2791ead3bca58ea53508493020f9fd5639e90c80eef3747e2618326eacb2 SHA512 7c302c3e99ebb53dca196c34ad517df355f306b026893ad82121c49727933fc1de5ebd03c707b54c701344df3646af2af55c3833080325bd1ac4266e444d818b DIST google-cloud-cli-498.0.0-linux-arm.tar.gz 53642730 BLAKE2B 3f14751d39b776a75ca7406b918c0f79c161a7218afc47202ea37eeed4d31f5d313bbea35dccc358e4d5bf580f2469646e1e02a039916a25621c9cd1cf7a4345 SHA512 7a88e2109d002a7761471fe01a8cff63011c0abf6976f26d291af2a7ab249a2e73be1b74f9d301905eff99f03f1f66ef8f7371687ce7b99b39c0d560f810f06e DIST google-cloud-cli-498.0.0-linux-x86_64.tar.gz 131412608 BLAKE2B c2804c3a496e2088c59fbd89561d8f3dcd91bba3acbd9fa8c9b71e5d16caf32e39002fa11b635c374b3f9a18d3a5b1949be04234c85978b43bcac29e045aa2ee SHA512 5c56c31f0c27b35c7ec115831377d333370ee41cd8db95e930771eb3a4e63571acf9bc8241dde76b99061ab0afc84f9a3c13a6f41386dfea8275657be4f9768c +DIST google-cloud-cli-499.0.0-linux-arm.tar.gz 53669177 BLAKE2B ae0d94005edfd5b5243a008317e9e252d33c276a7fea6f5c40b0a23119acc07af8a3406a7710a73e8f7ceabd87f2f174f744df376aa3db45eccc2b8c74939ea5 SHA512 2b336be75d6038f5a984fbfa31b9dbf387aff69acabc7cf996a11dfb00f96ddefdac2f81a5820d6d38e5bdf900f976397e82efc1e418ad88cd73da35959b1a4a +DIST google-cloud-cli-499.0.0-linux-x86_64.tar.gz 131438836 BLAKE2B 8d4e74cdc98ec9698e281bc93ac22272042d2a891f8ab25468735e9070c6749d121fa9c60c6ec478ee44d80c32aa82f411aafb61196b9503f14c8279f773660b SHA512 cd06bad2be55dc46ec03f371d72c9ae380b1c0ce6f7bb18fa6648ec5f898d8ffd11711a21ead78babc34568674ef273e21b25e6503b97947802591bce6abb74d diff --git a/app-admin/google-cloud-cli-bin/google-cloud-cli-bin-499.0.0.ebuild b/app-admin/google-cloud-cli-bin/google-cloud-cli-bin-499.0.0.ebuild new file mode 100644 index 0000000..047bd52 --- /dev/null +++ b/app-admin/google-cloud-cli-bin/google-cloud-cli-bin-499.0.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 2020-2023 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +DESCRIPTION="Interact with the Google Cloud Platform" +HOMEPAGE="https://cloud.google.com/cli" +SITE="https://dl.google.com/dl/cloudsdk/channels/rapid/downloads" +SRC_URI=" +amd64? ( ${SITE}/google-cloud-cli-${PV}-linux-x86_64.tar.gz ) +arm64? ( ${SITE}/google-cloud-cli-${PV}-linux-arm.tar.gz ) +" + +LICENSE="Apache-2.0" +SLOT="0" +KEYWORDS="amd64 arm64 arm" + +QA_PREBUILT=" +google-cloud-sdk/bin/anothoscli +google-cloud-sdk/bin/gcloud-crc32c +" +RESTRICT="bindist mirror" +S="${WORKDIR}" + +src_install() { + mkdir -p "${D}/opt/google-cloud-sdk" + cp -r "${S}/google-cloud-sdk/"* "${D}/opt/google-cloud-sdk" || die "Install failed!" + + dosym "${D}/opt/google-cloud-sdk/bin/gcloud" /usr/bin/gcloud + dosym "${D}/opt/google-cloud-sdk/bin/gsutil" /usr/bin/gsutil + + chmod 4755 "${D}/opt/google-cloud-sdk/bin/gsutil" + chmod 4755 "${D}/opt/google-cloud-sdk/bin/gcloud" +}