Skip to content
Snippets Groups Projects
Commit 1b4e38d5 authored by achill (fossdd)'s avatar achill (fossdd) Committed by Celeste
Browse files

community/ntfy: provide default configuration, change default port

ntfy user has insufficient permissions to start server under the default
port 80
parent e0b7894b
No related branches found
No related tags found
2 merge requests!66949Draft: [3.20] main/raspberrypi-bootloader: upgrade to 1.20240524,!66569community/ntfy: provide default configuration, change default port
Pipeline #236967 skipped
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
# Maintainer: Alex McGrath <amk@amk.ie> # Maintainer: Alex McGrath <amk@amk.ie>
pkgname=ntfy pkgname=ntfy
pkgver=2.11.0 pkgver=2.11.0
pkgrel=1 pkgrel=2
pkgdesc="A simple HTTP-based pub-sub notification service" pkgdesc="A simple HTTP-based pub-sub notification service"
url="https://ntfy.sh/" url="https://ntfy.sh/"
# riscv64: fails to build # riscv64: fails to build
...@@ -22,6 +22,12 @@ export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}" ...@@ -22,6 +22,12 @@ export GOCACHE="${GOCACHE:-"$srcdir/go-cache"}"
export GOTMPDIR="${GOTMPDIR:-"$srcdir"}" export GOTMPDIR="${GOTMPDIR:-"$srcdir"}"
export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}" export GOMODCACHE="${GOMODCACHE:-"$srcdir/go"}"
prepare() {
default_prepare
sed -i 's/^# listen-http: ":80"/listen-http: ":8080"/g' server/server.yml
}
build() { build() {
make web make web
mkdir -p dist/ntfy_linux_server server/docs mkdir -p dist/ntfy_linux_server server/docs
...@@ -45,7 +51,10 @@ package() { ...@@ -45,7 +51,10 @@ package() {
"$pkgdir"/etc/conf.d/$pkgname "$pkgdir"/etc/conf.d/$pkgname
install -Dm755 "$builddir"/dist/"$pkgname"_linux_server/"$pkgname" \ install -Dm755 "$builddir"/dist/"$pkgname"_linux_server/"$pkgname" \
"$pkgdir"/usr/bin/"$pkgname" "$pkgdir"/usr/bin/"$pkgname"
install -Dm644 "$builddir"/client/client.yml \
"$pkgdir"/etc/ntfy/client.yml
install -Dm644 "$builddir"/server/server.yml \
"$pkgdir"/etc/ntfy/server.yml
} }
sha512sums=" sha512sums="
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment