[arch-commits] Commit in nextcloud-app-notify_push/repos (4 files)

Caleb Maclennan alerque at gemini.archlinux.org
Fri Apr 29 17:56:47 UTC 2022


    Date: Friday, April 29, 2022 @ 17:56:47
  Author: alerque
Revision: 1191825

archrelease: copy trunk to community-x86_64

Added:
  nextcloud-app-notify_push/repos/community-x86_64/
  nextcloud-app-notify_push/repos/community-x86_64/PKGBUILD
    (from rev 1191824, nextcloud-app-notify_push/trunk/PKGBUILD)
  nextcloud-app-notify_push/repos/community-x86_64/nextcloud-app-notify_push.install
    (from rev 1191824, nextcloud-app-notify_push/trunk/nextcloud-app-notify_push.install)
  nextcloud-app-notify_push/repos/community-x86_64/nextcloud-app-notify_push.service
    (from rev 1191824, nextcloud-app-notify_push/trunk/nextcloud-app-notify_push.service)

-----------------------------------+
 PKGBUILD                          |   55 ++++++++++++++++++++++++++++++++++++
 nextcloud-app-notify_push.install |   12 +++++++
 nextcloud-app-notify_push.service |   10 ++++++
 3 files changed, 77 insertions(+)

Copied: nextcloud-app-notify_push/repos/community-x86_64/PKGBUILD (from rev 1191824, nextcloud-app-notify_push/trunk/PKGBUILD)
===================================================================
--- community-x86_64/PKGBUILD	                        (rev 0)
+++ community-x86_64/PKGBUILD	2022-04-29 17:56:47 UTC (rev 1191825)
@@ -0,0 +1,55 @@
+# Maintainer: Caleb Maclennan <caleb at alerque.com>
+# Contributor: Carlos Galindo < arch -at - cgj.es >
+
+pkgname=nextcloud-app-notify_push
+pkgver=0.4.0
+pkgrel=1
+pkgdesc='Update notifications for nextcloud clients'
+arch=(x86_64)
+url="https://github.com/nextcloud/${pkgname##*-}"
+license=(AGPL3)
+depends=('nextcloud<25')
+makedepends=(cargo
+             rsync)
+optdepends=('redis: use a local redis instance')
+options=(debug !lto)
+install="$pkgname.install"
+_archive="${pkgname##*-}-$pkgver"
+source=("$url/archive/v$pkgver/$_archive.tar.gz"
+        "$pkgname.service")
+sha256sums=('c53ccb6df9fd7319d9ec3a3c21b5a602666b88bd6e05e769dd9fc290eefa2df0'
+            '82d985fc60a140e8f2a42e3f914c627d0d4c010d930e1580a10e1980e32172c1')
+
+prepare() {
+	cd "$_archive"
+	cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+	sed -i -e "s/@ARCH@/$CARCH/" "../$pkgname.service"
+}
+
+build() {
+	cd "$_archive"
+	cargo build --frozen --release --all-features
+}
+
+check() {
+	cd "$_archive"
+	cargo test --frozen --all-features
+}
+
+package() {
+	cd "$_archive"
+	_appdir="$pkgdir/usr/share/webapps/nextcloud/apps/${pkgname##*-}"
+	rsync -a --mkpath \
+		--include='appinfo/***' \
+		--include='js/***' \
+		--include='lib/***' \
+		--include='templates/***' \
+		--include='vendor/***' \
+		--include=.php_cs.dist \
+		--include=webpack.common.js \
+		--include=webpack.prod.js \
+		--exclude='*' \
+		./ $_appdir/
+	install -Dm0755 -t "$_appdir/bin/$CARCH/" "target/release/${pkgname##*-}"
+	install -Dm0644 -t "$pkgdir/usr/lib/systemd/system/" "$srcdir/$pkgname.service"
+}

Copied: nextcloud-app-notify_push/repos/community-x86_64/nextcloud-app-notify_push.install (from rev 1191824, nextcloud-app-notify_push/trunk/nextcloud-app-notify_push.install)
===================================================================
--- community-x86_64/nextcloud-app-notify_push.install	                        (rev 0)
+++ community-x86_64/nextcloud-app-notify_push.install	2022-04-29 17:56:47 UTC (rev 1191825)
@@ -0,0 +1,12 @@
+post_install() {
+    echo 'Remember to finish the setup for notify_push:'
+    echo ''
+    echo 'Enable and start the nextcloud-app-notify_push.service'
+    echo 'Setup your reverse proxy (see /usr/share/webapps/nextcloud/apps/notify_push/README.md)'
+    echo 'Run the setup with `occ notify_push:setup https://your.nextcloud.com/push`.'
+}
+
+post_upgrade() {
+    echo 'You may want to restart nextcloud-app-notify_push.service'
+    echo 'and re-check your setup with `occ notify_push:self-test`'
+}

Copied: nextcloud-app-notify_push/repos/community-x86_64/nextcloud-app-notify_push.service (from rev 1191824, nextcloud-app-notify_push/trunk/nextcloud-app-notify_push.service)
===================================================================
--- community-x86_64/nextcloud-app-notify_push.service	                        (rev 0)
+++ community-x86_64/nextcloud-app-notify_push.service	2022-04-29 17:56:47 UTC (rev 1191825)
@@ -0,0 +1,10 @@
+[Unit]
+Description = Push daemon for Nextcloud clients
+
+[Service]
+Environment = PORT=7867 BIND=127.0.0.1
+ExecStart = /usr/share/webapps/nextcloud/apps/notify_push/bin/@ARCH@/notify_push /etc/webapps/nextcloud/config/config.php
+User = nextcloud
+
+[Install]
+WantedBy = multi-user.target



More information about the arch-commits mailing list