[arch-commits] Commit in bitwarden_rs/repos/community-x86_64 (10 files)

Daniel M. Capella polyzen at archlinux.org
Tue Dec 29 00:35:40 UTC 2020


    Date: Tuesday, December 29, 2020 @ 00:35:39
  Author: polyzen
Revision: 796283

archrelease: copy trunk to community-x86_64

Added:
  bitwarden_rs/repos/community-x86_64/PKGBUILD
    (from rev 796282, bitwarden_rs/trunk/PKGBUILD)
  bitwarden_rs/repos/community-x86_64/bitwarden_rs.install
    (from rev 796282, bitwarden_rs/trunk/bitwarden_rs.install)
  bitwarden_rs/repos/community-x86_64/bitwarden_rs.service
    (from rev 796282, bitwarden_rs/trunk/bitwarden_rs.service)
  bitwarden_rs/repos/community-x86_64/bitwarden_rs.sysusers.conf
    (from rev 796282, bitwarden_rs/trunk/bitwarden_rs.sysusers.conf)
  bitwarden_rs/repos/community-x86_64/bitwarden_rs.tmpfiles
    (from rev 796282, bitwarden_rs/trunk/bitwarden_rs.tmpfiles)
Deleted:
  bitwarden_rs/repos/community-x86_64/PKGBUILD
  bitwarden_rs/repos/community-x86_64/bitwarden_rs.install
  bitwarden_rs/repos/community-x86_64/bitwarden_rs.service
  bitwarden_rs/repos/community-x86_64/bitwarden_rs.sysusers.conf
  bitwarden_rs/repos/community-x86_64/bitwarden_rs.tmpfiles

----------------------------+
 PKGBUILD                   |  110 +++++++++++++++++++++----------------------
 bitwarden_rs.install       |   48 +++++++++---------
 bitwarden_rs.service       |  110 +++++++++++++++++++++----------------------
 bitwarden_rs.sysusers.conf |    2 
 bitwarden_rs.tmpfiles      |    6 +-
 5 files changed, 138 insertions(+), 138 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2020-12-29 00:35:03 UTC (rev 796282)
+++ PKGBUILD	2020-12-29 00:35:39 UTC (rev 796283)
@@ -1,55 +0,0 @@
-# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
-# Contributor: Markus Richter <mqus at disroot dot org>
-# Contributor: Timothée Ravier <tim at siosm.fr
-
-pkgname=bitwarden_rs
-pkgver=1.17.0
-pkgrel=6
-pkgdesc='Unofficial Bitwarden compatible server written in Rust'
-arch=('x86_64')
-url=https://github.com/dani-garcia/bitwarden_rs
-license=('GPL3')
-depends=('mariadb-libs' 'openssl' 'postgresql-libs' 'sqlite')
-makedepends=('rustup')
-optdepends=('bitwarden_rs-web: for the web app')
-backup=('etc/bitwarden_rs.env')
-install=$pkgname.install
-source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz"
-        "$pkgname.service"
-        "$pkgname.sysusers.conf"
-        "$pkgname.tmpfiles")
-b2sums=('faf4a3e0cba6905547c347bd8d7939e2412116d5c9b226e49cddd04306b6e69e00e1f5d7b1b09493ff02614d5417b34cd9c54cb3efffbf238e23e3f54bacd5d1'
-        '22bc90b8c49b6a26610ec840f04481fe3c7fcffc82434df3ee6adba4555787ba44c7b58dfcb181a28d4a6c943db6e7f7f439b67995c5aa06c23035002765de09'
-        'c44af94e19724ba23a11cec3ccc46ff9db307a058564d539dc533308e75ff43cfb5e42515bd49fdeb86e02cbc7575dc87c3b132d9d28d49f7e8fedab598c06f5'
-        'a2a6a128a405b4dbd06eb84c25b1971a5dcab4b918d6fec74da317b76485eda6b4b16ad972a85d9c8267b0a848787761fae75cd6bbb81d970a8cbc8683a2fc42')
-
-prepare() {
-  cd $pkgname-$pkgver
-  sed -i 's,# DATA_FOLDER=data,DATA_FOLDER=/var/lib/bitwarden_rs,
-  s,web-vault/,/usr/share/bitwarden_rs-web,
-  s,# WEB_VAULT_ENABLED=true,WEB_VAULT_ENABLED=false,
-  s,/path/to/log,/var/log/bitwarden_rs.log,
-  /^# ROCKET_TLS/a ROCKET_LIMITS={json=10485760}' .env.template
-}
-
-build() {
-  cd $pkgname-$pkgver
-  rustup set profile minimal
-  BWRS_VERSION="$pkgver" cargo build --release --locked --features sqlite,mysql,postgresql
-}
-
-check() {
-  cd $pkgname-$pkgver
-  cargo test --release --locked --features sqlite,mysql,postgresql
-}
-
-package() {
-  cd $pkgname-$pkgver
-  install -Dm644 .env.template "$pkgdir"/etc/bitwarden_rs.env
-  install -Dt "$pkgdir"/usr/bin target/release/bitwarden_rs
-  install -Dm644 -t "$pkgdir"/usr/lib/systemd/system ../bitwarden_rs.service
-  install -Dm644 ../$pkgname.sysusers.conf "$pkgdir"/usr/lib/sysusers.d/bitwarden_rs.conf
-  install -Dm644 ../bitwarden_rs.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/bitwarden_rs.conf
-}
-
-# vim:set ts=2 sw=2 et:

