From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-1604291-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (2048 bits))
	(No client certificate requested)
	by finch.gentoo.org (Postfix) with ESMTPS id 4FD0B158041
	for <garchives@archives.gentoo.org>; Mon, 26 Feb 2024 05:49:15 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id BE09FE29C4;
	Mon, 26 Feb 2024 05:49:13 +0000 (UTC)
Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 9E782E29C5
	for <gentoo-commits@lists.gentoo.org>; Mon, 26 Feb 2024 05:49:13 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256)
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 6121A33BEF1
	for <gentoo-commits@lists.gentoo.org>; Mon, 26 Feb 2024 05:49:12 +0000 (UTC)
Received: from localhost.localdomain (localhost [IPv6:::1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id BA70614D1
	for <gentoo-commits@lists.gentoo.org>; Mon, 26 Feb 2024 05:49:10 +0000 (UTC)
From: "Rahil Bhimjiani" <rahil3108@gmail.com>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Rahil Bhimjiani" <rahil3108@gmail.com>
Message-ID: <1708926432.45ed00a6a0aff02fb7fd745017385efacbf172c2.rahilarious@gentoo>
Subject: [gentoo-commits] repo/proj/guru:dev commit in: www-apps/vaultwarden-web-bin/
X-VCS-Repository: repo/proj/guru
X-VCS-Files: www-apps/vaultwarden-web-bin/Manifest www-apps/vaultwarden-web-bin/metadata.xml www-apps/vaultwarden-web-bin/vaultwarden-web-bin-2024.1.2b.ebuild
X-VCS-Directories: www-apps/vaultwarden-web-bin/
X-VCS-Committer: rahilarious
X-VCS-Committer-Name: Rahil Bhimjiani
X-VCS-Revision: 45ed00a6a0aff02fb7fd745017385efacbf172c2
X-VCS-Branch: dev
Date: Mon, 26 Feb 2024 05:49:10 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply
X-Archives-Salt: 92a948c8-861d-4ec6-8142-29c179624580
X-Archives-Hash: 010556a855b09c6542138ca5d85fb6da

commit:     45ed00a6a0aff02fb7fd745017385efacbf172c2
Author:     Rahil Bhimjiani <me <AT> rahil <DOT> rocks>
AuthorDate: Wed Feb 21 15:35:37 2024 +0000
Commit:     Rahil Bhimjiani <rahil3108 <AT> gmail <DOT> com>
CommitDate: Mon Feb 26 05:47:12 2024 +0000
URL:        https://gitweb.gentoo.org/repo/proj/guru.git/commit/?id=45ed00a6

www-apps/vaultwarden-web-bin: precompiled Web UI for Vaultwarden

initial release 2024.1.2b

Signed-off-by: Rahil Bhimjiani <me <AT> rahil.rocks>

 www-apps/vaultwarden-web-bin/Manifest              |  1 +
 www-apps/vaultwarden-web-bin/metadata.xml          | 13 ++++++++++
 .../vaultwarden-web-bin-2024.1.2b.ebuild           | 29 ++++++++++++++++++++++
 3 files changed, 43 insertions(+)

diff --git a/www-apps/vaultwarden-web-bin/Manifest b/www-apps/vaultwarden-web-bin/Manifest
new file mode 100644
index 0000000000..41fc04069d
--- /dev/null
+++ b/www-apps/vaultwarden-web-bin/Manifest
@@ -0,0 +1 @@
+DIST vaultwarden-web-bin-2024.1.2b.tar.gz 11259948 BLAKE2B 6d899b53972df56ca76c63f84375a95629c8da43026b16f0ffd09b70ab46b8db530163976f6854325cd70513d0be31c394256153b7a9cfec4c3f627fd3d3b80c SHA512 0157c751f5869de261c93624a1fa168a96e86ad1a169727bee428bb9d804b8bfac3d7b8e4b993e2e5d2414ee99a016702eb750d81c3cc71c9e4c659a5ff7b37f

diff --git a/www-apps/vaultwarden-web-bin/metadata.xml b/www-apps/vaultwarden-web-bin/metadata.xml
new file mode 100644
index 0000000000..889a71396a
--- /dev/null
+++ b/www-apps/vaultwarden-web-bin/metadata.xml
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE pkgmetadata SYSTEM "https://www.gentoo.org/dtd/metadata.dtd">
+<pkgmetadata>
+	<maintainer type="person">
+		<email>me@rahil.rocks</email>
+		<name>Rahil Bhimjiani</name>
+	</maintainer>
+	<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-bin/vaultwarden-web-bin-2024.1.2b.ebuild b/www-apps/vaultwarden-web-bin/vaultwarden-web-bin-2024.1.2b.ebuild
new file mode 100644
index 0000000000..a750806584
--- /dev/null
+++ b/www-apps/vaultwarden-web-bin/vaultwarden-web-bin-2024.1.2b.ebuild
@@ -0,0 +1,29 @@
+# Copyright 1999-2024 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+EAPI=8
+
+DESCRIPTION="Prebuilt Vaultwarden web from upstream"
+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"
+
+RDEPEND="!www-apps/vaultwarden-web"
+
+src_prepare() {
+	default
+	# although following is optional in upstream's build process, it reduced build dir size from 44M to 25M
+	find -name "*.map" -delete || die
+}
+
+src_install() {
+	insinto /usr/share/webapps/"${PN%-bin}"
+	doins -r *
+}