New package: vaultwarden-1.25.2
This commit is contained in:
parent
607382f8ac
commit
b218117b91
4 changed files with 67 additions and 0 deletions
1
srcpkgs/vaultwarden/files/vaultwarden/log/run
Symbolic link
1
srcpkgs/vaultwarden/files/vaultwarden/log/run
Symbolic link
|
@ -0,0 +1 @@
|
||||||
|
/usr/bin/vlogger
|
6
srcpkgs/vaultwarden/files/vaultwarden/run
Normal file
6
srcpkgs/vaultwarden/files/vaultwarden/run
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
#!/bin/sh
|
||||||
|
[ -r ./conf ] && . ./conf
|
||||||
|
ENV_FILE=${ENV_FILE:-/etc/vaultwarden.conf}
|
||||||
|
export ENV_FILE
|
||||||
|
|
||||||
|
exec chpst -u _vaultwarden:_vaultwarden vaultwarden
|
35
srcpkgs/vaultwarden/patches/config.patch
Normal file
35
srcpkgs/vaultwarden/patches/config.patch
Normal file
|
@ -0,0 +1,35 @@
|
||||||
|
configure several paths to sane/expected locations
|
||||||
|
|
||||||
|
diff --git a/.env.template b/.env.template
|
||||||
|
index 66a0434..cebac33 100644
|
||||||
|
--- a/.env.template
|
||||||
|
+++ b/.env.template
|
||||||
|
@@ -10,7 +10,7 @@
|
||||||
|
## vaultwarden.
|
||||||
|
|
||||||
|
## Main data folder
|
||||||
|
-# DATA_FOLDER=data
|
||||||
|
+DATA_FOLDER=/var/lib/vaultwarden
|
||||||
|
|
||||||
|
## Database URL
|
||||||
|
## When using SQLite, this is the path to the DB file, default to %DATA_FOLDER%/db.sqlite3
|
||||||
|
@@ -61,8 +61,8 @@
|
||||||
|
# ICON_CACHE_NEGTTL=259200
|
||||||
|
|
||||||
|
## Web vault settings
|
||||||
|
-# WEB_VAULT_FOLDER=web-vault/
|
||||||
|
-# WEB_VAULT_ENABLED=true
|
||||||
|
+# WEB_VAULT_FOLDER=/usr/share/webapps/vaultwarden-web
|
||||||
|
+WEB_VAULT_ENABLED=false
|
||||||
|
|
||||||
|
## Enables websocket notifications
|
||||||
|
# WEBSOCKET_ENABLED=false
|
||||||
|
@@ -117,7 +117,7 @@
|
||||||
|
# LOG_TIMESTAMP_FORMAT="%Y-%m-%d %H:%M:%S.%3f"
|
||||||
|
|
||||||
|
## Logging to file
|
||||||
|
-# LOG_FILE=/path/to/log
|
||||||
|
+# LOG_FILE=/var/log/vaultwarden.log
|
||||||
|
|
||||||
|
## Logging to Syslog
|
||||||
|
## This requires extended logging
|
25
srcpkgs/vaultwarden/template
Normal file
25
srcpkgs/vaultwarden/template
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
# Template file for 'vaultwarden'
|
||||||
|
pkgname=vaultwarden
|
||||||
|
version=1.25.2
|
||||||
|
revision=1
|
||||||
|
build_style=cargo
|
||||||
|
configure_args="--features sqlite,mysql,postgresql"
|
||||||
|
hostmakedepends="pkg-config"
|
||||||
|
makedepends="openssl-devel libmysqlclient-devel postgresql-libs-devel
|
||||||
|
sqlite-devel"
|
||||||
|
short_desc="Unofficial Bitwarden compatible server written in Rust"
|
||||||
|
maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
|
||||||
|
license="GPL-3.0-or-later"
|
||||||
|
homepage="https://github.com/dani-garcia/vaultwarden"
|
||||||
|
distfiles="https://github.com/dani-garcia/vaultwarden/archive/${version}.tar.gz"
|
||||||
|
checksum=f4afc2d8aa7aa59dd1ae16497b6a7f9b412ff426a24868e3081054e611d4824d
|
||||||
|
|
||||||
|
system_accounts="_vaultwarden"
|
||||||
|
_vaultwarden_homedir="/var/lib/vaultwarden"
|
||||||
|
|
||||||
|
make_dirs="/var/lib/vaultwarden 0750 _vaultwarden _vaultwarden"
|
||||||
|
|
||||||
|
post_install() {
|
||||||
|
vsconf .env.template vaultwarden.conf
|
||||||
|
vsv vaultwarden
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue