From f7f39023d94df878fb96fe48386fa0d57eac7c36 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 10 Aug 2024 00:09:28 +0000 Subject: [PATCH] chore: update dependencies --- app-admin/1password/1password-8.10.39.ebuild | 77 ++++++++++++++++++++ app-admin/1password/Manifest | 2 + app-admin/chezmoi/Manifest | 2 + app-admin/chezmoi/chezmoi-2.52.0.ebuild | 42 +++++++++++ 4 files changed, 123 insertions(+) create mode 100644 app-admin/1password/1password-8.10.39.ebuild create mode 100644 app-admin/chezmoi/chezmoi-2.52.0.ebuild diff --git a/app-admin/1password/1password-8.10.39.ebuild b/app-admin/1password/1password-8.10.39.ebuild new file mode 100644 index 0000000..0794b0c --- /dev/null +++ b/app-admin/1password/1password-8.10.39.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 52be543..557131b 100644 --- a/app-admin/1password/Manifest +++ b/app-admin/1password/Manifest @@ -4,3 +4,5 @@ DIST 1password-8.10.36-amd64.tar.gz 193898712 BLAKE2B 8e22df57aac1519763c9c446d9 DIST 1password-8.10.36-arm64.tar.gz 192293571 BLAKE2B bbab0545489f385e3f6f654db5fb39c07a8fea9e93cad32d149698bb11416e6e04079d65da7c59f447221e2c868c77859f96900bf910f832ef7cb2b039536b9c SHA512 7c5907167acab1c13ef45828293a37e81e86d20b39233f2e136b4056da791b30afd667a0aebf92859badca0b7666a24e02ba96de97e7ecca0ad5db44bd2acb16 DIST 1password-8.10.38-amd64.tar.gz 194459175 BLAKE2B b461060d64499b7eb5a8b11346516b62eff5dfdea0048afff0fe1b310e5f56282ba14868bdeb72c78826c3a2a7e53ceac133c299283c939538e6a0e2180a3416 SHA512 73866deb6b2b28bf73b137183025bbb291242e5819e96b7c607f6b70e016813bd1b0a0deb97c9c81faa7695a0fb16f0e85e3d36153bdbc3807049a496538d512 DIST 1password-8.10.38-arm64.tar.gz 193009801 BLAKE2B 13de26e85146a87b4d0bc31acfda2c7c249c475f35ea15d430569b97267de4622f8ccc744ca28db8615272032e1cc0dd3fc74241f94a69ac53c1763560100402 SHA512 13df7adc2589091b30e9767c2a847156e867d39ddd05d561334554b860b3fc4dcd06328600cb1b96eecdf7568cee01b7ea769d839c4a97f10e00e169d342f700 +DIST 1password-8.10.39-amd64.tar.gz 194457441 BLAKE2B b1d12ca291f34daabed42310e9453fb816aa8885ba88cc52a09e0b49dd18a1fffff4037e6a743120a90087841b150ea90054176fc9d4a3f734e7ce6a3b54e30b SHA512 bb8bcd341e47b7dc77c4b7dcd0ea5228d0cbb2c68b4a537c2f6079a3610b1212a487941191ed172f0ea87b152b69051a83a4cfb435385b30080f771643ca920b +DIST 1password-8.10.39-arm64.tar.gz 193004270 BLAKE2B 8ee44a0760ca4a7579ad330cea8eba8a33af744c425076ed5ed253fd8ea785293e120472f120e458af813e340b23d6b66926cf6eb9d11526a82c1e5ed28d79a5 SHA512 2d28f13ab4a6817e1ba82049d48c27cd80a9fc302656e80603f0bd16a0c0880f297156fedf2993e594fc98cc5d25f890b5dad7fac335a29f6eecf40f96372954 diff --git a/app-admin/chezmoi/Manifest b/app-admin/chezmoi/Manifest index 8edb1db..0c00ac3 100644 --- a/app-admin/chezmoi/Manifest +++ b/app-admin/chezmoi/Manifest @@ -1,2 +1,4 @@ DIST chezmoi-2.51.0-deps.tar.xz 284454648 BLAKE2B 403bdd5a3357f049f4c60da22c55835c6dbc0f0e7e8105f27ee7d6f2ef5a5f584deb2b05f12231b4494519a246b72a0d3688282d181df739af0395bee1786586 SHA512 4944c64a545ab91682f4a61df1f2f4b80d554f9ec43a6259167ff511b8db2e76e9f91e68b3bd7088467482f1e9c457fbc8a23dee1a1ea4d2f8291f8c896258ef DIST chezmoi-2.51.0.tar.gz 2462503 BLAKE2B b84c19806eb0cfcf228075d4645ee0b3486c310f0c5cafb6a530aef0226b5dcdf67a275eac27a2bcb7512bb0f454f8f6818becbdb84170c36cae2e823e9e2966 SHA512 e261824c879334b61f9b4d4996ae7612592f745a242f82b9e16b0e8bfb7e78d1843d5ea721d9d58a04bf23f082e5436fab54b0632a368e01966d3ad76285cf8f +DIST chezmoi-2.52.0-deps.tar.xz 290941416 BLAKE2B 5009a92c37a877f8c8cb58fa4cc944f39edacdb0f10f5c4e947289a30564c9bc2ec3eb983f7a6649773fb1ac72e27ae80deb1513c89d332895b4317cd73970c1 SHA512 dec0a7a698414a35a19060cc6033024fb46134d7ecc585473f0165a8f7784d2a4c59295d821e74fa06fd79efd277914f19d29087c011806cdd246da43bab323e +DIST chezmoi-2.52.0.tar.gz 2463328 BLAKE2B bd87810c252a4c60ff4391c69ab6043030793d264f3996f9ab3abb3fc526c7b848b65a8e379e80df80a5fc5767cc75cb38ec1b21045f89251bd9171e23f5c839 SHA512 35ec15dcbbb4142f826cae8ed9d33b6e5d53853faec9ae3847496675f172f27f02b0da56bf72966f6419b99e5a1f0c33b3313229c0ef8c02ba3ac880fe1fe021 diff --git a/app-admin/chezmoi/chezmoi-2.52.0.ebuild b/app-admin/chezmoi/chezmoi-2.52.0.ebuild new file mode 100644 index 0000000..057269d --- /dev/null +++ b/app-admin/chezmoi/chezmoi-2.52.0.ebuild @@ -0,0 +1,42 @@ +# Copyright 2020-2024 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 +inherit go-module + +VERSION_GIT_HASH="64f40d93ea1f1456a6788798b9e9c4813156d86e" + +DESCRIPTION="Manage your dotfiles across multiple diverse machines, securely" +HOMEPAGE="https://www.chezmoi.io/" +SRC_URI="https://github.com/twpayne/chezmoi/archive/v${PV}.tar.gz -> ${P}.tar.gz" +SRC_URI+=" https://gentoo.rgst.io/updater_artifacts/${CATEGORY}/${PN}/${PV}/deps.tar.xz -> ${P}-deps.tar.xz" + +LICENSE="MIT" +SLOT="0" +KEYWORDS="~amd64 ~arm arm64 ~riscv ~x86" + +BDEPEND=">=dev-lang/go-1.21" + +RESTRICT="test" + +# This was added based on the .goreleaser.yml file in the upstream +# repository. +build_dist() { + ego build \ + -ldflags \ + "-s -w -X main.version=v${PV} -X main.commit=${VERSION_GIT_HASH} -X main.date=$(date "+%Y-%m-%dT%H:%M:%SZ") -X main.builtBy=ebuild" "$@" +} + +src_prepare() { + # Replaces generate-commit.go step. + echo -n "$VERSION_GIT_HASH" >COMMIT + default +} + +src_compile() { + build_dist ./ +} + +src_install() { + dobin chezmoi +}