Github messages for voidlinux
 help / color / mirror / Atom feed
* [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

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