Github messages for voidlinux
 help / color / mirror / Atom feed
From: TinfoilSubmarine <TinfoilSubmarine@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New packages: gotify-cli-2.2.1, gotify-server-2.1.3, up_rewrite-1.1.1
Date: Mon, 09 May 2022 15:49:31 +0200	[thread overview]
Message-ID: <20220509134931.lq7SFxcntsfvDogFFbiLTclHFuTxDNgknIJB-U5-GeE@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-34653@inbox.vuxu.org>

[-- Attachment #1: Type: text/plain, Size: 1350 bytes --]

There is an updated 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 packages: gotify-cli-2.2.1, gotify-server-2.1.3, up_rewrite-1.1.1
<!-- 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: 5938 bytes --]

From ffb338a458739497de1af066be764e352d678607 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Tue, 21 Dec 2021 19:19:59 -0500
Subject: [PATCH 1/3] New package: gotify-cli-2.2.1

---
 srcpkgs/gotify-cli/template | 21 +++++++++++++++++++++
 1 file changed, 21 insertions(+)
 create mode 100644 srcpkgs/gotify-cli/template

diff --git a/srcpkgs/gotify-cli/template b/srcpkgs/gotify-cli/template
new file mode 100644
index 000000000000..50754553ec46
--- /dev/null
+++ b/srcpkgs/gotify-cli/template
@@ -0,0 +1,21 @@
+# Template file for 'gotify-cli'
+pkgname=gotify-cli
+version=2.2.1
+revision=1
+wrksrc="cli-$version"
+build_style=go
+go_import_path="github.com/gotify/cli/v2"
+go_ldflags="-w -s -X main.Version=${version} \
+ -X main.BuildDate=${SOURCE_DATE_EPOCH} \
+ -X main.Mode=prod"
+short_desc="Command line interface for pushing messages to a Gotify server"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="MIT"
+homepage="https://gotify.net"
+distfiles="https://github.com/gotify/cli/archive/v${version}.tar.gz"
+checksum=9013f4afdcc717932e71ab217e09daf4c48e153b23454f5e732ad0f74a8c8979
+
+post_install() {
+	mv ${DESTDIR}/usr/bin/cli ${DESTDIR}/usr/bin/gotify-cli
+	vlicense LICENSE
+}

From 56a6ec54222486b21ef442664fefe6aa3b4ebc5f Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Sun, 20 Feb 2022 18:37:39 -0500
Subject: [PATCH 2/3] New package: gotify-server-2.1.4

---
 .../gotify-server/files/gotify-server/log/run |  1 +
 srcpkgs/gotify-server/files/gotify-server/run |  3 ++
 srcpkgs/gotify-server/template                | 44 +++++++++++++++++++
 3 files changed, 48 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..9a0dad5ea6e9
--- /dev/null
+++ b/srcpkgs/gotify-server/template
@@ -0,0 +1,44 @@
+# Template file for 'gotify-server'
+pkgname=gotify-server
+version=2.1.4
+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=${SOURCE_DATE_EPOCH} \
+ -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=141e16147dadc34264c4ec9fb1e28df229148d87fa73deaad3ac5b2ecbb0dfb3
+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
+}

From d6b1c7691f579a49e95cd5c229e99b8145f7874a Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Sun, 20 Feb 2022 18:37:51 -0500
Subject: [PATCH 3/3] New package: up_rewrite-1.1.1

---
 srcpkgs/up_rewrite/files/up_rewrite/log/run |  1 +
 srcpkgs/up_rewrite/files/up_rewrite/run     |  3 +++
 srcpkgs/up_rewrite/template                 | 23 +++++++++++++++++++++
 3 files changed, 27 insertions(+)
 create mode 120000 srcpkgs/up_rewrite/files/up_rewrite/log/run
 create mode 100755 srcpkgs/up_rewrite/files/up_rewrite/run
 create mode 100644 srcpkgs/up_rewrite/template

diff --git a/srcpkgs/up_rewrite/files/up_rewrite/log/run b/srcpkgs/up_rewrite/files/up_rewrite/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/up_rewrite/files/up_rewrite/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/up_rewrite/files/up_rewrite/run b/srcpkgs/up_rewrite/files/up_rewrite/run
new file mode 100755
index 000000000000..6db9c1c3f962
--- /dev/null
+++ b/srcpkgs/up_rewrite/files/up_rewrite/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -u _up_rewrite:_up_rewrite up_rewrite -c /etc/up_rewrite/config.toml
diff --git a/srcpkgs/up_rewrite/template b/srcpkgs/up_rewrite/template
new file mode 100644
index 000000000000..33037f90984c
--- /dev/null
+++ b/srcpkgs/up_rewrite/template
@@ -0,0 +1,23 @@
+# Template file for 'up_rewrite'
+pkgname=up_rewrite
+version=1.1.1
+revision=1
+wrksrc="common-proxies-${version}"
+build_style=go
+go_import_path="github.com/karmanyaahm/up_rewrite"
+go_ldflags="-X $go_import_path/config.Version=$version"
+short_desc="Rewrite Proxy for UnifiedPush written in Go"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="MIT"
+homepage="https://unifiedpush.org"
+distfiles="https://github.com/UnifiedPush/common-proxies/archive/v${version}.tar.gz"
+checksum=178d99a053afeeb64bff7149415d14a5f9b809af4d2c081ec4fbfe33ae55428f
+conf_files="/etc/up_rewrite/config.toml"
+
+system_accounts="_up_rewrite"
+
+post_install() {
+	vinstall example-config.toml 644 etc/up_rewrite config.toml
+	vlicense LICENSE
+	vsv up_rewrite
+}

  parent reply	other threads:[~2022-05-09 13:49 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
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 ` TinfoilSubmarine [this message]
2022-05-09 15:36 ` [PR PATCH] [Updated] " 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=20220509134931.lq7SFxcntsfvDogFFbiLTclHFuTxDNgknIJB-U5-GeE@z \
    --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).