Github messages for voidlinux
 help / color / mirror / Atom feed
From: TinfoilSubmarine <TinfoilSubmarine@users.noreply.github.com>
To: ml@inbox.vuxu.org
Subject: Re: [PR PATCH] [Updated] New package: ntfy-1.30.1
Date: Wed, 15 Feb 2023 16:19:25 +0100	[thread overview]
Message-ID: <20230215151925.kobL4Sj6oShSq2RncJS6-vmwW6_g4vGDVoybx4MJYww@z> (raw)
In-Reply-To: <gh-mailinglist-notifications-41a7ca26-5023-4802-975b-f1789d68868e-void-packages-41427@inbox.vuxu.org>

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

  parent reply	other threads:[~2023-02-15 15:19 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-01-03 17:43 [PR PATCH] [WIP] " 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 [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20230215151925.kobL4Sj6oShSq2RncJS6-vmwW6_g4vGDVoybx4MJYww@z \
    --to=tinfoilsubmarine@users.noreply.github.com \
    --cc=ml@inbox.vuxu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).