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

* Re: [PR PATCH] [Updated] New package: gotify-server-2.1.3
  2021-12-21 23:19 [PR PATCH] New package: gotify-server-2.1.3 TinfoilSubmarine
@ 2021-12-21 23:21 ` TinfoilSubmarine
  2021-12-23 22:24 ` TinfoilSubmarine
                   ` (13 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: TinfoilSubmarine @ 2021-12-21 23:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1313 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 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 ae4a81ef782ac0c7ea1511226501a6711771c5c5 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..4b41aada13c3
--- /dev/null
+++ b/srcpkgs/gotify-server/template
@@ -0,0 +1,46 @@
+# Template file for 'gotify-server'
+pkgname=gotify-server
+version=2.1.3
+revision=1
+_git_commit=89fdb0b9a56690b7d1111783aa4fa73d61831e74
+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

* Re: [PR PATCH] [Updated] New package: gotify-server-2.1.3
  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
                   ` (12 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: TinfoilSubmarine @ 2021-12-23 22:24 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1313 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 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: 5850 bytes --]

From 5d140d7e34c81a2adda1e38c5787cec7217be8a5 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 | 18 ++++++++++++++++++
 1 file changed, 18 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..795728311d6b
--- /dev/null
+++ b/srcpkgs/gotify-cli/template
@@ -0,0 +1,18 @@
+# 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"
+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 1ead2ddebebeb067a3853fb14eaa214b1472acf0 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Tue, 21 Dec 2021 13:27:46 -0500
Subject: [PATCH 2/3] 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..4b41aada13c3
--- /dev/null
+++ b/srcpkgs/gotify-server/template
@@ -0,0 +1,46 @@
+# Template file for 'gotify-server'
+pkgname=gotify-server
+version=2.1.3
+revision=1
+_git_commit=89fdb0b9a56690b7d1111783aa4fa73d61831e74
+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
+}

From a49b70998a70e64261fa67169fd218679f5895b8 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Tue, 21 Dec 2021 23:37:07 -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                 | 22 +++++++++++++++++++++
 3 files changed, 26 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..8629d239b505
--- /dev/null
+++ b/srcpkgs/up_rewrite/template
@@ -0,0 +1,22 @@
+# 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"
+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
+}

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

