-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
db8707d
commit 454dfc9
Showing
10 changed files
with
628 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 <<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 | ||
|
||
make_desktop_entry "${PN}" "1Password" "${PN}" "Office;Utility;" | ||
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 | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,4 @@ | ||
DIST google-cloud-cli-476.0.0-linux-arm.tar.gz 51816659 BLAKE2B 5cf40e22123d0371c5b64928f049383ac763cc88a7108491643ca3041c38087f453265503fb30b1a76e898d972062b853ec107166753cee74bce87694c0f546d SHA512 8903ea2ab8de05e9c8514686b3f92cd38ab470177b91b737603fabbf676e300f8dd49903a181b85223c5fa652b438042c9e1b1eb16bc13709a94deb5fd240366 | ||
DIST google-cloud-cli-476.0.0-linux-x86_64.tar.gz 130300566 BLAKE2B b5b8d21fb72edb6e9b22cabe9565a91df790686695f9a05d3d14f1cc94582e639e16d3ceae1df8ba556fba0cce6fe962cca258803e2b72b3a9ef33a7cd2c7234 SHA512 fb26cd6e05f8f40b3c5ab8e78a5d212a5418ace0e6914ad0ebe0c9cf91392acdd47796f208718370a6d2776706ea6c90c4ce81e1c29fa9d9a252d1d0cd7ed586 | ||
DIST google-cloud-cli-477.0.0-linux-arm.tar.gz 51815021 BLAKE2B b44a1da3be7bbc057c21a0392e0bf11b0257c8c1c2d2279c9a2fd0c15ffa707367f3161aec14c46de9898530b941320df951fee0455cdc67712a004b6aa16ba7 SHA512 75486dddb48271096a3aec3388c138acb39a29422d082341864c2c0fcc712392ca0dd6e0557774a2c1722c79a6669450389a4688390ff979f921f55d0f1b8786 | ||
DIST google-cloud-cli-477.0.0-linux-x86_64.tar.gz 130293486 BLAKE2B 07e1f9587f7c3af28644f548661ace6e3b3aeb8e3d688af9f9e46e4265a0608f468978f3ee969033979e59a4680d8cd8193a3c7a9ec5c05cbcd8baf5753b46c7 SHA512 dff93ace55f107bd572e8c426c0033055258f9d389b42b4af650475731216cc1b479af073f062065eb65a370efdb25169d9e64dcdce038a570e83e3fd91072e4 |
33 changes: 33 additions & 0 deletions
33
app-admin/google-cloud-cli-bin/google-cloud-cli-bin-477.0.0.ebuild
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
# 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 /opt/google-cloud-sdk/bin/gcloud /usr/bin/gcloud | ||
dosym /opt/google-cloud-sdk/bin/gsutil /usr/bin/gsutil | ||
|
||
chmod 4755 /opt/google-cloud-sdk/bin/gsutil | ||
chmod 4755 /opt/google-cloud-sdk/bin/gcloud | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,8 @@ | ||
DIST op_linux_386_v2.28.0.zip 8029102 BLAKE2B 7b1abe866fc82c1fab5f40f2a1669ea0afdea01bda6de3c66a0fb2a3412471f8208b025412c863eb7d7088719b1faca660b4ae7929eb3d38e63ac1ce3a66607b SHA512 2fe09ecb56a57b9543ef819d581e2b12e8fbdae286bd66d62702d14aefc243269fa37614ad80bdf673c83b617ad2cca24999910e19b63e71152badd156ce32c7 | ||
DIST op_linux_386_v2.29.0.zip 8038626 BLAKE2B 2907e40bcfefeddb234d193c575980e676832e5b10f1f0127ba77c3b5549b76c633f843496a2825118d57886792f7a958836025106665329d529a9549fa21995 SHA512 18e6182ef8e9a2edc0dc705ca2d91f3c121dd378eca978cecaca29ea2ede9fb3a6ad0370d35d263d19afae071bf595bd46c54e3c5c04d715ca08353f9ea913b9 | ||
DIST op_linux_amd64_v2.28.0.zip 8562424 BLAKE2B c0c20eca3498dbd44d45efd99b4211b26626888d7ac8a07c61470c2fd53b32a97cc776fe84844308a9e1241fed2de78fbd96de2098d5b1ab2d3c3617059ed8ca SHA512 cc00b3dfb0a88b9d868c8c853046121b7bb492691e032155ec741d605e2a44afb8b64cc4096173ef3c22561796a24c138434ddcf533a2fc96416ded5fc9fb962 | ||
DIST op_linux_amd64_v2.29.0.zip 8571049 BLAKE2B 59d02221294f856a0df31fbd0295c2f013b88e0b923a31d431ac7a32b4786f8fd8eddb1e73b50a6334eb53dba584b73f83c9d3102a803da336103f581fddec17 SHA512 899bb2555ae3e65e00873aa4c27e29473b989c23e06b41c27e97c12230893e1d94ca00729daec564f916d23aea31f8bf95d29aac0832153365c0f81c92890224 | ||
DIST op_linux_arm64_v2.28.0.zip 7862033 BLAKE2B f59b6ac66cbdbbecdb1f56cbadb351bf454ad5880fd587488758b98beaad4f1c0922b43829aeb23e7d9ec74f84ba2dfb22fcbf39dd5c36874946976a01619939 SHA512 677f4ad28cb9970a05b7b0e5a9f61eb56ddc4475a8c0986f1719cf7764871542f90af3f1ea4702e9b9bca913a9f707303ffdcab99d6d49b6d5575f6ccf7b8724 | ||
DIST op_linux_arm64_v2.29.0.zip 7873053 BLAKE2B b64d83e78cc59d3ce5bddb7be2c721f032eb7ebdb3f55884f7f399518af36eef932e9aa4888bcc6ffd4349217820b7b5150f8c49cb55d34a222b772758570953 SHA512 707e9f5959afcc826333e9313619d2ffa13de9d670375479764954031f53b6945e960a27b0ec2de07f772b68ac11b28d2bd7dab5582191cfa7712e58bd7f992e | ||
DIST op_linux_arm_v2.28.0.zip 7988551 BLAKE2B b3495e62aab0762f5eecea973ec854f294aee773aaa675a178473d7a83a62f15a9280346272073633db09524fa6430386e57361282fe23b441755b7f424959e1 SHA512 4f02af0aa0f566736de304f31066859eb1569398e70616b8e76fef8392131254da38a918b8dae46c82ebb0a65b39e5e416216f277570435ea813437fad56adff | ||
DIST op_linux_arm_v2.29.0.zip 7997594 BLAKE2B 9b09e2c3c8e41d2538a5b72d49ce38bd5df07e3091156f950a4f47d9503ba2dfe1dc4dc300b8c5403cdc56d5be4334472b82dd9f0896220da5d767dd33fc7abc SHA512 5c584a23bdd703ad07cf6bc2e7b5360c5a7833031ac0652ce2fc9ce06a50d93b5bf566366dcc73998534471aeb2d208b06c78377868286a3ab409eb4b8c2d096 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Copyright 2020-2023 Gentoo Authors | ||
# Distributed under the terms of the GNU General Public License v2 | ||
|
||
EAPI=8 | ||
|
||
DESCRIPTION="command line interface for the 1password password manager" | ||
HOMEPAGE="https://1password.com/downloads/command-line/" | ||
SITE="https://cache.agilebits.com/dist/1P/op2/pkg/v${PV}" | ||
SRC_URI=" | ||
amd64? ( ${SITE}/op_linux_amd64_v${PV}.zip ) | ||
arm? ( ${SITE}/op_linux_arm_v${PV}.zip ) | ||
arm64? ( ${SITE}/op_linux_arm64_v${PV}.zip ) | ||
x86? ( ${SITE}/op_linux_386_v${PV}.zip ) | ||
" | ||
|
||
LICENSE="all-rights-reserved" | ||
SLOT="0" | ||
KEYWORDS="~amd64 ~arm ~arm64 ~x86" | ||
|
||
BDEPEND="app-arch/unzip" | ||
RDEPEND="acct-group/onepassword-cli" | ||
|
||
QA_PREBUILT="usr/bin/op" | ||
RESTRICT="bindist mirror" | ||
S="${WORKDIR}" | ||
|
||
src_install() { | ||
dobin op | ||
} | ||
|
||
pkg_postinst() { | ||
chgrp onepassword-cli /usr/bin/op | ||
chmod g+s /usr/bin/op | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.