commit: 622c5bfb1a39df0be440a44b32684affe84176f3
Author: Rahil Bhimjiani <me <AT> rahil <DOT> rocks>
AuthorDate: Mon Jul 7 08:38:36 2025 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Tue Jul 8 06:29:56 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=622c5bfb
app-admin/vaultwarden: sync live ebuild & prepare for next release
Signed-off-by: Rahil Bhimjiani <me <AT> rahil.rocks>
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
.../files/vaultwarden-envfile-1.34.1.patch | 53 ++++++++++++++++++++++
app-admin/vaultwarden/vaultwarden-9999.ebuild | 2 +-
2 files changed, 54 insertions(+), 1 deletion(-)
diff --git a/app-admin/vaultwarden/files/vaultwarden-envfile-1.34.1.patch
b/app-admin/vaultwarden/files/vaultwarden-envfile-1.34.1.patch
new file mode 100644
index 000000000000..4a09f41cd692
--- /dev/null
+++ b/app-admin/vaultwarden/files/vaultwarden-envfile-1.34.1.patch
@@ -0,0 +1,53 @@
+As upstream defaults create directories where binary is executed (/usr/bin/),
this patch is needed to change paths to Gentoo specific locations
+--- a/.env.template
++++ b/.env.template
+@@ -5,10 +5,6 @@
+ ## Be aware that most of these settings will be overridden if they were
changed
+ ## in the admin interface. Those overrides are stored within
DATA_FOLDER/config.json .
+ ##
+-## By default, Vaultwarden expects for this file to be named ".env" and
located
+-## in the current working directory. If this is not the case, the environment
+-## variable ENV_FILE can be set to the location of this file prior to starting
+-## Vaultwarden.
+
+ ####################
+ ### Data folders ###
+@@ -23,17 +19,17 @@
+ ## When using an external location, make sure to set TMP_FOLDER,
+ ## TEMPLATES_FOLDER, and DATABASE_URL to local paths and/or a remote database
+ ## location.
+-# DATA_FOLDER=data
++DATA_FOLDER=/var/lib/vaultwarden
+
+ ## Individual folders, these override %DATA_FOLDER%
+ # RSA_KEY_FILENAME=data/rsa_key
+-# ICON_CACHE_FOLDER=data/icon_cache
++ICON_CACHE_FOLDER=/var/cache/vaultwarden/icon_cache
+ # ATTACHMENTS_FOLDER=data/attachments
+ # SENDS_FOLDER=data/sends
+
+ ## Temporary folder used for storing temporary file uploads
+ ## Must be a local path.
+-# TMP_FOLDER=data/tmp
++TMP_FOLDER=/tmp/vaultwarden
+
+ ## HTML template overrides data folder
+ ## Must be a local path.
+@@ -42,7 +38,7 @@
+ # RELOAD_TEMPLATES=false
+
+ ## Web vault settings
+-# WEB_VAULT_FOLDER=web-vault/
++WEB_VAULT_FOLDER=/usr/share/webapps/vaultwarden-web
+ # WEB_VAULT_ENABLED=true
+
+ #########################
+@@ -386,7 +382,7 @@
+ # USE_SYSLOG=false
+
+ ## Logging to file
+-# LOG_FILE=/path/to/log
++LOG_FILE=/var/log/vaultwarden.log
+
+ ## Log level
+ ## Change the verbosity of the log output
diff --git a/app-admin/vaultwarden/vaultwarden-9999.ebuild
b/app-admin/vaultwarden/vaultwarden-9999.ebuild
index 47af5112e14d..12a9e09a7dc7 100644
--- a/app-admin/vaultwarden/vaultwarden-9999.ebuild
+++ b/app-admin/vaultwarden/vaultwarden-9999.ebuild
@@ -47,7 +47,7 @@ QA_PRESTRIPPED="usr/bin/${PN}"
ECARGO_VENDOR="${WORKDIR}/vendor"
PATCHES=(
- "${FILESDIR}"/vaultwarden-envfile-1.33.2.patch
+ "${FILESDIR}"/vaultwarden-envfile-1.34.1.patch
)
CHECKREQS_MEMORY=3G