* Re: New package: gotify-server-2.1.3
  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
                   ` (11 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: TinfoilSubmarine @ 2021-12-23 22:29 UTC (permalink / raw)
  To: ml

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

New comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/pull/34653#issuecomment-1000548477

Comment:
I added the `gotify-cli` package as well from the referenced PR, as well as `up_rewrite` from the UnifiedPush project which is needed to get UnifiedPush working on top of `gotify-server`.

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

* Re: [PR REVIEW] New packages: gotify-cli-2.2.1, gotify-server-2.1.3, up_rewrite-1.1.1
  2021-12-21 23:19 [PR PATCH] New package: gotify-server-2.1.3 TinfoilSubmarine
                   ` (5 preceding siblings ...)
  2022-02-20 21:29 ` paper42
@ 2022-02-20 21:29 ` paper42
  2022-02-20 23:53 ` [PR PATCH] [Updated] " TinfoilSubmarine
                   ` (7 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: paper42 @ 2022-02-20 21:29 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/34653#discussion_r810686276

Comment:
We should probably respect SOURCE_DATE_EPOCH for reproducibility.

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

* Re: [PR REVIEW] New packages: gotify-cli-2.2.1, gotify-server-2.1.3, up_rewrite-1.1.1
  2021-12-21 23:19 [PR PATCH] New package: gotify-server-2.1.3 TinfoilSubmarine
                   ` (4 preceding siblings ...)
  2022-02-20 21:29 ` paper42
@ 2022-02-20 21:29 ` paper42
  2022-02-20 21:29 ` paper42
                   ` (8 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: paper42 @ 2022-02-20 21:29 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/34653#discussion_r810686429

Comment:
If this isn't required, I would leave it out, this just complicates updates and I think it's not useful.

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

* Re: [PR REVIEW] New packages: gotify-cli-2.2.1, gotify-server-2.1.3, up_rewrite-1.1.1
  2021-12-21 23:19 [PR PATCH] New package: gotify-server-2.1.3 TinfoilSubmarine
                   ` (3 preceding siblings ...)
  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
                   ` (9 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: paper42 @ 2022-02-20 21:29 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/34653#discussion_r810687053

Comment:
We should add `-X $go_import_path/config.Version=$version` to go ldflags

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

* Re: [PR REVIEW] New packages: gotify-cli-2.2.1, gotify-server-2.1.3, up_rewrite-1.1.1
  2021-12-21 23:19 [PR PATCH] New package: gotify-server-2.1.3 TinfoilSubmarine
                   ` (2 preceding siblings ...)
  2021-12-23 22:29 ` TinfoilSubmarine
@ 2022-02-20 21:29 ` paper42
  2022-02-20 21:29 ` paper42
                   ` (10 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: paper42 @ 2022-02-20 21:29 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/34653#discussion_r810686040

Comment:
2.1.4 is out

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

* Re: [PR PATCH] [Updated] New packages: gotify-cli-2.2.1, gotify-server-2.1.3, up_rewrite-1.1.1
  2021-12-21 23:19 [PR PATCH] New package: gotify-server-2.1.3 TinfoilSubmarine
                   ` (6 preceding siblings ...)
  2022-02-20 21:29 ` paper42
@ 2022-02-20 23:53 ` TinfoilSubmarine
  2022-05-07 21:16 ` [PR REVIEW] " paper42
                   ` (6 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: TinfoilSubmarine @ 2022-02-20 23:53 UTC (permalink / raw)
  To: ml

[-- 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: 5823 bytes --]

From 411d6fa95412689b9247e3edf590bd34741ce297 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 | 18 ++++++++++++++++++
 1 file changed, 18 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..795728311d6b
--- /dev/null
+++ b/srcpkgs/gotify-cli/template
@@ -0,0 +1,18 @@
+# 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"
+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 35d164d3e07905ce1ff7937957f896de2e67f647 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 c1b5ab521b33eafe3f092919f5428dfddd8d140b 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
+}

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

* Re: [PR REVIEW] New packages: gotify-cli-2.2.1, gotify-server-2.1.3, up_rewrite-1.1.1
  2021-12-21 23:19 [PR PATCH] New package: gotify-server-2.1.3 TinfoilSubmarine
                   ` (7 preceding siblings ...)
  2022-02-20 23:53 ` [PR PATCH] [Updated] " TinfoilSubmarine
@ 2022-05-07 21:16 ` paper42
  2022-05-09 13:48 ` TinfoilSubmarine
                   ` (5 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: paper42 @ 2022-05-07 21:16 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/34653#discussion_r867395869

Comment:
go_ldflags are missing:
```
%: gotify-cli version
Version:   unknown
Commit:    unknown
BuildDate: unknown
```

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

* Re: [PR REVIEW] New packages: gotify-cli-2.2.1, gotify-server-2.1.3, up_rewrite-1.1.1
  2021-12-21 23:19 [PR PATCH] New package: gotify-server-2.1.3 TinfoilSubmarine
                   ` (8 preceding siblings ...)
  2022-05-07 21:16 ` [PR REVIEW] " paper42
@ 2022-05-09 13:48 ` TinfoilSubmarine
  2022-05-09 13:49 ` [PR PATCH] [Updated] " TinfoilSubmarine
                   ` (4 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: TinfoilSubmarine @ 2022-05-09 13:48 UTC (permalink / raw)
  To: ml

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

New review comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/pull/34653#discussion_r868035410

Comment:
> go_ldflags are missing:
> 
> ```
> %: gotify-cli version
> Version:   unknown
> ->Commit:    unknown
> BuildDate: unknown
> ```

Do we need that Commit line? It would have to be manually fetched and updated in the template on each update.



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

* Re: [PR PATCH] [Updated] New packages: gotify-cli-2.2.1, gotify-server-2.1.3, up_rewrite-1.1.1
  2021-12-21 23:19 [PR PATCH] New package: gotify-server-2.1.3 TinfoilSubmarine
                   ` (9 preceding siblings ...)
  2022-05-09 13:48 ` TinfoilSubmarine
@ 2022-05-09 13:49 ` TinfoilSubmarine
  2022-05-09 15:36 ` TinfoilSubmarine
                   ` (3 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: TinfoilSubmarine @ 2022-05-09 13:49 UTC (permalink / raw)
  To: ml

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

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

* Re: [PR PATCH] [Updated] New packages: gotify-cli-2.2.1, gotify-server-2.1.3, up_rewrite-1.1.1
  2021-12-21 23:19 [PR PATCH] New package: gotify-server-2.1.3 TinfoilSubmarine
                   ` (10 preceding siblings ...)
  2022-05-09 13:49 ` [PR PATCH] [Updated] " TinfoilSubmarine
@ 2022-05-09 15:36 ` TinfoilSubmarine
  2022-05-09 15:57 ` [PR REVIEW] " paper42
                   ` (2 subsequent siblings)
  14 siblings, 0 replies; 16+ messages in thread
From: TinfoilSubmarine @ 2022-05-09 15:36 UTC (permalink / raw)
  To: ml

[-- 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 bc1cddedf385864e2365a633e10784d343cf7f13 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 35c5aada5613f124e9adcccb25fa177042fd9676 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 4b044a54114c6cfdc846539e9c17be59739eeba3 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
+}

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

* Re: [PR REVIEW] New packages: gotify-cli-2.2.1, gotify-server-2.1.3, up_rewrite-1.1.1
  2021-12-21 23:19 [PR PATCH] New package: gotify-server-2.1.3 TinfoilSubmarine
                   ` (11 preceding siblings ...)
  2022-05-09 15:36 ` TinfoilSubmarine
@ 2022-05-09 15:57 ` paper42
  2022-05-09 16:48 ` TinfoilSubmarine
  2022-05-09 20:13 ` [PR PATCH] [Merged]: " paper42
  14 siblings, 0 replies; 16+ messages in thread
From: paper42 @ 2022-05-09 15:57 UTC (permalink / raw)
  To: ml

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

New review comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/34653#discussion_r868172120

Comment:
just Version

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

* Re: [PR REVIEW] New packages: gotify-cli-2.2.1, gotify-server-2.1.3, up_rewrite-1.1.1
  2021-12-21 23:19 [PR PATCH] New package: gotify-server-2.1.3 TinfoilSubmarine
                   ` (12 preceding siblings ...)
  2022-05-09 15:57 ` [PR REVIEW] " paper42
@ 2022-05-09 16:48 ` TinfoilSubmarine
  2022-05-09 20:13 ` [PR PATCH] [Merged]: " paper42
  14 siblings, 0 replies; 16+ messages in thread
From: TinfoilSubmarine @ 2022-05-09 16:48 UTC (permalink / raw)
  To: ml

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

New review comment by TinfoilSubmarine on void-packages repository

https://github.com/void-linux/void-packages/pull/34653#discussion_r868215634

Comment:
Is how it is now fine? I also included `main.BuildDate`, but can remove it. The only other go template I saw including that was gocryptfs.

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

* Re: [PR PATCH] [Merged]: New packages: gotify-cli-2.2.1, gotify-server-2.1.3, up_rewrite-1.1.1
  2021-12-21 23:19 [PR PATCH] New package: gotify-server-2.1.3 TinfoilSubmarine
                   ` (13 preceding siblings ...)
  2022-05-09 16:48 ` TinfoilSubmarine
@ 2022-05-09 20:13 ` paper42
  14 siblings, 0 replies; 16+ messages in thread
From: paper42 @ 2022-05-09 20:13 UTC (permalink / raw)
  To: ml

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

There's a merged pull request on the void-packages repository

New packages: gotify-cli-2.2.1, gotify-server-2.1.3, up_rewrite-1.1.1
https://github.com/void-linux/void-packages/pull/34653

Description:
<!-- 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

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