commit:     79ff6b4bead72eb97676e24a7b145487e0e9a1b3
Author:     Anton Fischl <github <AT> fischl-online <DOT> de>
AuthorDate: Mon Jul 21 04:37:53 2025 +0000
Commit:     Yixun Lan <dlan <AT> gentoo <DOT> org>
CommitDate: Mon Jul 21 06:28:16 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=79ff6b4b

www-apps/nextcloud-notify_push: add 1.1.0

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.1.0.ebuild             | 61 ++++++++++++++++++++++
 2 files changed, 63 insertions(+)

diff --git a/www-apps/nextcloud-notify_push/Manifest 
b/www-apps/nextcloud-notify_push/Manifest
index 5b56999787a8..7550c40b8cb3 100644
--- a/www-apps/nextcloud-notify_push/Manifest
+++ b/www-apps/nextcloud-notify_push/Manifest
@@ -1,2 +1,4 @@
 DIST nextcloud-notify_push-1.0.0.tar.gz 128094 BLAKE2B 
5f8cb3bff1bf70b0cdea869ff23d1fae2b4323005a9fc4145cca57b9b97f848ebc4543971c3bedf6b6d86dd049808b8e634560610b932b6faffcc24af102757d
 SHA512 
04f6ac2067c5842549f4941085702f3748c39f1b0900096b22197521040704e0bfa936d904ff2b604fa6f4bfc24de96bacbb41adf7ea5d6c8c2863677e66883a
+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 notify_push-v1.0.0-crates.tar.xz 28413540 BLAKE2B 
a2c4aa65540a37e96401c8f77ce7cb68a8757d3ca511bb8995fb5b27f2164cdac2664a48a8ea00b59f0e53db4acfc3a253fc0dfda368619d4aaac51db5cbcd11
 SHA512 
430cf7eb6e64e2970780b10550cd6bac300d206e4387a6ad42b319cfadbfd493f1f99f5ffa0655333fbb58ced799372a311f1039cc3f6dca594d3a1b39814517

diff --git a/www-apps/nextcloud-notify_push/nextcloud-notify_push-1.1.0.ebuild 
b/www-apps/nextcloud-notify_push/nextcloud-notify_push-1.1.0.ebuild
new file mode 100644
index 000000000000..b54444ddea6b
--- /dev/null
+++ b/www-apps/nextcloud-notify_push/nextcloud-notify_push-1.1.0.ebuild
@@ -0,0 +1,61 @@
+# Copyright 1999-2025 Gentoo Authors
+# Distributed under the terms of the GNU General Public License v2
+
+# Autogenerated by pycargoebuild 0.13.2
+
+EAPI=8
+
+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