Date: Tuesday, May 16, 2023 @ 12:17:17
Author: alerque
Revision: 1461977
archrelease: copy trunk to community-x86_64
Added:
nextcloud-app-notify_push/repos/community-x86_64/PKGBUILD
(from rev 1461976, nextcloud-app-notify_push/trunk/PKGBUILD)
nextcloud-app-notify_push/repos/community-x86_64/nextcloud-app-notify_push.install
(from rev 1461976,
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 1461976,
nextcloud-app-notify_push/trunk/nextcloud-app-notify_push.service)
Deleted:
nextcloud-app-notify_push/repos/community-x86_64/PKGBUILD
nextcloud-app-notify_push/repos/community-x86_64/nextcloud-app-notify_push.install
nextcloud-app-notify_push/repos/community-x86_64/nextcloud-app-notify_push.service
-----------------------------------+
PKGBUILD | 188 ++++++++++++++++++------------------
nextcloud-app-notify_push.install | 24 ++--
nextcloud-app-notify_push.service | 20 +--
3 files changed, 116 insertions(+), 116 deletions(-)
Deleted: PKGBUILD
===================================================================
--- PKGBUILD 2023-05-16 12:17:04 UTC (rev 1461976)
+++ PKGBUILD 2023-05-16 12:17:17 UTC (rev 1461977)
@@ -1,94 +0,0 @@
-# Maintainer: Caleb Maclennan <[email protected]>
-# Contributor: Carlos Galindo < arch -at - cgj.es >
-
-pkgname=nextcloud-app-notify_push
-pkgver=0.6.2
-pkgrel=1
-pkgdesc='Update notifications for nextcloud clients'
-arch=(x86_64)
-url="https://github.com/nextcloud/${pkgname##*-}"
-license=(AGPL3)
-makedepends=(cargo
- nextcloud
- rsync
- yq)
-optdepends=('redis: use a local redis instance')
-install="$pkgname.install"
-groups=(nextcloud-apps)
-_archive="${pkgname##*-}-$pkgver"
-source=("$url/archive/v$pkgver/$_archive.tar.gz"
- "$pkgname.service")
-sha256sums=('4018ba386ff9b8af6403caa6c0cbcef6f036b594555a7c44b8329b44671f57d4'
- 'b22b470f9e02d2bbe0c266431948daaadd7e7f007c27a989bdfcb063ee58fac6')
-
-# BEGIN boilerplate nextcloud app version clamping, see also other packages in
group
-# 1. Call respective function helpers in check() and package() *after* cd'ing
to the source directory
-# 2. Add makedepends+=(nextcloud yq)
-_phps=(php-legacy php)
-_get_supported_ranges() {
- _app_min_nextcloud="$(< appinfo/info.xml xq -r
'.info.dependencies.nextcloud["@min-version"] | values')"
- _app_max_nextcloud="$(< appinfo/info.xml xq -r
'.info.dependencies.nextcloud["@max-version"] | values | tonumber | .+1')"
- _app_min_php="$(< appinfo/info.xml xq -r
'.info.dependencies.php["@min-version"] | values')"
- _app_max_php="$(< appinfo/info.xml xq -r
'.info.dependencies.php["@max-version"] | values | tonumber | .+0.1')"
-}
-_unsupported_range() {
- printf "%s requires %s %s, but %s %s is provided.\n" "$pkgname" "$1"
"$2" "$1" "$3"
- exit 1
-}
-_nextcloud_app_check() {
- _get_supported_ranges
- for _php in "${_phps[@]}"; do command -v "$_php" > /dev/null && break;
done
- local _nextcloud_ver="$("$_php" <(cat
/usr/share/webapps/nextcloud/version.php; echo 'print($OC_VersionString);'))"
- local _php_ver="$("$_php" -r 'print(phpversion());')"
- [[ "$(vercmp "${_app_min_nextcloud:-0}" "$_nextcloud_ver")" -le 0 ]] ||
\
- _unsupported_range nextcloud "=> $_app_min_nextcloud"
"$_nextcloud_ver"
- [[ "$(vercmp "${_app_max_nextcloud:-999}" "$_nextcloud_ver")" -gt 0 ]]
|| \
- _unsupported_range nextcloud "< $_app_max_nextcloud"
"$_nextcloud_ver"
- [[ "$(vercmp "${_app_min_php:-0}" "$_php_ver")" -le 0 ]] || \
- _unsupported_range php ">= $_app_min_php" "$_php_ver"
- [[ "$(vercmp "${_app_max_php:-999}" "$_php_ver")" -gt 0 ]] || \
- _unsupported_range php "< $_app_max_php" "$_php_ver"
-}
-_nextcloud_app_package() {
- _get_supported_ranges
- depends+=("nextcloud>=${_app_min_nextcloud:-0}"
"nextcloud<${_app_max_nextcloud:-999}")
- depends+=("php-interpreter${_app_min_php:+>=$_app_min_php}"
${_app_max_php:+"php-interpreter<$_app_max_php"})
-}
-# END boilerplate nextcloud app version clamping
-
-prepare() {
- cd "$_archive"
- cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
- sed -i -e "s/@ARCH@/$CARCH/" "../$pkgname.service"
-}
-
-build() {
- cd "$_archive"
- export CFLAGS+=" -ffat-lto-objects"
- cargo build --frozen --release --all-features
-}
-
-check() {
- cd "$_archive"
- _nextcloud_app_check
- cargo test --frozen --all-features
-}
-
-package() {
- cd "$_archive"
- _nextcloud_app_package
- _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/PKGBUILD (from rev
1461976, nextcloud-app-notify_push/trunk/PKGBUILD)
===================================================================
--- PKGBUILD (rev 0)
+++ PKGBUILD 2023-05-16 12:17:17 UTC (rev 1461977)
@@ -0,0 +1,94 @@
+# Maintainer: Caleb Maclennan <[email protected]>
+# Contributor: Carlos Galindo < arch -at - cgj.es >
+
+pkgname=nextcloud-app-notify_push
+pkgver=0.6.3
+pkgrel=1
+pkgdesc='Update notifications for nextcloud clients'
+arch=(x86_64)
+url="https://github.com/nextcloud/${pkgname##*-}"
+license=(AGPL3)
+makedepends=(cargo
+ nextcloud
+ rsync
+ yq)
+optdepends=('redis: use a local redis instance')
+install="$pkgname.install"
+groups=(nextcloud-apps)
+_archive="${pkgname##*-}-$pkgver"
+source=("$url/archive/v$pkgver/$_archive.tar.gz"
+ "$pkgname.service")
+sha256sums=('dfa448112769c2c18ae39054eb682687af50222c13a1da57d6ca269ef51c99a5'
+ 'b22b470f9e02d2bbe0c266431948daaadd7e7f007c27a989bdfcb063ee58fac6')
+
+# BEGIN boilerplate nextcloud app version clamping, see also other packages in
group
+# 1. Call respective function helpers in check() and package() *after* cd'ing
to the source directory
+# 2. Add makedepends+=(nextcloud yq)
+_phps=(php-legacy php)
+_get_supported_ranges() {
+ _app_min_nextcloud="$(< appinfo/info.xml xq -r
'.info.dependencies.nextcloud["@min-version"] | values')"
+ _app_max_nextcloud="$(< appinfo/info.xml xq -r
'.info.dependencies.nextcloud["@max-version"] | values | tonumber | .+1')"
+ _app_min_php="$(< appinfo/info.xml xq -r
'.info.dependencies.php["@min-version"] | values')"
+ _app_max_php="$(< appinfo/info.xml xq -r
'.info.dependencies.php["@max-version"] | values | tonumber | .+0.1')"
+}
+_unsupported_range() {
+ printf "%s requires %s %s, but %s %s is provided.\n" "$pkgname" "$1"
"$2" "$1" "$3"
+ exit 1
+}
+_nextcloud_app_check() {
+ _get_supported_ranges
+ for _php in "${_phps[@]}"; do command -v "$_php" > /dev/null && break;
done
+ local _nextcloud_ver="$("$_php" <(cat
/usr/share/webapps/nextcloud/version.php; echo 'print($OC_VersionString);'))"
+ local _php_ver="$("$_php" -r 'print(phpversion());')"
+ [[ "$(vercmp "${_app_min_nextcloud:-0}" "$_nextcloud_ver")" -le 0 ]] ||
\
+ _unsupported_range nextcloud "=> $_app_min_nextcloud"
"$_nextcloud_ver"
+ [[ "$(vercmp "${_app_max_nextcloud:-999}" "$_nextcloud_ver")" -gt 0 ]]
|| \
+ _unsupported_range nextcloud "< $_app_max_nextcloud"
"$_nextcloud_ver"
+ [[ "$(vercmp "${_app_min_php:-0}" "$_php_ver")" -le 0 ]] || \
+ _unsupported_range php ">= $_app_min_php" "$_php_ver"
+ [[ "$(vercmp "${_app_max_php:-999}" "$_php_ver")" -gt 0 ]] || \
+ _unsupported_range php "< $_app_max_php" "$_php_ver"
+}
+_nextcloud_app_package() {
+ _get_supported_ranges
+ depends+=("nextcloud>=${_app_min_nextcloud:-0}"
"nextcloud<${_app_max_nextcloud:-999}")
+ depends+=("php-interpreter${_app_min_php:+>=$_app_min_php}"
${_app_max_php:+"php-interpreter<$_app_max_php"})
+}
+# END boilerplate nextcloud app version clamping
+
+prepare() {
+ cd "$_archive"
+ cargo fetch --locked --target "$CARCH-unknown-linux-gnu"
+ sed -i -e "s/@ARCH@/$CARCH/" "../$pkgname.service"
+}
+
+build() {
+ cd "$_archive"
+ export CFLAGS+=" -ffat-lto-objects"
+ cargo build --frozen --release --all-features
+}
+
+check() {
+ cd "$_archive"
+ _nextcloud_app_check
+ cargo test --frozen --all-features
+}
+
+package() {
+ cd "$_archive"
+ _nextcloud_app_package
+ _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"
+}
Deleted: nextcloud-app-notify_push.install
===================================================================
--- nextcloud-app-notify_push.install 2023-05-16 12:17:04 UTC (rev 1461976)
+++ nextcloud-app-notify_push.install 2023-05-16 12:17:17 UTC (rev 1461977)
@@ -1,12 +0,0 @@
-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.install
(from rev 1461976,
nextcloud-app-notify_push/trunk/nextcloud-app-notify_push.install)
===================================================================
--- nextcloud-app-notify_push.install (rev 0)
+++ nextcloud-app-notify_push.install 2023-05-16 12:17:17 UTC (rev 1461977)
@@ -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`'
+}
Deleted: nextcloud-app-notify_push.service
===================================================================
--- nextcloud-app-notify_push.service 2023-05-16 12:17:04 UTC (rev 1461976)
+++ nextcloud-app-notify_push.service 2023-05-16 12:17:17 UTC (rev 1461977)
@@ -1,10 +0,0 @@
-[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
Copied:
nextcloud-app-notify_push/repos/community-x86_64/nextcloud-app-notify_push.service
(from rev 1461976,
nextcloud-app-notify_push/trunk/nextcloud-app-notify_push.service)
===================================================================
--- nextcloud-app-notify_push.service (rev 0)
+++ nextcloud-app-notify_push.service 2023-05-16 12:17:17 UTC (rev 1461977)
@@ -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