From 8c6ec731ff339bf28a57dea204fde912758d23da Mon Sep 17 00:00:00 2001 From: Lukas Jordan Date: Fri, 31 Mar 2023 15:02:32 +0200 Subject: [PATCH 1/2] New package: rustypaste-cli-0.3.0 --- srcpkgs/rustypaste-cli/template | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 srcpkgs/rustypaste-cli/template diff --git a/srcpkgs/rustypaste-cli/template b/srcpkgs/rustypaste-cli/template new file mode 100644 index 000000000000..aa3d7fcd26d3 --- /dev/null +++ b/srcpkgs/rustypaste-cli/template @@ -0,0 +1,19 @@ +# Template file for 'rustypaste-cli' +pkgname=rustypaste-cli +version=0.3.0 +revision=1 +build_style=cargo +short_desc="CLI tool for rustypaste" +maintainer="Lukas Jordan " +license="MIT" +homepage="https://github.com/orhun/rustypaste-cli" +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=691fd3ddcf2c7c9c17728a304bd4299a35812940902b8b31059902abb49b037e + +post_install() { + vlicense LICENSE + vdoc README.md + vman man/rpaste.1 + vsconf config.toml +} From 0449313910ece33b7dc618a99add2010469dbbe2 Mon Sep 17 00:00:00 2001 From: Lukas Jordan Date: Fri, 31 Mar 2023 15:02:35 +0200 Subject: [PATCH 2/2] 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 000000000000..4717b77c6210 --- /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 000000000000..7804c4a9ed80 --- /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/master/CHANGELOG.md" +distfiles="https://github.com/orhun/rustypaste/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 +}