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

Frederik Schwan freswa at gemini.archlinux.org
Thu Mar 10 01:51:33 UTC 2022


    Date: Thursday, March 10, 2022 @ 01:51:32
  Author: freswa
Revision: 1145911

archrelease: copy trunk to community-x86_64

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

---------------------+
 PKGBUILD            |   54 ++++++++++++++++++++++++++++++++++++++++++++++++++
 rustypaste.env      |    2 +
 rustypaste.service  |   31 ++++++++++++++++++++++++++++
 rustypaste.sysusers |    1 
 rustypaste.tmpfiles |    1 
 5 files changed, 89 insertions(+)

Copied: rustypaste/repos/community-x86_64/PKGBUILD (from rev 1145910, rustypaste/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-03-10 01:51:32 UTC (rev 1145911)
@@ -0,0 +1,54 @@
+# Maintainer: Frederik Schwan <freswa at archlinux dot org>
+
+pkgname=rustypaste
+pkgver=0.6.3
+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')
+options=(!lto)
+source=(https://github.com/orhun/rustypaste/archive/refs/tags/v${pkgver}.tar.gz
+  rustypaste.service
+  rustypaste.env
+  rustypaste.sysusers
+  rustypaste.tmpfiles)
+b2sums=('9ba041295b5cdbbbc6fdc150b5b4c9e1cef340323ab3d6580cc5c4d62a4da8ddb6e7013c59a13c7ec86e4e859e96bf9f6f83f65596b0935061c14a50097e216e'
+        '0a97e61cc4bbe00d7e395bbee1893ae21444559dc01a1598144c9e20b198ed4b467aa72c2989449b0d055bab9c5d8d75ecb06f874332d8e444a4b0580915b359'
+        '540a8523154c1847c93b9332da2a1ce84336ca043bc551540649a2dfab4bb2bee42ef11d25d9287ac1b256c3862f703b3302e36b11e627a45ff72a10ff5f9a8e'
+        '47dd34688a8cfab88f6be13830e3030445f0378247a69f8efc8c54d221d28b871a6226920b12c7fcb1e1bf1659c7e0aa2df691dbbfa0ff64e58c7680149027ee'
+        'f08a802529a7afb77950496d500a12b1332b6b56202db60e4d76765cca79d8b44ce658f433294221696172a8c34ceac0121c75673b9b9de72a873f451617d0c0')
+
+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
+  cargo build --release --frozen
+}
+
+check() {
+  cd ${pkgname}-${pkgver}
+  export RUSTUP_TOOLCHAIN=stable
+  cargo test --frozen
+}
+
+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 "${srcdir}"/rustypaste.env -t "${pkgdir}"/etc/rustypaste
+  install -Dm644 "${srcdir}"/rustypaste.service -t "$pkgdir"/usr/lib/systemd/system/
+  install -Dm644 "${srcdir}"/rustypaste.sysusers "${pkgdir}"/usr/lib/sysusers.d/rustypaste.conf
+  install -Dm644 "${srcdir}"/rustypaste.tmpfiles "${pkgdir}"/usr/lib/tmpfiles.d/rustypaste.conf
+}

Copied: rustypaste/repos/community-x86_64/rustypaste.env (from rev 1145910, rustypaste/trunk/rustypaste.env)
===================================================================
--- community-x86_64/rustypaste.env	                        (rev 0)
+++ community-x86_64/rustypaste.env	2022-03-10 01:51:32 UTC (rev 1145911)
@@ -0,0 +1,2 @@
+# To enable basic HTTP auth, set the AUTH_TOKEN
+AUTH_TOKEN=""

Copied: rustypaste/repos/community-x86_64/rustypaste.service (from rev 1145910, rustypaste/trunk/rustypaste.service)
===================================================================
--- community-x86_64/rustypaste.service	                        (rev 0)
+++ community-x86_64/rustypaste.service	2022-03-10 01:51:32 UTC (rev 1145911)
@@ -0,0 +1,31 @@
+[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

Copied: rustypaste/repos/community-x86_64/rustypaste.sysusers (from rev 1145910, rustypaste/trunk/rustypaste.sysusers)
===================================================================
--- community-x86_64/rustypaste.sysusers	                        (rev 0)
+++ community-x86_64/rustypaste.sysusers	2022-03-10 01:51:32 UTC (rev 1145911)
@@ -0,0 +1 @@
+u rustypaste - "Minimal file upload/pastebin service" /var/lib/rustypaste

Copied: rustypaste/repos/community-x86_64/rustypaste.tmpfiles (from rev 1145910, rustypaste/trunk/rustypaste.tmpfiles)
===================================================================
--- community-x86_64/rustypaste.tmpfiles	                        (rev 0)
+++ community-x86_64/rustypaste.tmpfiles	2022-03-10 01:51:32 UTC (rev 1145911)
@@ -0,0 +1 @@
+d /var/lib/rustypaste 0750 rustypaste rustypaste



More information about the arch-commits mailing list