Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] New packages: gotify server and CLI
@ 2020-12-31 21:14 CameronNemo
  2021-01-03  9:45 ` WIP: " paper42
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: CameronNemo @ 2020-12-31 21:14 UTC (permalink / raw)
  To: ml

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

There is a new pull request by CameronNemo against master on the void-packages repository

https://github.com/CameronNemo/void-packages gotify
https://github.com/void-linux/void-packages/pull/27583

New packages: gotify server and CLI


A patch file from https://github.com/void-linux/void-packages/pull/27583.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gotify-27583.patch --]
[-- Type: text/x-diff, Size: 2506 bytes --]

From 8d965d8b36fa4212098df0fe5e0e964588bd6125 Mon Sep 17 00:00:00 2001
From: Cameron Nemo <cnemo@tutanota.com>
Date: Thu, 31 Dec 2020 18:17:09 +0000
Subject: [PATCH 1/2] New package: gotify-server-2.0.20

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

diff --git a/srcpkgs/gotify-server/template b/srcpkgs/gotify-server/template
new file mode 100644
index 00000000000..fab21374aa4
--- /dev/null
+++ b/srcpkgs/gotify-server/template
@@ -0,0 +1,22 @@
+# Template file for 'gotify-server'
+pkgname=gotify-server
+version=2.0.20
+revision=1
+wrksrc="server-$version"
+build_style=go
+go_import_path="github.com/gotify/server/v2"
+short_desc="Simple server for sending and receiving messages"
+maintainer="Cameron Nemo <cnemo@tutanota.com>"
+license="MIT"
+homepage="https://gotify.net"
+distfiles="https://github.com/gotify/server/archive/v${version}.tar.gz"
+checksum=18b656af071368a37493286a2fe6718ec9e50fcaa09ace651c4d72971cc70e89
+nocross="not without bfd"
+
+# Cross builds fail with -fuse-ld=gold
+# LDFLAGS="-fuse-ld=bfd"  # can enable with Go 1.15.6+
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/server" "${DESTDIR}/usr/bin/gotify-server"
+	vlicense LICENSE
+}

From 3106af060fcf20cc986ceada8eea532df8cb9204 Mon Sep 17 00:00:00 2001
From: Cameron Nemo <cnemo@tutanota.com>
Date: Thu, 31 Dec 2020 18:17:26 +0000
Subject: [PATCH 2/2] New package: gotify-cli-2.2.0

---
 srcpkgs/gotify-cli/template | 22 ++++++++++++++++++++++
 1 file changed, 22 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 00000000000..54dabd1ae39
--- /dev/null
+++ b/srcpkgs/gotify-cli/template
@@ -0,0 +1,22 @@
+# Template file for 'gotify-cli'
+pkgname=gotify-cli
+version=2.2.0
+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="Cameron Nemo <cnemo@tutanota.com>"
+license="MIT"
+homepage="https://gotify.net"
+distfiles="https://github.com/gotify/cli/archive/v${version}.tar.gz"
+checksum=d4e6fbc087c6cc4b320b3fcae4c28d65d514b7e55c95e4c0e764abb3a6c94064
+nocross="not without bfd"
+
+# Cross builds fail with -fuse-ld=gold
+# LDFLAGS="-fuse-ld=bfd"  # can enable with Go 1.15.6+
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/cli" "${DESTDIR}/usr/bin/gotify"
+	vlicense LICENSE
+}

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

* Re: WIP: New packages: gotify server and CLI
  2020-12-31 21:14 [PR PATCH] New packages: gotify server and CLI CameronNemo
@ 2021-01-03  9:45 ` paper42
  2021-01-03 16:37 ` CameronNemo
                   ` (7 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: paper42 @ 2021-01-03  9:45 UTC (permalink / raw)
  To: ml

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

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/27583#issuecomment-753591953

Comment:
Does the server Web UI work?

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

* Re: WIP: New packages: gotify server and CLI
  2020-12-31 21:14 [PR PATCH] New packages: gotify server and CLI CameronNemo
  2021-01-03  9:45 ` WIP: " paper42
@ 2021-01-03 16:37 ` CameronNemo
  2021-01-03 16:38 ` CameronNemo
                   ` (6 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: CameronNemo @ 2021-01-03 16:37 UTC (permalink / raw)
  To: ml

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

New comment by CameronNemo on void-packages repository

https://github.com/void-linux/void-packages/pull/27583#issuecomment-753643225

Comment:
the server does not even launch -- segfaults :(

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

* Re: WIP: New packages: gotify server and CLI
  2020-12-31 21:14 [PR PATCH] New packages: gotify server and CLI CameronNemo
  2021-01-03  9:45 ` WIP: " paper42
  2021-01-03 16:37 ` CameronNemo
@ 2021-01-03 16:38 ` CameronNemo
  2021-01-03 20:12 ` paper42
                   ` (5 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: CameronNemo @ 2021-01-03 16:38 UTC (permalink / raw)
  To: ml

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

New comment by CameronNemo on void-packages repository

https://github.com/void-linux/void-packages/pull/27583#issuecomment-753643225

Comment:
the server does not even launch -- segfaults :( I have resorted to the container.

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

* Re: WIP: New packages: gotify server and CLI
  2020-12-31 21:14 [PR PATCH] New packages: gotify server and CLI CameronNemo
                   ` (2 preceding siblings ...)
  2021-01-03 16:38 ` CameronNemo
@ 2021-01-03 20:12 ` paper42
  2021-01-03 21:13 ` [PR PATCH] [Updated] " CameronNemo
                   ` (4 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: paper42 @ 2021-01-03 20:12 UTC (permalink / raw)
  To: ml

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

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/27583#issuecomment-753669982

Comment:
I tried to package this a few months ago, but abandoned it after the UI didn't work, but I don't remember a segfault. Here is my template (not optimal, some lines are probably not neccessary):
```
# Template file for 'gotify-server'
pkgname=gotify-server
version=2.0.20
revision=1
wrksrc=server-${version}
build_style=go
go_ldflags="-X 'main.Version=${version}' -X 'main.Mode=prod'"
go_import_path="github.com/gotify/server"
hostmakedepends="yarn packr2"
short_desc="Simple server for sending and receiving messages in real-time"
maintainer="Paper <paper@tilde.institute>"
license="MIT"
homepage="https://gotify.net/"
distfiles="https://github.com/gotify/server/archive/v${version}.tar.gz"
checksum=18b656af071368a37493286a2fe6718ec9e50fcaa09ace651c4d72971cc70e89

system_accounts="_gotify"
make_dirs="/var/gotify/ 0755 _gotify _gotify"

do_check() {
	#make test-race test-coverage # test-js
	make test
}

post_extract() {
	vsed -i config.example.yml -e 's,data/,/var/gotify/,'
}

pre_build() {
	cd ui
	yarn install
	yarn build
	cd ${wrksrc}
	# embed assets to the binary
	packr2
}

post_install() {
	mv ${DESTDIR}/usr/bin/server ${DESTDIR}/usr/bin/gotify-server
	vlicense LICENSE
	vsconf config.example.yml
	vsv gotify
}
```
`files/gotify/run`:
```
#!/bin/sh
export GIN_MODE=release
exec chpst -u _gotify:_gotify gotify-server
```

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

* Re: [PR PATCH] [Updated] WIP: New packages: gotify server and CLI
  2020-12-31 21:14 [PR PATCH] New packages: gotify server and CLI CameronNemo
                   ` (3 preceding siblings ...)
  2021-01-03 20:12 ` paper42
@ 2021-01-03 21:13 ` CameronNemo
  2021-01-15  5:42 ` CameronNemo
                   ` (3 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: CameronNemo @ 2021-01-03 21:13 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by CameronNemo against master on the void-packages repository

https://github.com/CameronNemo/void-packages gotify
https://github.com/void-linux/void-packages/pull/27583

WIP: New packages: gotify server and CLI


A patch file from https://github.com/void-linux/void-packages/pull/27583.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gotify-27583.patch --]
[-- Type: text/x-diff, Size: 2871 bytes --]

From a687faa405a20301ff37f00deb4fb07f397573fb Mon Sep 17 00:00:00 2001
From: Cameron Nemo <cnemo@tutanota.com>
Date: Thu, 31 Dec 2020 18:17:09 +0000
Subject: [PATCH 1/2] New package: gotify-server-2.0.20

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

diff --git a/srcpkgs/gotify-server/template b/srcpkgs/gotify-server/template
new file mode 100644
index 00000000000..152545c2ec1
--- /dev/null
+++ b/srcpkgs/gotify-server/template
@@ -0,0 +1,40 @@
+# Template file for 'gotify-server'
+pkgname=gotify-server
+version=2.0.20
+revision=1
+wrksrc="server-$version"
+build_style=go
+go_ldflags="-X 'main.Version=${version}' -X 'main.Mode=prod'"
+go_import_path="github.com/gotify/server/v2"
+hostmakedepends="yarn packr2"
+short_desc="Simple server for sending and receiving messages"
+maintainer="Cameron Nemo <cnemo@tutanota.com>"
+license="MIT"
+homepage="https://gotify.net"
+distfiles="https://github.com/gotify/server/archive/v${version}.tar.gz"
+checksum=18b656af071368a37493286a2fe6718ec9e50fcaa09ace651c4d72971cc70e89
+nocross="not without bfd"
+
+# Cross builds fail with -fuse-ld=gold
+# LDFLAGS="-fuse-ld=bfd"  # can enable with Go 1.15.6+
+
+system_accounts="_gotify"
+make_dirs="/var/lib/gotify/ 0750 _gotify _gotify"
+
+pre_build() {
+	cd ui
+	yarn
+	yarn build
+	cd $wrksrc
+	packr2
+}
+
+post_build() {
+	vsed -i config.example.yml -e 's,data/,/var/lib/gotify/,'
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/server" "${DESTDIR}/usr/bin/gotify-server"
+	vlicense LICENSE
+	vsconf config.example.yml
+}

From 54e0320e52ce8803d9bd35250bf4b614df053700 Mon Sep 17 00:00:00 2001
From: Cameron Nemo <cnemo@tutanota.com>
Date: Thu, 31 Dec 2020 18:17:26 +0000
Subject: [PATCH 2/2] New package: gotify-cli-2.2.0

---
 srcpkgs/gotify-cli/template | 22 ++++++++++++++++++++++
 1 file changed, 22 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 00000000000..54dabd1ae39
--- /dev/null
+++ b/srcpkgs/gotify-cli/template
@@ -0,0 +1,22 @@
+# Template file for 'gotify-cli'
+pkgname=gotify-cli
+version=2.2.0
+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="Cameron Nemo <cnemo@tutanota.com>"
+license="MIT"
+homepage="https://gotify.net"
+distfiles="https://github.com/gotify/cli/archive/v${version}.tar.gz"
+checksum=d4e6fbc087c6cc4b320b3fcae4c28d65d514b7e55c95e4c0e764abb3a6c94064
+nocross="not without bfd"
+
+# Cross builds fail with -fuse-ld=gold
+# LDFLAGS="-fuse-ld=bfd"  # can enable with Go 1.15.6+
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/cli" "${DESTDIR}/usr/bin/gotify"
+	vlicense LICENSE
+}

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

* Re: WIP: New packages: gotify server and CLI
  2020-12-31 21:14 [PR PATCH] New packages: gotify server and CLI CameronNemo
                   ` (4 preceding siblings ...)
  2021-01-03 21:13 ` [PR PATCH] [Updated] " CameronNemo
@ 2021-01-15  5:42 ` CameronNemo
  2021-01-15  5:43 ` [PR PATCH] [Updated] " CameronNemo
                   ` (2 subsequent siblings)
  8 siblings, 0 replies; 10+ messages in thread
From: CameronNemo @ 2021-01-15  5:42 UTC (permalink / raw)
  To: ml

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

New comment by CameronNemo on void-packages repository

https://github.com/void-linux/void-packages/pull/27583#issuecomment-760660000

Comment:
@paper42 would you be interested in maintaining the package? It works on x86_64, but I could not get it to work on aarch64-musl which is where I want to use it.

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

* Re: [PR PATCH] [Updated] WIP: New packages: gotify server and CLI
  2020-12-31 21:14 [PR PATCH] New packages: gotify server and CLI CameronNemo
                   ` (5 preceding siblings ...)
  2021-01-15  5:42 ` CameronNemo
@ 2021-01-15  5:43 ` CameronNemo
  2021-01-16 23:28 ` paper42
  2021-01-17  1:26 ` [PR PATCH] [Closed]: " CameronNemo
  8 siblings, 0 replies; 10+ messages in thread
From: CameronNemo @ 2021-01-15  5:43 UTC (permalink / raw)
  To: ml

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

There is an updated pull request by CameronNemo against master on the void-packages repository

https://github.com/CameronNemo/void-packages gotify
https://github.com/void-linux/void-packages/pull/27583

WIP: New packages: gotify server and CLI


A patch file from https://github.com/void-linux/void-packages/pull/27583.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-gotify-27583.patch --]
[-- Type: text/x-diff, Size: 3101 bytes --]

From 9d5b410dd37037d74ed9ee9a97cd2c33343d1db1 Mon Sep 17 00:00:00 2001
From: Cameron Nemo <cnemo@tutanota.com>
Date: Thu, 31 Dec 2020 18:17:09 +0000
Subject: [PATCH 1/2] New package: gotify-server-2.0.20

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

diff --git a/srcpkgs/gotify-server/template b/srcpkgs/gotify-server/template
new file mode 100644
index 00000000000..8038ec5b9ac
--- /dev/null
+++ b/srcpkgs/gotify-server/template
@@ -0,0 +1,48 @@
+# Template file for 'gotify-server'
+pkgname=gotify-server
+version=2.0.20
+revision=1
+# no success on aarch64, untested elsewhere
+# aarch64 issue: https://github.com/gotify/server/issues/377
+archs="x86_64"
+wrksrc="server-$version"
+build_style=go
+go_ldflags="-X 'main.Version=${version}' -X 'main.Mode=prod'"
+go_import_path="github.com/gotify/server/v2"
+hostmakedepends="yarn packr2"
+short_desc="Simple server for sending and receiving messages"
+maintainer="Cameron Nemo <cnemo@tutanota.com>"
+license="MIT"
+homepage="https://gotify.net"
+distfiles="https://github.com/gotify/server/archive/v${version}.tar.gz"
+checksum=18b656af071368a37493286a2fe6718ec9e50fcaa09ace651c4d72971cc70e89
+nocross="not without bfd"
+
+# Cross builds fail with -fuse-ld=gold
+# Can enable following with Go 1.15.6+ to support cross builds
+# LDFLAGS="-fuse-ld=bfd"  # can enable with Go 1.15.6+
+
+system_accounts="_gotify"
+make_dirs="/var/lib/gotify/ 0750 _gotify _gotify"
+
+pre_build() {
+	# remove puppeteer tests, they do not work on aarch64*
+	# https://github.com/gotify/server/issues/377
+	rm -r ui/src/tests
+	vsed -i ui/package.json -e '/puppeteer/d'
+	cd ui
+	yarn
+	yarn build
+	cd "$wrksrc"
+	packr2
+}
+
+post_build() {
+	vsed -i config.example.yml -e 's,data/,/var/lib/gotify/,'
+}
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/server" "${DESTDIR}/usr/bin/gotify-server"
+	vlicense LICENSE
+	vsconf config.example.yml
+}

From a263954088f59fc68379385ffa5094ba7dc2fec3 Mon Sep 17 00:00:00 2001
From: Cameron Nemo <cnemo@tutanota.com>
Date: Thu, 31 Dec 2020 18:17:26 +0000
Subject: [PATCH 2/2] New package: gotify-cli-2.2.0

---
 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 00000000000..c193edd9bbf
--- /dev/null
+++ b/srcpkgs/gotify-cli/template
@@ -0,0 +1,18 @@
+# Template file for 'gotify-cli'
+pkgname=gotify-cli
+version=2.2.0
+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="Cameron Nemo <cnemo@tutanota.com>"
+license="MIT"
+homepage="https://gotify.net"
+distfiles="https://github.com/gotify/cli/archive/v${version}.tar.gz"
+checksum=d4e6fbc087c6cc4b320b3fcae4c28d65d514b7e55c95e4c0e764abb3a6c94064
+
+post_install() {
+	mv "${DESTDIR}/usr/bin/cli" "${DESTDIR}/usr/bin/gotify"
+	vlicense LICENSE
+}

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

* Re: WIP: New packages: gotify server and CLI
  2020-12-31 21:14 [PR PATCH] New packages: gotify server and CLI CameronNemo
                   ` (6 preceding siblings ...)
  2021-01-15  5:43 ` [PR PATCH] [Updated] " CameronNemo
@ 2021-01-16 23:28 ` paper42
  2021-01-17  1:26 ` [PR PATCH] [Closed]: " CameronNemo
  8 siblings, 0 replies; 10+ messages in thread
From: paper42 @ 2021-01-16 23:28 UTC (permalink / raw)
  To: ml

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

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/27583#issuecomment-761697072

Comment:
That's weird, I am running it on my rpi3B (aarch64-musl). I am not interested in maintaining the package because the code is quite horrible and huge for what it does. I started writing my own small alternative server which implements gotify's API, I may finish it one day.


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

* Re: [PR PATCH] [Closed]: WIP: New packages: gotify server and CLI
  2020-12-31 21:14 [PR PATCH] New packages: gotify server and CLI CameronNemo
                   ` (7 preceding siblings ...)
  2021-01-16 23:28 ` paper42
@ 2021-01-17  1:26 ` CameronNemo
  8 siblings, 0 replies; 10+ messages in thread
From: CameronNemo @ 2021-01-17  1:26 UTC (permalink / raw)
  To: ml

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

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

WIP: New packages: gotify server and CLI
https://github.com/void-linux/void-packages/pull/27583

Description:


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

end of thread, other threads:[~2021-01-17  1:26 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-31 21:14 [PR PATCH] New packages: gotify server and CLI CameronNemo
2021-01-03  9:45 ` WIP: " paper42
2021-01-03 16:37 ` CameronNemo
2021-01-03 16:38 ` CameronNemo
2021-01-03 20:12 ` paper42
2021-01-03 21:13 ` [PR PATCH] [Updated] " CameronNemo
2021-01-15  5:42 ` CameronNemo
2021-01-15  5:43 ` [PR PATCH] [Updated] " CameronNemo
2021-01-16 23:28 ` paper42
2021-01-17  1:26 ` [PR PATCH] [Closed]: " CameronNemo

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