commit:     d5e134842ea6b106de1c8c574b0941aa2006d139
Author:     Rahil Bhimjiani <me <AT> rahil <DOT> rocks>
AuthorDate: Wed Apr 30 10:58:49 2025 +0000
Commit:     Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Sun Jun  1 08:56:08 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d5e13484

www-apps/vaultwarden-web: Prebuilt webvault frontend for Vaultwarden

Bug: https://github.com/gentoo/gentoo/pull/41864
Signed-off-by: Rahil Bhimjiani <me <AT> rahil.rocks>
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>

 www-apps/vaultwarden-web/Manifest                  |  1 +
 www-apps/vaultwarden-web/metadata.xml              | 18 ++++++++++++++
 .../vaultwarden-web-2025.5.0.ebuild                | 29 ++++++++++++++++++++++
 3 files changed, 48 insertions(+)

diff --git a/www-apps/vaultwarden-web/Manifest 
b/www-apps/vaultwarden-web/Manifest
new file mode 100644
index 000000000000..622d2042ce42
--- /dev/null
+++ b/www-apps/vaultwarden-web/Manifest
@@ -0,0 +1 @@
+DIST vaultwarden-web-2025.5.0.tar.gz 17927067 BLAKE2B 
7e26c8549e4b58846a59957d1f2d8e1bcb94203b601563e9f9db01f685d82f39ca6607c652c9e2fd71744a786739d250675ee7d855077224f199c6fd4103baa7
 SHA512 
a92d88d9f4baece4e59954c23c0f56a10374db33ad0c96f5278d79692ad36547e6e623c5d168c2d718eba18e8fc60fb188b9ed622b460b51129adafa6854e502

diff --git a/www-apps/vaultwarden-web/metadata.xml 
b/www-apps/vaultwarden-web/metadata.xml
new file mode 100644
index 000000000000..dedd616a08f8
--- /dev/null
+++ b/www-apps/vaultwarden-web/metadata.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd";>
+<pkgmetadata>
+  <maintainer type="person" proxied="yes">
+    <email>[email protected]</email>
+    <name>Rahil Bhimjiani</name>
+  </maintainer>
+  <maintainer type="person">
+    <email>[email protected]</email>
+    <name>Fabian Groffen</name>
+  </maintainer>
+  <stabilize-allarches/>
+  <upstream>
+    <remote-id type="github">dani-garcia/bw_web_builds</remote-id>
+    <bugs-to>https://github.com/dani-garcia/bw_web_builds/issues</bugs-to>
+    
<doc>https://github.com/dani-garcia/bw_web_builds/blob/master/README.md</doc>
+  </upstream>
+</pkgmetadata>

diff --git a/www-apps/vaultwarden-web/vaultwarden-web-2025.5.0.ebuild 
b/www-apps/vaultwarden-web/vaultwarden-web-2025.5.0.ebuild
new file mode 100644
index 000000000000..1bae53602b3a
--- /dev/null
+++ b/www-apps/vaultwarden-web/vaultwarden-web-2025.5.0.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Prebuilt web vault frontend for Vaultwarden"
+HOMEPAGE="https://github.com/dani-garcia/bw_web_builds";
+
+SRC_URI="https://github.com/dani-garcia/bw_web_builds/releases/download/v${PV}/bw_web_v${PV}.tar.gz
 -> ${P}.tar.gz"
+
+S="${WORKDIR}/web-vault"
+LICENSE="GPL-3"
+SLOT="0"
+KEYWORDS="~amd64"
+# this package is really useless without vaultwarden, it cannot be run
+# standalone, so pull in vaultwarden to run it
+PDEPEND="app-admin/vaultwarden[web]"
+
+src_prepare() {
+       default
+       # although following is optional in upstream's build process
+       # it reduced install dir size from 74M to 38M
+       find -name "*.map" -delete || die
+}
+
+src_install() {
+       insinto /usr/share/webapps/"${PN}"
+       doins -r *
+}

Reply via email to