Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New package: gotify-server-2.1.3
@ 2021-12-21 23:19 TinfoilSubmarine
  2021-12-21 23:21 ` [PR PATCH] [Updated] " TinfoilSubmarine
                   ` (14 more replies)
  0 siblings, 15 replies; 16+ messages in thread
From: TinfoilSubmarine @ 2021-12-21 23:19 UTC (permalink / raw)
  To: ml

[-- 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
+}

^ permalink raw reply	[flat|nested] 16+ messages in thread

end of thread, other threads:[~2022-05-09 20:13 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-12-21 23:19 [PR PATCH] New package: gotify-server-2.1.3 TinfoilSubmarine
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

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).