From 2f3816f16a9af8a89024fe04b6ecd3efd7d63330 Mon Sep 17 00:00:00 2001 From: Lukas Jordan Date: Fri, 31 Mar 2023 15:02:35 +0200 Subject: [PATCH] New package: rustypaste-0.8.4 --- srcpkgs/rustypaste/files/rustypaste/run | 6 ++++++ srcpkgs/rustypaste/template | 27 +++++++++++++++++++++++++ 2 files changed, 33 insertions(+) create mode 100644 srcpkgs/rustypaste/files/rustypaste/run create mode 100644 srcpkgs/rustypaste/template diff --git a/srcpkgs/rustypaste/files/rustypaste/run b/srcpkgs/rustypaste/files/rustypaste/run new file mode 100644 index 00000000000000..4717b77c621003 --- /dev/null +++ b/srcpkgs/rustypaste/files/rustypaste/run @@ -0,0 +1,6 @@ +#!/bin/sh +exec 2>&1 +[ -r conf ] && . ./conf +export CONFIG=${CONFIG:-/etc/rustypaste/config.toml} +cd /var/lib/rustypaste +exec chpst -u _rustypaste:_rustypaste rustypaste diff --git a/srcpkgs/rustypaste/template b/srcpkgs/rustypaste/template new file mode 100644 index 00000000000000..fcd9c592b98703 --- /dev/null +++ b/srcpkgs/rustypaste/template @@ -0,0 +1,27 @@ +# Template file for 'rustypaste' +pkgname=rustypaste +version=0.8.4 +revision=1 +build_style=cargo +make_check_args="-- --test-threads 1" +short_desc="Minimal file upload/pastebin service" +maintainer="Lukas Jordan " +license="MIT" +homepage="https://github.com/orhun/rustypaste" +changelog="https://raw.githubusercontent.com/orhun/rustypaste-cli/master/CHANGELOG.md" +distfiles="https://github.com/orhun/rustypaste-cli/archive/refs/tags/v${version}.tar.gz" +checksum=ccdfa0ae412f25b3ea8e3756ff8d8c0ecfee1332b3bc2e584899914056ed2e2d +conf_files="/etc/rustypaste/config.toml" + +system_accounts="_rustypaste" +_rustypaste_homedir="/var/lib/rustypaste" +_rustypaste_descr="Minimal file upload/pastebin service" + +make_dirs="/var/lib/rustypaste 0750 _rustypaste _rustypaste" + +post_install() { + vinstall config.toml 644 etc/rustypaste + vlicense LICENSE + vdoc README.md + vsv rustypaste +}