[arch-commits] Commit in rustypaste/repos/community-x86_64 (6 files)

Orhun Parmaksiz orhun at gemini.archlinux.org
Sat May 21 17:48:09 UTC 2022


    Date: Saturday, May 21, 2022 @ 17:48:09
  Author: orhun
Revision: 1209874

archrelease: copy trunk to community-x86_64

Added:
  rustypaste/repos/community-x86_64/PKGBUILD
    (from rev 1209873, rustypaste/trunk/PKGBUILD)
Deleted:
  rustypaste/repos/community-x86_64/PKGBUILD
  rustypaste/repos/community-x86_64/rustypaste.env
  rustypaste/repos/community-x86_64/rustypaste.service
  rustypaste/repos/community-x86_64/rustypaste.sysusers
  rustypaste/repos/community-x86_64/rustypaste.tmpfiles

---------------------+
 PKGBUILD            |   98 ++++++++++++++++++++++++++------------------------
 rustypaste.env      |    2 -
 rustypaste.service  |   31 ---------------
 rustypaste.sysusers |    1 
 rustypaste.tmpfiles |    1 
 5 files changed, 51 insertions(+), 82 deletions(-)

Deleted: PKGBUILD
===================================================================
--- PKGBUILD	2022-05-21 17:47:31 UTC (rev 1209873)
+++ PKGBUILD	2022-05-21 17:48:09 UTC (rev 1209874)
@@ -1,47 +0,0 @@
-# Maintainer: Frederik Schwan <freswa at archlinux dot org>
-# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
-
-pkgname=rustypaste
-pkgver=0.7.0
-pkgrel=1
-pkgdesc='A minimal file upload/pastebin service'
-arch=('x86_64')
-url='https://github.com/orhun/rustypaste'
-license=('MIT')
-depends=('gcc-libs')
-makedepends=('cargo')
-backup=('etc/rustypaste/config.toml')
-source=(${pkgname}-${pkgver}.tar.gz::https://github.com/orhun/rustypaste/archive/refs/tags/v${pkgver}.tar.gz)
-b2sums=('7990b54805e7130862e6047f9393fe5c539dc4ded32e4d74bd4fedc34c610717dccdd10781a81dd603e25e2bf9132e0e035ac08f785a3cfc95c09d4f4edbd948')
-
-prepare() {
-  cd ${pkgname}-${pkgver}
-  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
-}
-
-build() {
-  cd ${pkgname}-${pkgver}
-  export RUSTUP_TOOLCHAIN=stable
-  export CARGO_TARGET_DIR=target
-  CFLAGS+=' -ffat-lto-objects'
-  cargo build --release --frozen
-}
-
-check() {
-  cd ${pkgname}-${pkgver}
-  export RUSTUP_TOOLCHAIN=stable
-  CFLAGS+=' -ffat-lto-objects'
-  cargo test --frozen -- --test-threads 1
-}
-
-package() {
-  cd ${pkgname}-${pkgver}
-  install -Dm755 target/release/${pkgname} -t "${pkgdir}"/usr/bin
-  install -Dm644 config.toml -t "${pkgdir}"/etc/rustypaste
-  install -Dm644 README.md -t "${pkgdir}"/usr/share/doc/${pkgname}
-  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
-  install -Dm644 extra/systemd/rustypaste.env -t "${pkgdir}"/etc/rustypaste
-  install -Dm644 extra/systemd/rustypaste.service -t "$pkgdir"/usr/lib/systemd/system/
-  install -Dm644 extra/systemd/rustypaste.sysusers "${pkgdir}"/usr/lib/sysusers.d/rustypaste.conf
-  install -Dm644 extra/systemd/rustypaste.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/rustypaste.conf
-}

Copied: rustypaste/repos/community-x86_64/PKGBUILD (from rev 1209873, rustypaste/trunk/PKGBUILD)
===================================================================
--- PKGBUILD	                        (rev 0)
+++ PKGBUILD	2022-05-21 17:48:09 UTC (rev 1209874)
@@ -0,0 +1,51 @@
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+# Maintainer: Orhun Parmaksız <orhun at archlinux.org>
+
+pkgname=rustypaste
+pkgver=0.7.1
+pkgrel=1
+pkgdesc='A minimal file upload/pastebin service'
+arch=('x86_64')
+url='https://github.com/orhun/rustypaste'
+license=('MIT')
+depends=('gcc-libs')
+makedepends=('cargo')
+backup=('etc/rustypaste/config.toml')
+source=(${pkgname}-${pkgver}.tar.gz::https://github.com/orhun/rustypaste/archive/refs/tags/v${pkgver}.tar.gz)
+b2sums=('a46cae0327a32c3b3c4e70bf0fc8d5ae11e3b01e87f3240fd125264c6cada25129a997912415b328b15f8328450446d363bc978aaf5be6ce38791a5e6c9a3ec1')
+
+prepare() {
+  cd ${pkgname}-${pkgver}
+  cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+}
+
+build() {
+  cd ${pkgname}-${pkgver}
+  export RUSTUP_TOOLCHAIN=stable
+  export CARGO_TARGET_DIR=target
+  CFLAGS+=' -ffat-lto-objects'
+  cargo build --release --frozen
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  export RUSTUP_TOOLCHAIN=stable
+  CFLAGS+=' -ffat-lto-objects'
+  cargo test --frozen -- --test-threads 1
+
+  cd fixtures
+  sed -i "s|target/debug|target/release|" test-fixtures.sh
+  ./test-fixtures.sh
+}
+
+package() {
+  cd ${pkgname}-${pkgver}
+  install -Dm755 target/release/${pkgname} -t "${pkgdir}"/usr/bin
+  install -Dm644 config.toml -t "${pkgdir}"/etc/rustypaste
+  install -Dm644 README.md -t "${pkgdir}"/usr/share/doc/${pkgname}
+  install -Dm644 LICENSE -t "${pkgdir}"/usr/share/licenses/${pkgname}
+  install -Dm644 extra/systemd/rustypaste.env -t "${pkgdir}"/etc/rustypaste
+  install -Dm644 extra/systemd/rustypaste.service -t "$pkgdir"/usr/lib/systemd/system/
+  install -Dm644 extra/systemd/rustypaste.sysusers "${pkgdir}"/usr/lib/sysusers.d/rustypaste.conf
+  install -Dm644 extra/systemd/rustypaste.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/rustypaste.conf
+}

Deleted: rustypaste.env
===================================================================
--- rustypaste.env	2022-05-21 17:47:31 UTC (rev 1209873)
+++ rustypaste.env	2022-05-21 17:48:09 UTC (rev 1209874)
@@ -1,2 +0,0 @@
-# To enable basic HTTP auth, set the AUTH_TOKEN
-AUTH_TOKEN=""

Deleted: rustypaste.service
===================================================================
--- rustypaste.service	2022-05-21 17:47:31 UTC (rev 1209873)
+++ rustypaste.service	2022-05-21 17:48:09 UTC (rev 1209874)
@@ -1,31 +0,0 @@
-[Unit]
-Description=Rustypaste server
-After=network-online.target
-Wants=network-online.target systemd-networkd-wait-online.service
-
-[Service]
-User=rustypaste
-Group=rustypaste
-ExecStart=/usr/bin/rustypaste
-ReadWritePaths=/var/lib/rustypaste
-ReadOnlyPaths=/etc/rustypaste
-
-WorkingDirectory=/var/lib/rustypaste
-Environment="CONFIG=/etc/rustypaste/config.toml"
-EnvironmentFile=/etc/rustypaste/rustypaste.env
-
-# Hardening options
-CapabilityBoundingSet=
-AmbientCapabilities=
-NoNewPrivileges=true
-ProtectHome=true
-ProtectSystem=strict
-ProtectKernelTunables=true
-ProtectKernelModules=true
-ProtectControlGroups=true
-PrivateTmp=true
-PrivateDevices=true
-LockPersonality=true
-
-[Install]
-WantedBy=multi-user.target

Deleted: rustypaste.sysusers
===================================================================
--- rustypaste.sysusers	2022-05-21 17:47:31 UTC (rev 1209873)
+++ rustypaste.sysusers	2022-05-21 17:48:09 UTC (rev 1209874)
@@ -1 +0,0 @@
-u rustypaste - "Minimal file upload/pastebin service" /var/lib/rustypaste

Deleted: rustypaste.tmpfiles
===================================================================
--- rustypaste.tmpfiles	2022-05-21 17:47:31 UTC (rev 1209873)
+++ rustypaste.tmpfiles	2022-05-21 17:48:09 UTC (rev 1209874)
@@ -1 +0,0 @@
-d /var/lib/rustypaste 0750 rustypaste rustypaste



More information about the arch-commits mailing list