From: TinfoilSubmarine <TinfoilSubmarine@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: [PR PATCH] New package: gotify-server-2.1.3
Date: Wed, 22 Dec 2021 00:19:51 +0100 [thread overview]
Message-ID: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34653@inbox.vuxu.org> (raw)
[-- Attachment #1: Type: text/plain, Size: 1308 bytes --]
There is a new pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages gotify
https://github.com/void-linux/void-packages/pull/34653
New package: gotify-server-2.1.3
<!-- Uncomment relevant sections and delete options which are not applicable -->
#### Testing the changes
- I tested the changes in this PR: **YES**
#### New package
- This new package conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements): **YES**
<!-- Note: If the build is likely to take more than 2 hours, please [skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration)
and test at least one native build and, if supported, at least one cross build.
Ignore this section if this PR is not skipping CI.
-->
<!--
#### Local build testing
- I built this PR locally for my native architecture, (ARCH-LIBC)
- I built this PR locally for these architectures (if supported. mark crossbuilds):
- aarch64-musl
- armv7l
- armv6l-musl
-->
Copied and modified template from https://github.com/void-linux/void-packages/pull/27583
A patch file from https://github.com/void-linux/void-packages/pull/34653.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gotify-34653.patch --]
[-- Type: text/x-diff, Size: 2641 bytes --]
From 5e055fa2d66dcefdff5f8a1c1a0f3e1574e9cf67 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Tue, 21 Dec 2021 13:27:46 -0500
Subject: [PATCH] New package: gotify-server-2.1.3
---
.../gotify-server/files/gotify-server/log/run | 1 +
srcpkgs/gotify-server/files/gotify-server/run | 3 ++
srcpkgs/gotify-server/template | 46 +++++++++++++++++++
3 files changed, 50 insertions(+)
create mode 120000 srcpkgs/gotify-server/files/gotify-server/log/run
create mode 100755 srcpkgs/gotify-server/files/gotify-server/run
create mode 100644 srcpkgs/gotify-server/template
diff --git a/srcpkgs/gotify-server/files/gotify-server/log/run b/srcpkgs/gotify-server/files/gotify-server/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/gotify-server/files/gotify-server/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/gotify-server/files/gotify-server/run b/srcpkgs/gotify-server/files/gotify-server/run
new file mode 100755
index 000000000000..6d4d3243be2f
--- /dev/null
+++ b/srcpkgs/gotify-server/files/gotify-server/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -u _gotify:_gotify gotify-server
diff --git a/srcpkgs/gotify-server/template b/srcpkgs/gotify-server/template
new file mode 100644
index 000000000000..cad901c1a87b
--- /dev/null
+++ b/srcpkgs/gotify-server/template
@@ -0,0 +1,46 @@
+# Template file for 'gotify-server'
+pkgname=gotify-server
+version=2.1.3
+_git_commit=89fdb0b9a56690b7d1111783aa4fa73d61831e74
+revision=1
+wrksrc="server-$version"
+build_style=go
+go_import_path="github.com/gotify/server/v2"
+go_ldflags="-w -s -extldflags=-fuse-ld=bfd \
+ -X main.Version=${version} \
+ -X main.BuildDate=$(date "+%F-%T") \
+ -X main.Commit=${_git_commit} \
+ -X main.Mode=prod"
+hostmakedepends="yarn packr2"
+short_desc="Simple server for sending and receiving messages"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="MIT"
+homepage="https://gotify.net"
+distfiles="https://github.com/gotify/server/archive/v${version}.tar.gz"
+checksum=78b70386705263aed6f609d17d47a58c52aada5284b281e52eb899cd75f2cffe
+conf_files="/etc/gotify/config.yml"
+
+system_accounts="_gotify"
+_gotify_homedir="/var/lib/gotify"
+make_dirs="/var/lib/gotify 0750 _gotify _gotify"
+
+post_patch() {
+ vsed 's,data/,/var/lib/gotify/,' -i config.example.yml
+}
+
+pre_build() {
+ cd ui
+ yarn
+ yarn build
+
+ cd "$wrksrc"
+ packr2
+}
+
+post_install() {
+ mv ${DESTDIR}/usr/bin/server ${DESTDIR}/usr/bin/gotify-server
+ vlicense LICENSE
+ vinstall config.example.yml 644 etc/gotify config.yml
+
+ vsv gotify-server
+}
next reply other threads:[~2021-12-21 23:19 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-12-21 23:19 TinfoilSubmarine [this message]
2021-12-21 23:21 ` [PR PATCH] [Updated] " TinfoilSubmarine
2021-12-23 22:24 ` TinfoilSubmarine
2021-12-23 22:29 ` TinfoilSubmarine
2022-02-20 21:29 ` [PR REVIEW] New packages: gotify-cli-2.2.1, gotify-server-2.1.3, up_rewrite-1.1.1 paper42
2022-02-20 21:29 ` paper42
2022-02-20 21:29 ` paper42
2022-02-20 21:29 ` paper42
2022-02-20 23:53 ` [PR PATCH] [Updated] " TinfoilSubmarine
2022-05-07 21:16 ` [PR REVIEW] " paper42
2022-05-09 13:48 ` TinfoilSubmarine
2022-05-09 13:49 ` [PR PATCH] [Updated] " TinfoilSubmarine
2022-05-09 15:36 ` TinfoilSubmarine
2022-05-09 15:57 ` [PR REVIEW] " paper42
2022-05-09 16:48 ` TinfoilSubmarine
2022-05-09 20:13 ` [PR PATCH] [Merged]: " paper42
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34653@inbox.vuxu.org \
--to=tinfoilsubmarine@users.noreply.github.com \
--cc=ml@inbox.vuxu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).