From a2aee802fe784e010fd9109a1aa0dd37153c0be7 Mon Sep 17 00:00:00 2001 From: Lukas Jordan Date: Thu, 30 Mar 2023 18:46:15 +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..38c82257ba69 --- /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://github.com/orhun/rustypaste-cli/blob/master/CHANGELOG.md" +distfiles="https://github.com/orhun/rustypaste-cli/archive/v${version}.tar.gz" +checksum=691fd3ddcf2c7c9c17728a304bd4299a35812940902b8b31059902abb49b037e + +post_install() { + vlicense LICENSE + vdoc README.md + vman man/rpaste.1 + vsconf config.toml +} From 335be3d9b1d0523106cd2cae84f0c66e2ea6540a Mon Sep 17 00:00:00 2001 From: Lukas Jordan Date: Fri, 31 Mar 2023 13:47:16 +0200 Subject: [PATCH 2/2] New package: rustypaste-0.8.4 --- srcpkgs/rustypaste/files/rustypaste/run | 9 +++++++++ srcpkgs/rustypaste/template | 27 +++++++++++++++++++++++++ 2 files changed, 36 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..4672706854f4 --- /dev/null +++ b/srcpkgs/rustypaste/files/rustypaste/run @@ -0,0 +1,9 @@ +#!/bin/sh +exec 2>&1 +set -e + +export CONFIG=/etc/rustypaste/config.toml +[ -r conf ] && . ./conf + +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..f62f9d1e849e --- /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 +short_desc="Minimal file upload/pastebin service" +make_check_args="-- --test-threads 1" +maintainer="Lukas Jordan " +license="MIT" +homepage="https://github.com/orhun/rustypaste" +changelog="https://github.com/orhun/rustypaste/blob/master/CHANGELOG.md" +distfiles="https://github.com/orhun/rustypaste/archive/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 +}