commit:     95aef447e33a45ec5f26ecdd2a48e9eaafdc83cc
Author:     Anton Fischl <github <AT> fischl-online <DOT> de>
AuthorDate: Fri Sep  5 05:29:26 2025 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Fri Sep  5 21:57:06 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=95aef447

www-apps/nextcloud-notify_push: add 1.2.0

Closes: https://bugs.gentoo.org/961532
Signed-off-by: Anton Fischl <github <AT> fischl-online.de>
Signed-off-by: Yixun Lan <dlan <AT> gentoo.org>

 www-apps/nextcloud-notify_push/Manifest            |  2 +
 .../nextcloud-notify_push-1.2.0.ebuild             | 62 ++++++++++++++++++++++
 2 files changed, 64 insertions(+)

diff --git a/www-apps/nextcloud-notify_push/Manifest 
b/www-apps/nextcloud-notify_push/Manifest
index 479af5cd5b90..5d76862577c2 100644
--- a/www-apps/nextcloud-notify_push/Manifest
+++ b/www-apps/nextcloud-notify_push/Manifest
@@ -1,2 +1,4 @@
 DIST nextcloud-notify_push-1.1.0-crates.tar.xz 28244936 BLAKE2B 
65370048d18415d3693e69afe488fbc989039c859e646bd582e420f0494a61a49d3c06799e27fa9dc96fa8597475d3669b40e645200da5bd3d150f799c464022
 SHA512 
24f453f804933258dec01d3099874f7f0a78751b98ff094401e7cc7e1a9edf2b3da22827fde7bcf0aeba63313e6bd417cd8e24aa98f6a9052d2ee665bde173e8
 DIST nextcloud-notify_push-1.1.0.tar.gz 131865 BLAKE2B 
1cd375dfb0920d2177f011a776bea09a43be057585d622287d142dd380fd8831c42fdcdfacd06bcee6373a58ec4085d370b7c703544865fc357f0da8319897a3
 SHA512 
83a653c0360094b2c21697066ab1163d6a9de61a76ddccbdedf78b6c0d3a4aead760bd4b52a3de5ffd13b82a49ef484af7e375c648d45cd485d3b0022fb508a9
+DIST nextcloud-notify_push-1.2.0-crates.tar.xz 28112360 BLAKE2B 
5f5942e5afcf1e85f2262b79c74e0077ffe9e183b3fb977be02b5328cfc4fa79266825ecd012d8a227c4bec07ab243629748bfa28fe04e21b669ff0c549b7acc
 SHA512 
0434b6ccaedc4c4031bb5f5ab4bdbdc9d2052b868c8221d4d1a0bdcf96a390067f271c20562a6438835fab389594fb1870897bbdb90875bba69e281e4a1caf09
+DIST nextcloud-notify_push-1.2.0.tar.gz 139273 BLAKE2B 
870bb1dd8a4d59a60f6b77a15e6b96d4d2b4ff221bfd1cf24f5ee956da68c89c2a21f8f913e8547c0fadd2e4aa6dda09da27affaac52c5192c3ba054b8f58f46
 SHA512 
bfd060af3b5175bee3e3cb6bf4c7f53db6f22fb96a4445a1aaad3c7724b253db0fbe31988ad263fcba2749fc9ab8b035c6fc7415b43ac69b793f4098a72999c9

diff --git a/www-apps/nextcloud-notify_push/nextcloud-notify_push-1.2.0.ebuild 
b/www-apps/nextcloud-notify_push/nextcloud-notify_push-1.2.0.ebuild
new file mode 100644
index 000000000000..1a874fc719b0
--- /dev/null
+++ b/www-apps/nextcloud-notify_push/nextcloud-notify_push-1.2.0.ebuild
@@ -0,0 +1,62 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Autogenerated by pycargoebuild 0.13.2
+
+EAPI=8
+
+RUST_MIN_VER="1.85.0"
+CRATES=""
+inherit eapi9-ver cargo systemd
+
+DESCRIPTION="Push daemon for Nextcloud clients"
+HOMEPAGE="https://github.com/nextcloud/notify_push";
+SRC_URI="https://github.com/nextcloud/notify_push/archive/refs/tags/v${PV}.tar.gz
 -> ${P}.tar.gz"
+SRC_URI+=" 
https://github.com/antonfischl1980/nextcloud-notify_push/releases/download/v${PV}/nextcloud-notify_push-${PV}-crates.tar.xz";
+S=${WORKDIR}/notify_push-${PV}
+
+LICENSE="AGPL-3"
+# Dependent crate licenses
+LICENSE+=" Apache-2.0 BSD CDLA-Permissive-2.0 GPL-3 ISC MIT Unicode-3.0 ZLIB"
+# ring crate
+LICENSE+=" openssl"
+SLOT="0"
+KEYWORDS="~amd64 ~x86"
+
+DEPEND="dev-db/sqlite:3"
+RDEPEND="${DEPEND}"
+
+QA_FLAGS_IGNORED="usr/bin/${PN}"
+
+src_prepare() {
+       export LIBSQLITE3_SYS_USE_PKG_CONFIG=1
+       default
+}
+
+src_install() {
+       cargo_src_install
+       einstalldocs
+
+       # default name is too generic
+       mv "${ED}/usr/bin/notify_push" "${ED}/usr/bin/${PN}" || die
+
+       newconfd "${FILESDIR}/${PN}-r1.confd" "${PN}"
+       newinitd "${FILESDIR}/${PN}-r2.init" "${PN}"
+       systemd_newunit "${FILESDIR}/${PN}.service-r1" "${PN}.service"
+       systemd_install_serviced "${FILESDIR}/${PN}.service.conf" "${PN}"
+
+       # restrict access because conf.d entry could contain
+       # database credentials
+       fperms 0640 "/etc/conf.d/${PN}"
+}
+
+pkg_postinst() {
+       if ver_replacing -lt "0.6.6"; then
+               ewarn "You are upgrading to ${PVR}"
+               ewarn "The systemd unit file for nextcloud-notify_push no 
longer sources ${EPREFIX}/etc/conf.d/nextcloud-notify_push ."
+               ewarn "Configuration is still done via 
${EPREFIX}/etc/conf.d/nextcloud-notify_push for OpenRC systems"
+               ewarn "while for systemd systems, a systemd drop-in file 
located at"
+               ewarn 
"${EPREFIX}/etc/systemd/system/nextcloud-notify_push.d/00gentoo.conf"
+               ewarn "is used for configuration."
+       fi
+}

Reply via email to