Copied: bitwarden_rs/repos/community-x86_64/PKGBUILD (from rev 796282, bitwarden_rs/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2020-12-29 00:35:39 UTC (rev 796283)
@@ -0,0 +1,55 @@
+# Maintainer: Daniel M. Capella <polyzen at archlinux.org>
+# Contributor: Markus Richter <mqus at disroot dot org>
+# Contributor: Timothée Ravier <tim at siosm.fr
+
+pkgname=bitwarden_rs
+pkgver=1.18.0
+pkgrel=1
+pkgdesc='Unofficial Bitwarden compatible server written in Rust'
+arch=('x86_64')
+url=https://github.com/dani-garcia/bitwarden_rs
+license=('GPL3')
+depends=('mariadb-libs' 'openssl' 'postgresql-libs' 'sqlite')
+makedepends=('rustup')
+optdepends=('bitwarden_rs-web: for the web app')
+backup=('etc/bitwarden_rs.env')
+install=$pkgname.install
+source=("$url/archive/$pkgver/$pkgname-$pkgver.tar.gz"
+        "$pkgname.service"
+        "$pkgname.sysusers.conf"
+        "$pkgname.tmpfiles")
+b2sums=('ce901e48a1a379043f7b32ac6b1856c6f095a75b127796356e85dc1bf301864af957ae5d89559d82f819c1b838c30ea1b679ccb86f5fd1fe4d95e67e9a9b943e'
+        '22bc90b8c49b6a26610ec840f04481fe3c7fcffc82434df3ee6adba4555787ba44c7b58dfcb181a28d4a6c943db6e7f7f439b67995c5aa06c23035002765de09'
+        'c44af94e19724ba23a11cec3ccc46ff9db307a058564d539dc533308e75ff43cfb5e42515bd49fdeb86e02cbc7575dc87c3b132d9d28d49f7e8fedab598c06f5'
+        'a2a6a128a405b4dbd06eb84c25b1971a5dcab4b918d6fec74da317b76485eda6b4b16ad972a85d9c8267b0a848787761fae75cd6bbb81d970a8cbc8683a2fc42')
+
+prepare() {
+  cd $pkgname-$pkgver
+  sed -i 's,# DATA_FOLDER=data,DATA_FOLDER=/var/lib/bitwarden_rs,
+  s,web-vault/,/usr/share/bitwarden_rs-web,
+  s,# WEB_VAULT_ENABLED=true,WEB_VAULT_ENABLED=false,
+  s,/path/to/log,/var/log/bitwarden_rs.log,
+  /^# ROCKET_TLS/a ROCKET_LIMITS={json=10485760}' .env.template
+}
+
+build() {
+  cd $pkgname-$pkgver
+  rustup set profile minimal
+  BWRS_VERSION="$pkgver" cargo build --release --locked --features sqlite,mysql,postgresql
+}
+
+check() {
+  cd $pkgname-$pkgver
+  cargo test --release --locked --features sqlite,mysql,postgresql
+}
+
+package() {
+  cd $pkgname-$pkgver
+  install -Dm644 .env.template "$pkgdir"/etc/bitwarden_rs.env
+  install -Dt "$pkgdir"/usr/bin target/release/bitwarden_rs
+  install -Dm644 -t "$pkgdir"/usr/lib/systemd/system ../bitwarden_rs.service
+  install -Dm644 ../$pkgname.sysusers.conf "$pkgdir"/usr/lib/sysusers.d/bitwarden_rs.conf
+  install -Dm644 ../bitwarden_rs.tmpfiles "$pkgdir"/usr/lib/tmpfiles.d/bitwarden_rs.conf
+}
+
+# vim:set ts=2 sw=2 et:

Deleted: bitwarden_rs.install
===================================================================
--- bitwarden_rs.install	2020-12-29 00:35:03 UTC (rev 796282)
+++ bitwarden_rs.install	2020-12-29 00:35:39 UTC (rev 796283)
@@ -1,24 +0,0 @@
-post_install() {
-  cat << EOF
-Configure the server via its environment variables in /etc/bitwarden_rs.env.
-
-If bitwarden_rs is run at ports >1024, you should apply these systemd unit
-options via a drop-in file:
-[Service]
-CapabilityBoundingSet=
-AmbientCapabilities=
-PrivateUsers=yes
-
-If the service produces too much noise in your journal, you can redirect stdout
-to /dev/null (bitwarden_rs will still also write to /var/log/bitwarden_rs.log
-if configured to do so):
-[Service]
-StandardOutput=null
-
-Create or edit drop-in file:
-# systemctl edit bitwarden_rs
-
-Start bitwarden_rs and enable its systemd service:
-# systemctl enable --now bitwarden_rs
-EOF
-}

Copied: bitwarden_rs/repos/community-x86_64/bitwarden_rs.install (from rev 796282, bitwarden_rs/trunk/bitwarden_rs.install)
===================================================================
--- bitwarden_rs.install	                        (rev 0)
+++ bitwarden_rs.install	2020-12-29 00:35:39 UTC (rev 796283)
@@ -0,0 +1,24 @@
+post_install() {
+  cat << EOF
+Configure the server via its environment variables in /etc/bitwarden_rs.env.
+
+If bitwarden_rs is run at ports >1024, you should apply these systemd unit
+options via a drop-in file:
+[Service]
+CapabilityBoundingSet=
+AmbientCapabilities=
+PrivateUsers=yes
+
+If the service produces too much noise in your journal, you can redirect stdout
+to /dev/null (bitwarden_rs will still also write to /var/log/bitwarden_rs.log
+if configured to do so):
+[Service]
+StandardOutput=null
+
+Create or edit drop-in file:
+# systemctl edit bitwarden_rs
+
+Start bitwarden_rs and enable its systemd service:
+# systemctl enable --now bitwarden_rs
+EOF
+}

Deleted: bitwarden_rs.service
===================================================================
--- bitwarden_rs.service	2020-12-29 00:35:03 UTC (rev 796282)
+++ bitwarden_rs.service	2020-12-29 00:35:39 UTC (rev 796283)
@@ -1,55 +0,0 @@
-[Unit]
-Description=Bitwarden Server (Rust Edition)
-Documentation=https://github.com/dani-garcia/bitwarden_rs
-After=network.target
-
-[Service]
-ExecStart=/usr/bin/bitwarden_rs
-WorkingDirectory=/var/lib/bitwarden_rs
-User=bitwarden_rs
-Group=bitwarden_rs
-
-# Allow bitwarden_rs to bind ports in the range of 0-1024 and restrict it to
-# that capability
-CapabilityBoundingSet=CAP_NET_BIND_SERVICE
-AmbientCapabilities=CAP_NET_BIND_SERVICE
-
-# If bitwarden_rs is run at ports >1024, you should apply these options via a
-# drop-in file
-#CapabilityBoundingSet=
-#AmbientCapabilities=
-#PrivateUsers=yes
-
-NoNewPrivileges=yes
-
-LimitNOFILE=1048576
-LimitNPROC=64
-UMask=0077
-
-ProtectSystem=strict
-ProtectHome=yes
-ReadWritePaths=/var/lib/bitwarden_rs /var/log/bitwarden_rs.log
-PrivateTmp=yes
-PrivateDevices=yes
-ProtectHostname=yes
-ProtectClock=yes
-ProtectKernelTunables=yes
-ProtectKernelModules=yes
-ProtectKernelLogs=yes
-ProtectControlGroups=yes
-RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
-RestrictNamespaces=yes
-LockPersonality=yes
-MemoryDenyWriteExecute=yes
-RestrictRealtime=yes
-RestrictSUIDSGID=yes
-RemoveIPC=yes
-
-SystemCallFilter=@system-service
-SystemCallFilter=~@privileged @resources
-SystemCallArchitectures=native
-
-EnvironmentFile=/etc/bitwarden_rs.env
-
-[Install]
-WantedBy=multi-user.target

Copied: bitwarden_rs/repos/community-x86_64/bitwarden_rs.service (from rev 796282, bitwarden_rs/trunk/bitwarden_rs.service)
===================================================================
--- bitwarden_rs.service	                        (rev 0)
+++ bitwarden_rs.service	2020-12-29 00:35:39 UTC (rev 796283)
@@ -0,0 +1,55 @@
+[Unit]
+Description=Bitwarden Server (Rust Edition)
+Documentation=https://github.com/dani-garcia/bitwarden_rs
+After=network.target
+
+[Service]
+ExecStart=/usr/bin/bitwarden_rs
+WorkingDirectory=/var/lib/bitwarden_rs
+User=bitwarden_rs
+Group=bitwarden_rs
+
+# Allow bitwarden_rs to bind ports in the range of 0-1024 and restrict it to
+# that capability
+CapabilityBoundingSet=CAP_NET_BIND_SERVICE
+AmbientCapabilities=CAP_NET_BIND_SERVICE
+
+# If bitwarden_rs is run at ports >1024, you should apply these options via a
+# drop-in file
+#CapabilityBoundingSet=
+#AmbientCapabilities=
+#PrivateUsers=yes
+
+NoNewPrivileges=yes
+
+LimitNOFILE=1048576
+LimitNPROC=64
+UMask=0077
+
+ProtectSystem=strict
+ProtectHome=yes
+ReadWritePaths=/var/lib/bitwarden_rs /var/log/bitwarden_rs.log
+PrivateTmp=yes
+PrivateDevices=yes
+ProtectHostname=yes
+ProtectClock=yes
+ProtectKernelTunables=yes
+ProtectKernelModules=yes
+ProtectKernelLogs=yes
+ProtectControlGroups=yes
+RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
+RestrictNamespaces=yes
+LockPersonality=yes
+MemoryDenyWriteExecute=yes
+RestrictRealtime=yes
+RestrictSUIDSGID=yes
+RemoveIPC=yes
+
+SystemCallFilter=@system-service
+SystemCallFilter=~@privileged @resources
+SystemCallArchitectures=native
+
+EnvironmentFile=/etc/bitwarden_rs.env
+
+[Install]
+WantedBy=multi-user.target

Deleted: bitwarden_rs.sysusers.conf
===================================================================
--- bitwarden_rs.sysusers.conf	2020-12-29 00:35:03 UTC (rev 796282)
+++ bitwarden_rs.sysusers.conf	2020-12-29 00:35:39 UTC (rev 796283)
@@ -1 +0,0 @@
-u bitwarden_rs - "bitwarden_rs user"

Copied: bitwarden_rs/repos/community-x86_64/bitwarden_rs.sysusers.conf (from rev 796282, bitwarden_rs/trunk/bitwarden_rs.sysusers.conf)
===================================================================
--- bitwarden_rs.sysusers.conf	                        (rev 0)
+++ bitwarden_rs.sysusers.conf	2020-12-29 00:35:39 UTC (rev 796283)
@@ -0,0 +1 @@
+u bitwarden_rs - "bitwarden_rs user"

Deleted: bitwarden_rs.tmpfiles
===================================================================
--- bitwarden_rs.tmpfiles	2020-12-29 00:35:03 UTC (rev 796282)
+++ bitwarden_rs.tmpfiles	2020-12-29 00:35:39 UTC (rev 796283)
@@ -1,3 +0,0 @@
-d /var/lib/bitwarden_rs     0750 bitwarden_rs bitwarden_rs
-h /var/lib/bitwarden_rs     -    -            -            - +C
-f /var/log/bitwarden_rs.log 0640 bitwarden_rs bitwarden_rs

Copied: bitwarden_rs/repos/community-x86_64/bitwarden_rs.tmpfiles (from rev 796282, bitwarden_rs/trunk/bitwarden_rs.tmpfiles)
===================================================================
--- bitwarden_rs.tmpfiles	                        (rev 0)
+++ bitwarden_rs.tmpfiles	2020-12-29 00:35:39 UTC (rev 796283)
@@ -0,0 +1,3 @@
+d /var/lib/bitwarden_rs     0750 bitwarden_rs bitwarden_rs
+h /var/lib/bitwarden_rs     -    -            -            - +C
+f /var/log/bitwarden_rs.log 0640 bitwarden_rs bitwarden_rs



More information about the arch-commits mailing list