diff --git a/acct-group/onepassword/onepassword-0.ebuild b/acct-group/onepassword/onepassword-0.ebuild new file mode 100644 index 0000000..88ca929 --- /dev/null +++ b/acct-group/onepassword/onepassword-0.ebuild @@ -0,0 +1,11 @@ +# Copyright 2025 Gentoo Authors +# Distributed under the terms of the GNU General Public License v2 + +EAPI=8 + +inherit acct-group + +DESCRIPTION="Group for the 1Password password manager" +LICENSE="GPL-2" +# Needs to be higher than 1000, from previous issues. +ACCT_GROUP_ID=1010 diff --git a/app-admin/1password/1password-8.12.12.ebuild b/app-admin/1password/1password-8.12.12.ebuild new file mode 100644 index 0000000..f941f72 --- /dev/null +++ b/app-admin/1password/1password-8.12.12.ebuild @@ -0,0 +1,77 @@ +# Copyright 1999-2025 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 new file mode 100644 index 0000000..0c2bbae --- /dev/null +++ b/app-admin/1password/Manifest @@ -0,0 +1,2 @@ +DIST 1password-8.12.12-amd64.tar.gz 198731835 BLAKE2B 8f0565e37eb346c53ad5615a5fbf1e97c34c555ca6f5542c88ac3932295ae23707e0c984cc57d76dade75282f7400c075b6cc9be605bc4e07bc65b7d9883fab6 SHA512 4fc82feb9bc00688d9b0064585e2152f365b83a44c080f6038c02ce107b13ba75167d8c49c3a8788daf60dc9c802c2160f4ad312d4b72b413e94b69fd7b79c6d +DIST 1password-8.12.12-arm64.tar.gz 197274974 BLAKE2B 5d1bce4e2a8bbcb5b83bb06a5959b49c57739a2bc6dbf9df1dd737ee8445acb0d57fbb637dadd54b87bfee8c4252399bc548155b6ebe1e029a5df7f79b04134d SHA512 e91f4d820a37f5f16768d8109a378cd4e94b98a2651f63cc727444fcd2d87d32bbecbcf43360ded6f90725b0a12d654fde88068d6a6fb77229e3f2d71412929c diff --git a/app-admin/op-cli-bin/Manifest b/app-admin/op-cli-bin/Manifest new file mode 100644 index 0000000..68ed8c3 --- /dev/null +++ b/app-admin/op-cli-bin/Manifest @@ -0,0 +1,4 @@ +DIST op_linux_386_v2.34.0.zip 13466871 BLAKE2B b9646d6fb08c27cca46fa6f8ab73813c0ded93bf165a85279ef7bd4cdaebb09d86e1739bb93474c6538456913dc247686ea1473e17a3a5e20b414b2ed697f804 SHA512 fc021f70fa584a8296c9b963a429d6e5fffa14d74275cbafdbd031493ac98b8083d587b17deb9cbe37e5f08443d0a6546aac68161374080d3c8dd4d37cd6c2ad +DIST op_linux_amd64_v2.34.0.zip 14516956 BLAKE2B ead0afcd77672cfbb4c60996c542a7a1b41b85d0b7ce04434abdaeb369a8eeb85a2d09495f51bd49afbe9a988a8a68c86a3febbe2895d0227d0ddbf26014e3b6 SHA512 09846d5598f10d0ee027e7d4cf8097b1e78d29021c4a86d7ba2d1f652162d371fb79559c51b82c70e534b3be590e40b1f56df831ced9ceb554e1ec3a1edde332 +DIST op_linux_arm64_v2.34.0.zip 13461687 BLAKE2B 85b804dee2f0a3b0da1e3f0d1070e9bb9f7b354b554dbb91db0f9676732c77f60db2c612de61b65eac18e3ac9d745d2bae4e9a4cb3c96d459dd57e8ba2e3c498 SHA512 ba7f73ecadb136b09d58220935523499fe78642a04484d3fa8e65bb03f0db281e54e66feab57e625aad54f232e8c4d809f0a7180dfb7ee9d2ae0cc36b97df482 +DIST op_linux_arm_v2.34.0.zip 13398103 BLAKE2B de233f1969b0bf46ade46c42869ffba2eec32b854dc56d2e1686a9a03efbc30b80309c2005bd8a1a16b65405273b2de67e7ac1d5e65a4029406b85b2b5c8dcfb SHA512 d67c159615803e4bc48692faf3d237137a906ed3647161bbae2aa7dfe861183ea33ba610be3ad549a0dc567d9486b1e42fa39323a10573724c70f1812498384f diff --git a/app-admin/op-cli-bin/op-cli-bin-2.34.0.ebuild b/app-admin/op-cli-bin/op-cli-bin-2.34.0.ebuild new file mode 100644 index 0000000..1fc5266 --- /dev/null +++ b/app-admin/op-cli-bin/op-cli-bin-2.34.0.ebuild @@ -0,0 +1,34 @@ +# Copyright 2020-2025 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 +} diff --git a/gui-apps/waybar/Manifest b/gui-apps/waybar/Manifest deleted file mode 100644 index e459ffd..0000000 --- a/gui-apps/waybar/Manifest +++ /dev/null @@ -1 +0,0 @@ -DIST waybar-0.13.0.tar.gz 336832 BLAKE2B 5e234046d4dc276c59a8cda57363c43967e21abc618f046dfde8c1952ca5001b2e1575cfaf19bef032d212a7f9fc681e854d758b4a2ca496e4b6f2108d92493c SHA512 362b82fa0f2e0a3e882ab17f1234ca27bc76eb80267385fb56397c23ffe88b4a8376bb62f4ff94202f7b3995795c4010ebb57aa39b8c2722c8b196c09dd0938e diff --git a/gui-apps/waybar/metadata.xml b/gui-apps/waybar/metadata.xml deleted file mode 100644 index 1dc5765..0000000 --- a/gui-apps/waybar/metadata.xml +++ /dev/null @@ -1,7 +0,0 @@ - - - - - Alexays/Waybar - - diff --git a/gui-apps/waybar/waybar-0.13.0.ebuild b/gui-apps/waybar/waybar-0.13.0.ebuild deleted file mode 100644 index daaaf14..0000000 --- a/gui-apps/waybar/waybar-0.13.0.ebuild +++ /dev/null @@ -1,101 +0,0 @@ -# Copyright 1999-2025 Gentoo Authors -# Distributed under the terms of the GNU General Public License v2 - -EAPI=8 - -inherit meson - -DESCRIPTION="Highly customizable Wayland bar for Sway and Wlroots based compositors" -HOMEPAGE="https://github.com/Alexays/Waybar" - -if [[ ${PV} == 9999 ]]; then - inherit git-r3 - EGIT_REPO_URI="https://github.com/Alexays/${PN^}.git" -else - SRC_URI="https://github.com/Alexays/${PN^}/archive/${PV}.tar.gz -> ${P}.tar.gz" - KEYWORDS="amd64 ~arm64" - S="${WORKDIR}/${PN^}-${PV}" -fi - -LICENSE="MIT" -SLOT="0" -IUSE="evdev experimental jack +libinput +logind mpd mpris network pipewire pulseaudio sndio systemd test tray +udev upower wifi" -REQUIRED_USE=" - upower? ( logind ) -" - -RESTRICT="!test? ( test )" - -BDEPEND=" - >=app-text/scdoc-1.9.2 - dev-util/gdbus-codegen - dev-util/wayland-scanner - virtual/pkgconfig -" -RDEPEND=" - dev-cpp/cairomm:0 - dev-cpp/glibmm:2 - dev-cpp/gtkmm:3.0 - dev-libs/glib:2 - dev-libs/jsoncpp:= - dev-libs/libsigc++:2 - >=dev-libs/libfmt-8.1.1:= - >=dev-libs/spdlog-1.10.0:= - dev-libs/date:= - dev-libs/wayland - >=gui-libs/gtk-layer-shell-0.9.0 - media-video/pipewire:= - x11-libs/gtk+:3[wayland] - x11-libs/libxkbcommon - evdev? ( dev-libs/libevdev ) - jack? ( virtual/jack ) - libinput? ( dev-libs/libinput:= ) - logind? ( - || ( sys-apps/systemd - sys-auth/elogind ) - ) - mpd? ( media-libs/libmpdclient ) - mpris? ( >=media-sound/playerctl-2 ) - network? ( dev-libs/libnl:3 ) - pipewire? ( media-video/wireplumber:0/0.5 ) - pulseaudio? ( media-libs/libpulse ) - sndio? ( media-sound/sndio:= ) - systemd? ( sys-apps/systemd:= ) - tray? ( - dev-libs/libayatana-appindicator - dev-libs/libdbusmenu[gtk3] - ) - udev? ( virtual/libudev:= ) - upower? ( sys-power/upower:= ) - wifi? ( sys-apps/util-linux ) -" -DEPEND="${RDEPEND} - dev-libs/wayland-protocols - test? ( dev-cpp/catch:0 ) -" - -src_configure() { - local emesonargs=( - -Dman-pages=enabled - -Dcava=disabled - $(meson_feature evdev libevdev) - $(meson_feature jack) - $(meson_feature libinput) - $(meson_feature logind) - $(meson_feature mpd) - $(meson_feature mpris) - $(meson_feature network libnl) - $(meson_feature pulseaudio) - $(meson_feature pipewire wireplumber) - $(meson_feature pipewire) - $(meson_feature sndio) - $(meson_feature systemd) - $(meson_feature test tests) - $(meson_feature tray dbusmenu-gtk) - $(meson_feature udev libudev) - $(meson_feature upower upower_glib) - $(meson_feature wifi rfkill) - $(meson_use experimental) - ) - meson_src_configure -}