* [PR PATCH] [WIP] New package: ntfy-1.30.1
@ 2023-01-03 17:43 TinfoilSubmarine
2023-01-03 20:13 ` biopsin
` (15 more replies)
0 siblings, 16 replies; 17+ messages in thread
From: TinfoilSubmarine @ 2023-01-03 17:43 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1510 bytes --]
There is a new pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/ntfy
https://github.com/void-linux/void-packages/pull/41427
[WIP] New package: ntfy-1.30.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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
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
-->
Closes https://github.com/void-linux/void-packages/issues/41422
I am using this exclusively for the server functionality as I am using the ntfy android app as the client. @biopsin did you require any additional services for the client side?
A patch file from https://github.com/void-linux/void-packages/pull/41427.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/ntfy-41427.patch --]
[-- Type: text/x-diff, Size: 1985 bytes --]
From e4cd0af86b3afebd8d26cc61e3c3b49d24bc963a Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Sat, 31 Dec 2022 16:15:19 -0500
Subject: [PATCH] New package: ntfy-1.30.1
---
srcpkgs/ntfy/files/ntfy-server/log/run | 1 +
srcpkgs/ntfy/files/ntfy-server/run | 3 +++
srcpkgs/ntfy/template | 24 ++++++++++++++++++++++++
3 files changed, 28 insertions(+)
create mode 120000 srcpkgs/ntfy/files/ntfy-server/log/run
create mode 100644 srcpkgs/ntfy/files/ntfy-server/run
create mode 100644 srcpkgs/ntfy/template
diff --git a/srcpkgs/ntfy/files/ntfy-server/log/run b/srcpkgs/ntfy/files/ntfy-server/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/ntfy/files/ntfy-server/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/ntfy/files/ntfy-server/run b/srcpkgs/ntfy/files/ntfy-server/run
new file mode 100644
index 000000000000..26e9f7928163
--- /dev/null
+++ b/srcpkgs/ntfy/files/ntfy-server/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -u _ntfy:_ntfy ntfy serve
diff --git a/srcpkgs/ntfy/template b/srcpkgs/ntfy/template
new file mode 100644
index 000000000000..71c7819eb981
--- /dev/null
+++ b/srcpkgs/ntfy/template
@@ -0,0 +1,24 @@
+# Template file for 'ntfy'
+pkgname=ntfy
+version=1.30.1
+revision=1
+build_style=go
+go_import_path="heckel.io/ntfy"
+short_desc="Send push notifications to your phone or desktop using PUT/POST"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="Apache-2.0,GPL-2.0-only"
+homepage="https://ntfy.sh"
+distfiles="https://github.com/binwiederhier/ntfy/archive/refs/tags/v${version}.tar.gz"
+checksum=f64160ef27c334b673e65e2bd02bf9307b930f7018130520a1b0a551d06c474c
+system_accounts="_ntfy"
+conf_files="/etc/ntfy/server.yml"
+
+pre_build() {
+ mkdir -p server/docs server/site
+ touch server/docs/index.html server/site/app.html
+}
+
+post_install() {
+ vsv ntfy-server
+ vinstall server/server.yml 644 etc/ntfy
+}
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [WIP] New package: ntfy-1.30.1
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
@ 2023-01-03 20:13 ` biopsin
2023-01-03 21:45 ` TinfoilSubmarine
` (14 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: biopsin @ 2023-01-03 20:13 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 387 bytes --]
New comment by biopsin on void-packages repository
https://github.com/void-linux/void-packages/pull/41427#issuecomment-1370183118
Comment:
@TinfoilSubmarine
Whosh that was fast, thougth I would tinker with this upcomming weekend.
Honestly I just discovered it and have not had the time to investigate all aspects, so Im unaware off any services I might require for the moment. Tnx.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [WIP] New package: ntfy-1.30.1
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
2023-01-03 20:13 ` biopsin
@ 2023-01-03 21:45 ` TinfoilSubmarine
2023-01-04 20:06 ` [PR PATCH] [Updated] " TinfoilSubmarine
` (13 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: TinfoilSubmarine @ 2023-01-03 21:45 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 460 bytes --]
New comment by TinfoilSubmarine on void-packages repository
https://github.com/void-linux/void-packages/pull/41427#issuecomment-1370255329
Comment:
Don't give me too much credit for it, I had just been working on it the week before :)
For now it just has the service for running the server (meaning `ntfy serve`) since that was the functionality I needed--it seems that the Gotify-UP android app no longer exists and so I need a new UnifiedPush solution.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR PATCH] [Updated] [WIP] New package: ntfy-1.30.1
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
2023-01-03 20:13 ` biopsin
2023-01-03 21:45 ` TinfoilSubmarine
@ 2023-01-04 20:06 ` TinfoilSubmarine
2023-01-05 15:13 ` TinfoilSubmarine
` (12 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: TinfoilSubmarine @ 2023-01-04 20:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1515 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/ntfy
https://github.com/void-linux/void-packages/pull/41427
[WIP] New package: ntfy-1.30.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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
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
-->
Closes https://github.com/void-linux/void-packages/issues/41422
I am using this exclusively for the server functionality as I am using the ntfy android app as the client. @biopsin did you require any additional services for the client side?
A patch file from https://github.com/void-linux/void-packages/pull/41427.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/ntfy-41427.patch --]
[-- Type: text/x-diff, Size: 2035 bytes --]
From 5915847766ba0d072bd0467d5c1d546b87142524 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Sat, 31 Dec 2022 16:15:19 -0500
Subject: [PATCH] New package: ntfy-1.30.1
---
srcpkgs/ntfy/files/ntfy-server/log/run | 1 +
srcpkgs/ntfy/files/ntfy-server/run | 3 +++
srcpkgs/ntfy/template | 26 ++++++++++++++++++++++++++
3 files changed, 30 insertions(+)
create mode 120000 srcpkgs/ntfy/files/ntfy-server/log/run
create mode 100644 srcpkgs/ntfy/files/ntfy-server/run
create mode 100644 srcpkgs/ntfy/template
diff --git a/srcpkgs/ntfy/files/ntfy-server/log/run b/srcpkgs/ntfy/files/ntfy-server/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/ntfy/files/ntfy-server/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/ntfy/files/ntfy-server/run b/srcpkgs/ntfy/files/ntfy-server/run
new file mode 100644
index 000000000000..26e9f7928163
--- /dev/null
+++ b/srcpkgs/ntfy/files/ntfy-server/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -u _ntfy:_ntfy ntfy serve
diff --git a/srcpkgs/ntfy/template b/srcpkgs/ntfy/template
new file mode 100644
index 000000000000..cf074aed7fc4
--- /dev/null
+++ b/srcpkgs/ntfy/template
@@ -0,0 +1,26 @@
+# Template file for 'ntfy'
+pkgname=ntfy
+version=1.30.1
+revision=1
+build_style=go
+go_import_path="heckel.io/ntfy"
+hostmakedepends="nodejs"
+short_desc="Send push notifications to your phone or desktop using PUT/POST"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="Apache-2.0,GPL-2.0-only"
+homepage="https://ntfy.sh"
+distfiles="https://github.com/binwiederhier/ntfy/archive/refs/tags/v${version}.tar.gz"
+checksum=f64160ef27c334b673e65e2bd02bf9307b930f7018130520a1b0a551d06c474c
+system_accounts="_ntfy"
+conf_files="/etc/ntfy/server.yml"
+
+pre_build() {
+ make web
+ mkdir -p dist/ntfy_linux_server server/docs
+ touch server/docs/index.html server/site/app.html
+}
+
+post_install() {
+ vsv ntfy-server
+ vinstall server/server.yml 644 etc/ntfy
+}
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [WIP] New package: ntfy-1.30.1
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
` (2 preceding siblings ...)
2023-01-04 20:06 ` [PR PATCH] [Updated] " TinfoilSubmarine
@ 2023-01-05 15:13 ` TinfoilSubmarine
2023-01-05 15:32 ` [PR PATCH] [Updated] " TinfoilSubmarine
` (11 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: TinfoilSubmarine @ 2023-01-05 15:13 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 455 bytes --]
New comment by TinfoilSubmarine on void-packages repository
https://github.com/void-linux/void-packages/pull/41427#issuecomment-1372345861
Comment:
OK, I fixed the webapp not showing. As far as a client service replicating the [systemd service in the upstream source](https://github.com/binwiederhier/ntfy/blob/main/client/ntfy-client.service), I don't know if this makes much sense since likely a user would just want to have a per-user runit service.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR PATCH] [Updated] New package: ntfy-1.30.1
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
` (3 preceding siblings ...)
2023-01-05 15:13 ` TinfoilSubmarine
@ 2023-01-05 15:32 ` TinfoilSubmarine
2023-01-05 15:32 ` TinfoilSubmarine
` (10 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: TinfoilSubmarine @ 2023-01-05 15:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1509 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/ntfy
https://github.com/void-linux/void-packages/pull/41427
New package: ntfy-1.30.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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
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
-->
Closes https://github.com/void-linux/void-packages/issues/41422
I am using this exclusively for the server functionality as I am using the ntfy android app as the client. @biopsin did you require any additional services for the client side?
A patch file from https://github.com/void-linux/void-packages/pull/41427.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/ntfy-41427.patch --]
[-- Type: text/x-diff, Size: 3752 bytes --]
From 24b537e5cdaf4cd370a772aaba1b106d822ad73e Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Sat, 31 Dec 2022 16:15:19 -0500
Subject: [PATCH] New package: ntfy-1.30.1
---
srcpkgs/ntfy/files/ntfy-server/log/run | 1 +
srcpkgs/ntfy/files/ntfy-server/run | 3 +++
srcpkgs/ntfy/patches/config.patch | 31 ++++++++++++++++++++++++++
srcpkgs/ntfy/template | 28 +++++++++++++++++++++++
4 files changed, 63 insertions(+)
create mode 120000 srcpkgs/ntfy/files/ntfy-server/log/run
create mode 100644 srcpkgs/ntfy/files/ntfy-server/run
create mode 100644 srcpkgs/ntfy/patches/config.patch
create mode 100644 srcpkgs/ntfy/template
diff --git a/srcpkgs/ntfy/files/ntfy-server/log/run b/srcpkgs/ntfy/files/ntfy-server/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/ntfy/files/ntfy-server/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/ntfy/files/ntfy-server/run b/srcpkgs/ntfy/files/ntfy-server/run
new file mode 100644
index 000000000000..26e9f7928163
--- /dev/null
+++ b/srcpkgs/ntfy/files/ntfy-server/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -u _ntfy:_ntfy ntfy serve
diff --git a/srcpkgs/ntfy/patches/config.patch b/srcpkgs/ntfy/patches/config.patch
new file mode 100644
index 000000000000..834570b03916
--- /dev/null
+++ b/srcpkgs/ntfy/patches/config.patch
@@ -0,0 +1,31 @@
+diff --git a/server/server.yml b/server/server.yml
+index 1b26899..5de6ac1 100644
+--- a/server/server.yml
++++ b/server/server.yml
+@@ -36,7 +36,7 @@
+ # If set, also publish messages to a Firebase Cloud Messaging (FCM) topic for your app.
+ # This is optional and only required to save battery when using the Android app.
+ #
+-# firebase-key-file: <filename>
++# firebase-key-file: /var/lib/ntfy/firebase.key
+
+ # If "cache-file" is set, messages are cached in a local SQLite database instead of only in-memory.
+ # This allows for service restarts without losing messages in support of the since= parameter.
+@@ -68,7 +68,7 @@
+ # If you are running ntfy with systemd, make sure this cache file is owned by the
+ # ntfy user and group by running: chown ntfy.ntfy <filename>.
+ #
+-# cache-file: <filename>
++# cache-file: /var/lib/ntfy/cache.sqlite
+ # cache-duration: "12h"
+ # cache-startup-queries:
+ # cache-batch-size: 0
+@@ -89,7 +89,7 @@
+ # If you are running ntfy with systemd, make sure this user database file is owned by the
+ # ntfy user and group by running: chown ntfy.ntfy <filename>.
+ #
+-# auth-file: <filename>
++# auth-file: /var/lib/ntfy/auth.sqlite
+ # auth-default-access: "read-write"
+
+ # If set, the X-Forwarded-For header is used to determine the visitor IP address
diff --git a/srcpkgs/ntfy/template b/srcpkgs/ntfy/template
new file mode 100644
index 000000000000..08065c84074a
--- /dev/null
+++ b/srcpkgs/ntfy/template
@@ -0,0 +1,28 @@
+# Template file for 'ntfy'
+pkgname=ntfy
+version=1.30.1
+revision=1
+build_style=go
+go_import_path="heckel.io/ntfy"
+hostmakedepends="nodejs"
+short_desc="Send push notifications to your phone or desktop using PUT/POST"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="Apache-2.0,GPL-2.0-only"
+homepage="https://ntfy.sh"
+distfiles="https://github.com/binwiederhier/ntfy/archive/refs/tags/v${version}.tar.gz"
+checksum=f64160ef27c334b673e65e2bd02bf9307b930f7018130520a1b0a551d06c474c
+system_accounts="_ntfy"
+make_dirs="/var/lib/ntfy 0700 _ntfy _ntfy"
+_ntfy_homedir="/var/lib/ntfy"
+conf_files="/etc/ntfy/server.yml"
+
+pre_build() {
+ make web
+ mkdir -p dist/ntfy_linux_server server/docs
+ touch server/docs/index.html server/site/app.html
+}
+
+post_install() {
+ vsv ntfy-server
+ vinstall server/server.yml 644 etc/ntfy
+}
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: New package: ntfy-1.30.1
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
` (4 preceding siblings ...)
2023-01-05 15:32 ` [PR PATCH] [Updated] " TinfoilSubmarine
@ 2023-01-05 15:32 ` TinfoilSubmarine
2023-01-22 21:14 ` Piraty
` (9 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: TinfoilSubmarine @ 2023-01-05 15:32 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 216 bytes --]
New comment by TinfoilSubmarine on void-packages repository
https://github.com/void-linux/void-packages/pull/41427#issuecomment-1372371220
Comment:
Added a data directory so the server can use the cache/auth file.
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: New package: ntfy-1.30.1
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
` (5 preceding siblings ...)
2023-01-05 15:32 ` TinfoilSubmarine
@ 2023-01-22 21:14 ` Piraty
2023-01-22 21:29 ` TinfoilSubmarine
` (8 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: Piraty @ 2023-01-22 21:14 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 210 bytes --]
New comment by Piraty on void-packages repository
https://github.com/void-linux/void-packages/pull/41427#issuecomment-1399610240
Comment:
is this ready? (if not, please prefix `WIP` to the title until it is)
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: New package: ntfy-1.30.1
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
` (6 preceding siblings ...)
2023-01-22 21:14 ` Piraty
@ 2023-01-22 21:29 ` TinfoilSubmarine
2023-02-15 15:06 ` [PR PATCH] [Updated] " TinfoilSubmarine
` (7 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: TinfoilSubmarine @ 2023-01-22 21:29 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 242 bytes --]
New comment by TinfoilSubmarine on void-packages repository
https://github.com/void-linux/void-packages/pull/41427#issuecomment-1399613608
Comment:
> is this ready? (if not, please prefix `WIP` to the title until it is)
Yes, it is ready
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR PATCH] [Updated] New package: ntfy-1.30.1
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
` (7 preceding siblings ...)
2023-01-22 21:29 ` TinfoilSubmarine
@ 2023-02-15 15:06 ` TinfoilSubmarine
2023-02-15 15:19 ` TinfoilSubmarine
` (6 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: TinfoilSubmarine @ 2023-02-15 15:06 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1509 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/ntfy
https://github.com/void-linux/void-packages/pull/41427
New package: ntfy-1.30.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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
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
-->
Closes https://github.com/void-linux/void-packages/issues/41422
I am using this exclusively for the server functionality as I am using the ntfy android app as the client. @biopsin did you require any additional services for the client side?
A patch file from https://github.com/void-linux/void-packages/pull/41427.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/ntfy-41427.patch --]
[-- Type: text/x-diff, Size: 3752 bytes --]
From 890ab8f191ee1847eee810fd7f2f4c2816c463bd Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Sat, 31 Dec 2022 16:15:19 -0500
Subject: [PATCH] New package: ntfy-1.31.0
---
srcpkgs/ntfy/files/ntfy-server/log/run | 1 +
srcpkgs/ntfy/files/ntfy-server/run | 3 +++
srcpkgs/ntfy/patches/config.patch | 31 ++++++++++++++++++++++++++
srcpkgs/ntfy/template | 28 +++++++++++++++++++++++
4 files changed, 63 insertions(+)
create mode 120000 srcpkgs/ntfy/files/ntfy-server/log/run
create mode 100644 srcpkgs/ntfy/files/ntfy-server/run
create mode 100644 srcpkgs/ntfy/patches/config.patch
create mode 100644 srcpkgs/ntfy/template
diff --git a/srcpkgs/ntfy/files/ntfy-server/log/run b/srcpkgs/ntfy/files/ntfy-server/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/ntfy/files/ntfy-server/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/ntfy/files/ntfy-server/run b/srcpkgs/ntfy/files/ntfy-server/run
new file mode 100644
index 000000000000..26e9f7928163
--- /dev/null
+++ b/srcpkgs/ntfy/files/ntfy-server/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -u _ntfy:_ntfy ntfy serve
diff --git a/srcpkgs/ntfy/patches/config.patch b/srcpkgs/ntfy/patches/config.patch
new file mode 100644
index 000000000000..834570b03916
--- /dev/null
+++ b/srcpkgs/ntfy/patches/config.patch
@@ -0,0 +1,31 @@
+diff --git a/server/server.yml b/server/server.yml
+index 1b26899..5de6ac1 100644
+--- a/server/server.yml
++++ b/server/server.yml
+@@ -36,7 +36,7 @@
+ # If set, also publish messages to a Firebase Cloud Messaging (FCM) topic for your app.
+ # This is optional and only required to save battery when using the Android app.
+ #
+-# firebase-key-file: <filename>
++# firebase-key-file: /var/lib/ntfy/firebase.key
+
+ # If "cache-file" is set, messages are cached in a local SQLite database instead of only in-memory.
+ # This allows for service restarts without losing messages in support of the since= parameter.
+@@ -68,7 +68,7 @@
+ # If you are running ntfy with systemd, make sure this cache file is owned by the
+ # ntfy user and group by running: chown ntfy.ntfy <filename>.
+ #
+-# cache-file: <filename>
++# cache-file: /var/lib/ntfy/cache.sqlite
+ # cache-duration: "12h"
+ # cache-startup-queries:
+ # cache-batch-size: 0
+@@ -89,7 +89,7 @@
+ # If you are running ntfy with systemd, make sure this user database file is owned by the
+ # ntfy user and group by running: chown ntfy.ntfy <filename>.
+ #
+-# auth-file: <filename>
++# auth-file: /var/lib/ntfy/auth.sqlite
+ # auth-default-access: "read-write"
+
+ # If set, the X-Forwarded-For header is used to determine the visitor IP address
diff --git a/srcpkgs/ntfy/template b/srcpkgs/ntfy/template
new file mode 100644
index 000000000000..a4c5536672d7
--- /dev/null
+++ b/srcpkgs/ntfy/template
@@ -0,0 +1,28 @@
+# Template file for 'ntfy'
+pkgname=ntfy
+version=1.31.0
+revision=1
+build_style=go
+go_import_path="heckel.io/ntfy"
+hostmakedepends="nodejs"
+short_desc="Send push notifications to your phone or desktop using PUT/POST"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="Apache-2.0,GPL-2.0-only"
+homepage="https://ntfy.sh"
+distfiles="https://github.com/binwiederhier/ntfy/archive/refs/tags/v${version}.tar.gz"
+checksum=966f614a0e74dd09378e23b3580d4a90a83bce40d20237c1cb5511bda4ac8c78
+system_accounts="_ntfy"
+make_dirs="/var/lib/ntfy 0700 _ntfy _ntfy"
+_ntfy_homedir="/var/lib/ntfy"
+conf_files="/etc/ntfy/server.yml"
+
+pre_build() {
+ make web
+ mkdir -p dist/ntfy_linux_server server/docs
+ touch server/docs/index.html server/site/app.html
+}
+
+post_install() {
+ vsv ntfy-server
+ vinstall server/server.yml 644 etc/ntfy
+}
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR PATCH] [Updated] New package: ntfy-1.30.1
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
` (8 preceding siblings ...)
2023-02-15 15:06 ` [PR PATCH] [Updated] " TinfoilSubmarine
@ 2023-02-15 15:19 ` TinfoilSubmarine
2023-02-15 22:48 ` [PR REVIEW] New package: ntfy-1.31.0 Piraty
` (5 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: TinfoilSubmarine @ 2023-02-15 15:19 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1509 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/ntfy
https://github.com/void-linux/void-packages/pull/41427
New package: ntfy-1.30.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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
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
-->
Closes https://github.com/void-linux/void-packages/issues/41422
I am using this exclusively for the server functionality as I am using the ntfy android app as the client. @biopsin did you require any additional services for the client side?
A patch file from https://github.com/void-linux/void-packages/pull/41427.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/ntfy-41427.patch --]
[-- Type: text/x-diff, Size: 3858 bytes --]
From 9ec96f90456d699205fef2eacb9a64992a08db52 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Sat, 31 Dec 2022 16:15:19 -0500
Subject: [PATCH] New package: ntfy-1.31.0
---
srcpkgs/ntfy/files/ntfy-server/log/run | 1 +
srcpkgs/ntfy/files/ntfy-server/run | 3 +++
srcpkgs/ntfy/patches/config.patch | 31 ++++++++++++++++++++++++++
srcpkgs/ntfy/template | 30 +++++++++++++++++++++++++
4 files changed, 65 insertions(+)
create mode 120000 srcpkgs/ntfy/files/ntfy-server/log/run
create mode 100644 srcpkgs/ntfy/files/ntfy-server/run
create mode 100644 srcpkgs/ntfy/patches/config.patch
create mode 100644 srcpkgs/ntfy/template
diff --git a/srcpkgs/ntfy/files/ntfy-server/log/run b/srcpkgs/ntfy/files/ntfy-server/log/run
new file mode 120000
index 000000000000..3a5b4a586051
--- /dev/null
+++ b/srcpkgs/ntfy/files/ntfy-server/log/run
@@ -0,0 +1 @@
+/usr/bin/vlogger
\ No newline at end of file
diff --git a/srcpkgs/ntfy/files/ntfy-server/run b/srcpkgs/ntfy/files/ntfy-server/run
new file mode 100644
index 000000000000..26e9f7928163
--- /dev/null
+++ b/srcpkgs/ntfy/files/ntfy-server/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -u _ntfy:_ntfy ntfy serve
diff --git a/srcpkgs/ntfy/patches/config.patch b/srcpkgs/ntfy/patches/config.patch
new file mode 100644
index 000000000000..834570b03916
--- /dev/null
+++ b/srcpkgs/ntfy/patches/config.patch
@@ -0,0 +1,31 @@
+diff --git a/server/server.yml b/server/server.yml
+index 1b26899..5de6ac1 100644
+--- a/server/server.yml
++++ b/server/server.yml
+@@ -36,7 +36,7 @@
+ # If set, also publish messages to a Firebase Cloud Messaging (FCM) topic for your app.
+ # This is optional and only required to save battery when using the Android app.
+ #
+-# firebase-key-file: <filename>
++# firebase-key-file: /var/lib/ntfy/firebase.key
+
+ # If "cache-file" is set, messages are cached in a local SQLite database instead of only in-memory.
+ # This allows for service restarts without losing messages in support of the since= parameter.
+@@ -68,7 +68,7 @@
+ # If you are running ntfy with systemd, make sure this cache file is owned by the
+ # ntfy user and group by running: chown ntfy.ntfy <filename>.
+ #
+-# cache-file: <filename>
++# cache-file: /var/lib/ntfy/cache.sqlite
+ # cache-duration: "12h"
+ # cache-startup-queries:
+ # cache-batch-size: 0
+@@ -89,7 +89,7 @@
+ # If you are running ntfy with systemd, make sure this user database file is owned by the
+ # ntfy user and group by running: chown ntfy.ntfy <filename>.
+ #
+-# auth-file: <filename>
++# auth-file: /var/lib/ntfy/auth.sqlite
+ # auth-default-access: "read-write"
+
+ # If set, the X-Forwarded-For header is used to determine the visitor IP address
diff --git a/srcpkgs/ntfy/template b/srcpkgs/ntfy/template
new file mode 100644
index 000000000000..20c15c89472b
--- /dev/null
+++ b/srcpkgs/ntfy/template
@@ -0,0 +1,30 @@
+# Template file for 'ntfy'
+pkgname=ntfy
+version=1.31.0
+revision=1
+build_style=go
+go_import_path="heckel.io/ntfy"
+go_ldflags="-X main.version=${version} -X main.commit=v${version}
+ -X main.date=${SOURCE_DATE_EPOCH}"
+hostmakedepends="nodejs"
+short_desc="Send push notifications to your phone or desktop using PUT/POST"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="Apache-2.0,GPL-2.0-only"
+homepage="https://ntfy.sh"
+distfiles="https://github.com/binwiederhier/ntfy/archive/refs/tags/v${version}.tar.gz"
+checksum=966f614a0e74dd09378e23b3580d4a90a83bce40d20237c1cb5511bda4ac8c78
+system_accounts="_ntfy"
+make_dirs="/var/lib/ntfy 0700 _ntfy _ntfy"
+_ntfy_homedir="/var/lib/ntfy"
+conf_files="/etc/ntfy/server.yml"
+
+pre_build() {
+ make web
+ mkdir -p dist/ntfy_linux_server server/docs
+ touch server/docs/index.html server/site/app.html
+}
+
+post_install() {
+ vsv ntfy-server
+ vinstall server/server.yml 644 etc/ntfy
+}
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR REVIEW] New package: ntfy-1.31.0
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
` (9 preceding siblings ...)
2023-02-15 15:19 ` TinfoilSubmarine
@ 2023-02-15 22:48 ` Piraty
2023-02-15 22:50 ` [PR PATCH] [Updated] " TinfoilSubmarine
` (4 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: Piraty @ 2023-02-15 22:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 205 bytes --]
New review comment by Piraty on void-packages repository
https://github.com/void-linux/void-packages/pull/41427#discussion_r1107813422
Comment:
see https://github.com/void-linux/void-packages/pull/42026
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR PATCH] [Updated] New package: ntfy-1.31.0
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
` (10 preceding siblings ...)
2023-02-15 22:48 ` [PR REVIEW] New package: ntfy-1.31.0 Piraty
@ 2023-02-15 22:50 ` TinfoilSubmarine
2023-02-15 22:51 ` [PR REVIEW] " TinfoilSubmarine
` (3 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: TinfoilSubmarine @ 2023-02-15 22:50 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1509 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/ntfy
https://github.com/void-linux/void-packages/pull/41427
New package: ntfy-1.31.0
<!-- 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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
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
-->
Closes https://github.com/void-linux/void-packages/issues/41422
I am using this exclusively for the server functionality as I am using the ntfy android app as the client. @biopsin did you require any additional services for the client side?
A patch file from https://github.com/void-linux/void-packages/pull/41427.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/ntfy-41427.patch --]
[-- Type: text/x-diff, Size: 3482 bytes --]
From 665301915b1d5a04b695717c346fe5b4aedeb08e Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Sat, 31 Dec 2022 16:15:19 -0500
Subject: [PATCH] New package: ntfy-1.31.0
---
srcpkgs/ntfy/files/ntfy-server/run | 3 +++
srcpkgs/ntfy/patches/config.patch | 31 ++++++++++++++++++++++++++++++
srcpkgs/ntfy/template | 30 +++++++++++++++++++++++++++++
3 files changed, 64 insertions(+)
create mode 100644 srcpkgs/ntfy/files/ntfy-server/run
create mode 100644 srcpkgs/ntfy/patches/config.patch
create mode 100644 srcpkgs/ntfy/template
diff --git a/srcpkgs/ntfy/files/ntfy-server/run b/srcpkgs/ntfy/files/ntfy-server/run
new file mode 100644
index 000000000000..26e9f7928163
--- /dev/null
+++ b/srcpkgs/ntfy/files/ntfy-server/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -u _ntfy:_ntfy ntfy serve
diff --git a/srcpkgs/ntfy/patches/config.patch b/srcpkgs/ntfy/patches/config.patch
new file mode 100644
index 000000000000..834570b03916
--- /dev/null
+++ b/srcpkgs/ntfy/patches/config.patch
@@ -0,0 +1,31 @@
+diff --git a/server/server.yml b/server/server.yml
+index 1b26899..5de6ac1 100644
+--- a/server/server.yml
++++ b/server/server.yml
+@@ -36,7 +36,7 @@
+ # If set, also publish messages to a Firebase Cloud Messaging (FCM) topic for your app.
+ # This is optional and only required to save battery when using the Android app.
+ #
+-# firebase-key-file: <filename>
++# firebase-key-file: /var/lib/ntfy/firebase.key
+
+ # If "cache-file" is set, messages are cached in a local SQLite database instead of only in-memory.
+ # This allows for service restarts without losing messages in support of the since= parameter.
+@@ -68,7 +68,7 @@
+ # If you are running ntfy with systemd, make sure this cache file is owned by the
+ # ntfy user and group by running: chown ntfy.ntfy <filename>.
+ #
+-# cache-file: <filename>
++# cache-file: /var/lib/ntfy/cache.sqlite
+ # cache-duration: "12h"
+ # cache-startup-queries:
+ # cache-batch-size: 0
+@@ -89,7 +89,7 @@
+ # If you are running ntfy with systemd, make sure this user database file is owned by the
+ # ntfy user and group by running: chown ntfy.ntfy <filename>.
+ #
+-# auth-file: <filename>
++# auth-file: /var/lib/ntfy/auth.sqlite
+ # auth-default-access: "read-write"
+
+ # If set, the X-Forwarded-For header is used to determine the visitor IP address
diff --git a/srcpkgs/ntfy/template b/srcpkgs/ntfy/template
new file mode 100644
index 000000000000..20c15c89472b
--- /dev/null
+++ b/srcpkgs/ntfy/template
@@ -0,0 +1,30 @@
+# Template file for 'ntfy'
+pkgname=ntfy
+version=1.31.0
+revision=1
+build_style=go
+go_import_path="heckel.io/ntfy"
+go_ldflags="-X main.version=${version} -X main.commit=v${version}
+ -X main.date=${SOURCE_DATE_EPOCH}"
+hostmakedepends="nodejs"
+short_desc="Send push notifications to your phone or desktop using PUT/POST"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="Apache-2.0,GPL-2.0-only"
+homepage="https://ntfy.sh"
+distfiles="https://github.com/binwiederhier/ntfy/archive/refs/tags/v${version}.tar.gz"
+checksum=966f614a0e74dd09378e23b3580d4a90a83bce40d20237c1cb5511bda4ac8c78
+system_accounts="_ntfy"
+make_dirs="/var/lib/ntfy 0700 _ntfy _ntfy"
+_ntfy_homedir="/var/lib/ntfy"
+conf_files="/etc/ntfy/server.yml"
+
+pre_build() {
+ make web
+ mkdir -p dist/ntfy_linux_server server/docs
+ touch server/docs/index.html server/site/app.html
+}
+
+post_install() {
+ vsv ntfy-server
+ vinstall server/server.yml 644 etc/ntfy
+}
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR REVIEW] New package: ntfy-1.31.0
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
` (11 preceding siblings ...)
2023-02-15 22:50 ` [PR PATCH] [Updated] " TinfoilSubmarine
@ 2023-02-15 22:51 ` TinfoilSubmarine
2023-02-16 20:44 ` [PR PATCH] [Updated] " TinfoilSubmarine
` (2 subsequent siblings)
15 siblings, 0 replies; 17+ messages in thread
From: TinfoilSubmarine @ 2023-02-15 22:51 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 170 bytes --]
New review comment by TinfoilSubmarine on void-packages repository
https://github.com/void-linux/void-packages/pull/41427#discussion_r1107820357
Comment:
Fixed, thanks
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR PATCH] [Updated] New package: ntfy-1.31.0
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
` (12 preceding siblings ...)
2023-02-15 22:51 ` [PR REVIEW] " TinfoilSubmarine
@ 2023-02-16 20:44 ` TinfoilSubmarine
2023-02-16 21:41 ` [PR PATCH] [Updated] New package: ntfy-2.0.0 TinfoilSubmarine
2023-02-16 22:52 ` [PR PATCH] [Merged]: " Piraty
15 siblings, 0 replies; 17+ messages in thread
From: TinfoilSubmarine @ 2023-02-16 20:44 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1509 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/ntfy
https://github.com/void-linux/void-packages/pull/41427
New package: ntfy-1.31.0
<!-- 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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
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
-->
Closes https://github.com/void-linux/void-packages/issues/41422
I am using this exclusively for the server functionality as I am using the ntfy android app as the client. @biopsin did you require any additional services for the client side?
A patch file from https://github.com/void-linux/void-packages/pull/41427.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/ntfy-41427.patch --]
[-- Type: text/x-diff, Size: 4276 bytes --]
From 7777e64f2c3eae9146675c58e149f39f81d98520 Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Sat, 31 Dec 2022 16:15:19 -0500
Subject: [PATCH] New package: ntfy-2.0.0
---
srcpkgs/ntfy/files/ntfy-server/run | 3 +++
srcpkgs/ntfy/patches/config.patch | 31 ++++++++++++++++++++++
srcpkgs/ntfy/patches/no_short_commit.patch | 13 +++++++++
srcpkgs/ntfy/template | 30 +++++++++++++++++++++
4 files changed, 77 insertions(+)
create mode 100644 srcpkgs/ntfy/files/ntfy-server/run
create mode 100644 srcpkgs/ntfy/patches/config.patch
create mode 100644 srcpkgs/ntfy/patches/no_short_commit.patch
create mode 100644 srcpkgs/ntfy/template
diff --git a/srcpkgs/ntfy/files/ntfy-server/run b/srcpkgs/ntfy/files/ntfy-server/run
new file mode 100644
index 000000000000..26e9f7928163
--- /dev/null
+++ b/srcpkgs/ntfy/files/ntfy-server/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -u _ntfy:_ntfy ntfy serve
diff --git a/srcpkgs/ntfy/patches/config.patch b/srcpkgs/ntfy/patches/config.patch
new file mode 100644
index 000000000000..ea868b694646
--- /dev/null
+++ b/srcpkgs/ntfy/patches/config.patch
@@ -0,0 +1,31 @@
+diff --git a/server/server.yml b/server/server.yml
+index 1b26899..5de6ac1 100644
+--- a/server/server.yml
++++ b/server/server.yml
+@@ -36,7 +36,7 @@
+ # If set, also publish messages to a Firebase Cloud Messaging (FCM) topic for your app.
+ # This is optional and only required to save battery when using the Android app.
+ #
+-# firebase-key-file: <filename>
++# firebase-key-file: /var/lib/ntfy/firebase.key
+
+ # If "cache-file" is set, messages are cached in a local SQLite database instead of only in-memory.
+ # This allows for service restarts without losing messages in support of the since= parameter.
+@@ -68,7 +68,7 @@
+ # If you are running ntfy with systemd, make sure this cache file is owned by the
+ # ntfy user and group by running: chown ntfy.ntfy <filename>.
+ #
+-# cache-file: <filename>
++# cache-file: /var/lib/ntfy/cache.db
+ # cache-duration: "12h"
+ # cache-startup-queries:
+ # cache-batch-size: 0
+@@ -89,7 +89,7 @@
+ # If you are running ntfy with systemd, make sure this user database file is owned by the
+ # ntfy user and group by running: chown ntfy.ntfy <filename>.
+ #
+-# auth-file: <filename>
++# auth-file: /var/lib/ntfy/user.db
+ # auth-default-access: "read-write"
+
+ # If set, the X-Forwarded-For header is used to determine the visitor IP address
diff --git a/srcpkgs/ntfy/patches/no_short_commit.patch b/srcpkgs/ntfy/patches/no_short_commit.patch
new file mode 100644
index 000000000000..27fe46e58389
--- /dev/null
+++ b/srcpkgs/ntfy/patches/no_short_commit.patch
@@ -0,0 +1,13 @@
+diff --git a/main.go b/main.go
+index 5b1428d..2f7087a 100644
+--- a/main.go
++++ b/main.go
+@@ -24,7 +24,7 @@ the Matrix room (https://matrix.to/#/#ntfy:matrix.org).
+
+ ntfy %s (%s), runtime %s, built at %s
+ Copyright (C) 2022 Philipp C. Heckel, licensed under Apache License 2.0 & GPLv2
+-`, version, commit[:7], runtime.Version(), date)
++`, version, commit, runtime.Version(), date)
+
+ app := cmd.New()
+ app.Version = version
diff --git a/srcpkgs/ntfy/template b/srcpkgs/ntfy/template
new file mode 100644
index 000000000000..bb8a0d39d371
--- /dev/null
+++ b/srcpkgs/ntfy/template
@@ -0,0 +1,30 @@
+# Template file for 'ntfy'
+pkgname=ntfy
+version=2.0.0
+revision=1
+build_style=go
+go_import_path="heckel.io/ntfy"
+go_ldflags="-X main.version=${version} -X main.commit=v${version}
+ -X main.date=${SOURCE_DATE_EPOCH}"
+hostmakedepends="nodejs"
+short_desc="Send push notifications to your phone or desktop using PUT/POST"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="Apache-2.0,GPL-2.0-only"
+homepage="https://ntfy.sh"
+distfiles="https://github.com/binwiederhier/ntfy/archive/refs/tags/v${version}.tar.gz"
+checksum=08bbb642efcc476e45c7168c2b475c3ad83e5bf2fb901c79fd2c6b76f3326a4a
+system_accounts="_ntfy"
+make_dirs="/var/lib/ntfy 0700 _ntfy _ntfy"
+_ntfy_homedir="/var/lib/ntfy"
+conf_files="/etc/ntfy/server.yml"
+
+pre_build() {
+ make web
+ mkdir -p dist/ntfy_linux_server server/docs
+ touch server/docs/index.html server/site/app.html
+}
+
+post_install() {
+ vsv ntfy-server
+ vinstall server/server.yml 644 etc/ntfy
+}
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR PATCH] [Updated] New package: ntfy-2.0.0
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
` (13 preceding siblings ...)
2023-02-16 20:44 ` [PR PATCH] [Updated] " TinfoilSubmarine
@ 2023-02-16 21:41 ` TinfoilSubmarine
2023-02-16 22:52 ` [PR PATCH] [Merged]: " Piraty
15 siblings, 0 replies; 17+ messages in thread
From: TinfoilSubmarine @ 2023-02-16 21:41 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1508 bytes --]
There is an updated pull request by TinfoilSubmarine against master on the void-packages repository
https://github.com/TinfoilSubmarine/void-packages maint/ntfy
https://github.com/void-linux/void-packages/pull/41427
New package: ntfy-2.0.0
<!-- 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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
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
-->
Closes https://github.com/void-linux/void-packages/issues/41422
I am using this exclusively for the server functionality as I am using the ntfy android app as the client. @biopsin did you require any additional services for the client side?
A patch file from https://github.com/void-linux/void-packages/pull/41427.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-maint/ntfy-41427.patch --]
[-- Type: text/x-diff, Size: 4276 bytes --]
From 092ddc01587bd01e9da76c54fe3c3e1b248232ff Mon Sep 17 00:00:00 2001
From: Joel Beckmeyer <joel@beckmeyer.us>
Date: Sat, 31 Dec 2022 16:15:19 -0500
Subject: [PATCH] New package: ntfy-2.0.0
---
srcpkgs/ntfy/files/ntfy-server/run | 3 +++
srcpkgs/ntfy/patches/config.patch | 31 ++++++++++++++++++++++
srcpkgs/ntfy/patches/no_short_commit.patch | 13 +++++++++
srcpkgs/ntfy/template | 30 +++++++++++++++++++++
4 files changed, 77 insertions(+)
create mode 100644 srcpkgs/ntfy/files/ntfy-server/run
create mode 100644 srcpkgs/ntfy/patches/config.patch
create mode 100644 srcpkgs/ntfy/patches/no_short_commit.patch
create mode 100644 srcpkgs/ntfy/template
diff --git a/srcpkgs/ntfy/files/ntfy-server/run b/srcpkgs/ntfy/files/ntfy-server/run
new file mode 100644
index 000000000000..26e9f7928163
--- /dev/null
+++ b/srcpkgs/ntfy/files/ntfy-server/run
@@ -0,0 +1,3 @@
+#!/bin/sh
+exec 2>&1
+exec chpst -u _ntfy:_ntfy ntfy serve
diff --git a/srcpkgs/ntfy/patches/config.patch b/srcpkgs/ntfy/patches/config.patch
new file mode 100644
index 000000000000..ea868b694646
--- /dev/null
+++ b/srcpkgs/ntfy/patches/config.patch
@@ -0,0 +1,31 @@
+diff --git a/server/server.yml b/server/server.yml
+index 1b26899..5de6ac1 100644
+--- a/server/server.yml
++++ b/server/server.yml
+@@ -36,7 +36,7 @@
+ # If set, also publish messages to a Firebase Cloud Messaging (FCM) topic for your app.
+ # This is optional and only required to save battery when using the Android app.
+ #
+-# firebase-key-file: <filename>
++# firebase-key-file: /var/lib/ntfy/firebase.key
+
+ # If "cache-file" is set, messages are cached in a local SQLite database instead of only in-memory.
+ # This allows for service restarts without losing messages in support of the since= parameter.
+@@ -68,7 +68,7 @@
+ # If you are running ntfy with systemd, make sure this cache file is owned by the
+ # ntfy user and group by running: chown ntfy.ntfy <filename>.
+ #
+-# cache-file: <filename>
++# cache-file: /var/lib/ntfy/cache.db
+ # cache-duration: "12h"
+ # cache-startup-queries:
+ # cache-batch-size: 0
+@@ -89,7 +89,7 @@
+ # If you are running ntfy with systemd, make sure this user database file is owned by the
+ # ntfy user and group by running: chown ntfy.ntfy <filename>.
+ #
+-# auth-file: <filename>
++# auth-file: /var/lib/ntfy/user.db
+ # auth-default-access: "read-write"
+
+ # If set, the X-Forwarded-For header is used to determine the visitor IP address
diff --git a/srcpkgs/ntfy/patches/no_short_commit.patch b/srcpkgs/ntfy/patches/no_short_commit.patch
new file mode 100644
index 000000000000..27fe46e58389
--- /dev/null
+++ b/srcpkgs/ntfy/patches/no_short_commit.patch
@@ -0,0 +1,13 @@
+diff --git a/main.go b/main.go
+index 5b1428d..2f7087a 100644
+--- a/main.go
++++ b/main.go
+@@ -24,7 +24,7 @@ the Matrix room (https://matrix.to/#/#ntfy:matrix.org).
+
+ ntfy %s (%s), runtime %s, built at %s
+ Copyright (C) 2022 Philipp C. Heckel, licensed under Apache License 2.0 & GPLv2
+-`, version, commit[:7], runtime.Version(), date)
++`, version, commit, runtime.Version(), date)
+
+ app := cmd.New()
+ app.Version = version
diff --git a/srcpkgs/ntfy/template b/srcpkgs/ntfy/template
new file mode 100644
index 000000000000..bb8a0d39d371
--- /dev/null
+++ b/srcpkgs/ntfy/template
@@ -0,0 +1,30 @@
+# Template file for 'ntfy'
+pkgname=ntfy
+version=2.0.0
+revision=1
+build_style=go
+go_import_path="heckel.io/ntfy"
+go_ldflags="-X main.version=${version} -X main.commit=v${version}
+ -X main.date=${SOURCE_DATE_EPOCH}"
+hostmakedepends="nodejs"
+short_desc="Send push notifications to your phone or desktop using PUT/POST"
+maintainer="Joel Beckmeyer <joel@beckmeyer.us>"
+license="Apache-2.0,GPL-2.0-only"
+homepage="https://ntfy.sh"
+distfiles="https://github.com/binwiederhier/ntfy/archive/refs/tags/v${version}.tar.gz"
+checksum=08bbb642efcc476e45c7168c2b475c3ad83e5bf2fb901c79fd2c6b76f3326a4a
+system_accounts="_ntfy"
+make_dirs="/var/lib/ntfy 0700 _ntfy _ntfy"
+_ntfy_homedir="/var/lib/ntfy"
+conf_files="/etc/ntfy/server.yml"
+
+pre_build() {
+ make web
+ mkdir -p dist/ntfy_linux_server server/docs
+ touch server/docs/index.html server/site/app.html
+}
+
+post_install() {
+ vsv ntfy-server
+ vinstall server/server.yml 644 etc/ntfy
+}
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [PR PATCH] [Merged]: New package: ntfy-2.0.0
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
` (14 preceding siblings ...)
2023-02-16 21:41 ` [PR PATCH] [Updated] New package: ntfy-2.0.0 TinfoilSubmarine
@ 2023-02-16 22:52 ` Piraty
15 siblings, 0 replies; 17+ messages in thread
From: Piraty @ 2023-02-16 22:52 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1331 bytes --]
There's a merged pull request on the void-packages repository
New package: ntfy-2.0.0
https://github.com/void-linux/void-packages/pull/41427
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 [package requirements](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#package-requirements): **YES**|**NO**
-->
<!-- Note: If the build is likely to take more than 2 hours, please add ci skip tag as described in
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
-->
Closes https://github.com/void-linux/void-packages/issues/41422
I am using this exclusively for the server functionality as I am using the ntfy android app as the client. @biopsin did you require any additional services for the client side?
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2023-02-16 22:52 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-01-03 17:43 [PR PATCH] [WIP] New package: ntfy-1.30.1 TinfoilSubmarine
2023-01-03 20:13 ` biopsin
2023-01-03 21:45 ` TinfoilSubmarine
2023-01-04 20:06 ` [PR PATCH] [Updated] " TinfoilSubmarine
2023-01-05 15:13 ` TinfoilSubmarine
2023-01-05 15:32 ` [PR PATCH] [Updated] " TinfoilSubmarine
2023-01-05 15:32 ` TinfoilSubmarine
2023-01-22 21:14 ` Piraty
2023-01-22 21:29 ` TinfoilSubmarine
2023-02-15 15:06 ` [PR PATCH] [Updated] " TinfoilSubmarine
2023-02-15 15:19 ` TinfoilSubmarine
2023-02-15 22:48 ` [PR REVIEW] New package: ntfy-1.31.0 Piraty
2023-02-15 22:50 ` [PR PATCH] [Updated] " TinfoilSubmarine
2023-02-15 22:51 ` [PR REVIEW] " TinfoilSubmarine
2023-02-16 20:44 ` [PR PATCH] [Updated] " TinfoilSubmarine
2023-02-16 21:41 ` [PR PATCH] [Updated] New package: ntfy-2.0.0 TinfoilSubmarine
2023-02-16 22:52 ` [PR PATCH] [Merged]: " Piraty
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).