From a99f74c6148b44c238cc8333542d6d0b237356e7 Mon Sep 17 00:00:00 2001 From: Petr Cizmar Date: Tue, 10 Jan 2023 14:30:16 +0100 Subject: [PATCH] New package: nostr-rs-relay --- .../nostr-rs-relay/files/nostr-rs-relay/run | 5 ++++ srcpkgs/nostr-rs-relay/template | 23 +++++++++++++++++++ 2 files changed, 28 insertions(+) create mode 100644 srcpkgs/nostr-rs-relay/files/nostr-rs-relay/run create mode 100644 srcpkgs/nostr-rs-relay/template diff --git a/srcpkgs/nostr-rs-relay/files/nostr-rs-relay/run b/srcpkgs/nostr-rs-relay/files/nostr-rs-relay/run new file mode 100644 index 0000000000000..90f9f53ca8ef5 --- /dev/null +++ b/srcpkgs/nostr-rs-relay/files/nostr-rs-relay/run @@ -0,0 +1,5 @@ +#!/bin/sh +exec 2>&1 +exec \ + chpst -u _nostrrsrelay:_nostrrsrelay \ + nostr-rs-relay -c /etc/nostr-rs-relay.toml -d /var/db/nostr-rs-relay/ 2>&1 diff --git a/srcpkgs/nostr-rs-relay/template b/srcpkgs/nostr-rs-relay/template new file mode 100644 index 0000000000000..e7f020d3d6bb4 --- /dev/null +++ b/srcpkgs/nostr-rs-relay/template @@ -0,0 +1,23 @@ +# Template file for 'nostr-rs-relay' +pkgname=nostr-rs-relay +version=0.8.12 +revision=1 +build_style=cargo +hostmakedepends="pkg-config protobuf" +makedepends="openssl-devel" +short_desc="Nostr relay" +maintainer="Petr Cizmar " +license="MIT" +homepage="https://git.sr.ht/~gheartsfield/nostr-rs-relay" +changelog="https://git.sr.ht/~gheartsfield/nostr-rs-relay/refs" +distfiles="https://git.sr.ht/~gheartsfield/nostr-rs-relay/archive/${version}.tar.gz" +checksum=1f174a7fa341117b75eac999dc445e60d192ec54b050c371ca34cb7ad0638b80 +system_accounts="_nostrrsrelay" +system_groups="_nostrrsrelay" +make_dirs="/var/db/nostr-rs-relay/ 0750 _nostrrsrelay _nostrrsrelay" + +post_install() { + vlicense "LICENSE" + vconf config.toml nostr-rs-relay.toml + vsv nostr-rs-relay +}