app-admin/bitwarden-cli-bin: CLI for Bitwarden compatible servers

Bug: https://github.com/gentoo/gentoo/pull/41864
Signed-off-by: Rahil Bhimjiani <me@rahil.rocks>
Signed-off-by: Fabian Groffen <grobian@gentoo.org>
This commit is contained in:
Rahil Bhimjiani
2025-04-30 16:00:31 +05:30
committed by Fabian Groffen
parent 321cbec460
commit 23996291d6
3 changed files with 50 additions and 0 deletions

View File

@@ -0,0 +1 @@
DIST bw-oss-linux-2025.5.0.zip 36408335 BLAKE2B eb285349eeb3b00b838d904079c15055b00d3b8449f03dfceb88986ff16a34ee1bb1f659f4f4e145a1fce6186ff737485fc626f4382330dc6cdb0029a0c2cd28 SHA512 46044f5796ec9b27915a238ad2a5825d96689c21cae6d3401c49b74dbffe9e326bb118aa78934dd17f9dcbda279dee7f78415f29c0d33130a1b00d9d2c354c22

View File

@@ -0,0 +1,32 @@
# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
EAPI=8
inherit shell-completion
DESCRIPTION="CLI client for Bitwarden compatible servers"
HOMEPAGE="https://github.com/bitwarden/clients/tree/main/apps/cli"
SRC_URI="https://github.com/bitwarden/clients/releases/download/cli-v${PV}/bw-oss-linux-${PV}.zip"
S="${WORKDIR}"
LICENSE="GPL-3"
SLOT="0"
KEYWORDS="~amd64"
# stripping breaks the binary. Errors:
# Pkg: Error reading from file.
RESTRICT='strip'
BDEPEND="app-arch/unzip"
QA_PREBUILT="usr/bin/bw"
src_compile() {
./bw completion --shell zsh > bw.zsh 2> /dev/null || die
}
src_install() {
dobin bw
newzshcomp bw.zsh _bw
}

View File

@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
<pkgmetadata>
<maintainer type="person" proxied="yes">
<email>me@rahil.rocks</email>
<name>Rahil Bhimjiani</name>
</maintainer>
<maintainer type="person">
<email>grobian@gentoo.org</email>
<name>Fabian Groffen</name>
</maintainer>
<upstream>
<remote-id type="github">bitwarden/clients</remote-id>
<bugs-to>https://github.com/bitwarden/clients/issues</bugs-to>
<doc>https://github.com/bitwarden/clients/tree/main/apps/cli</doc>
</upstream>
</pkgmetadata>