commit: e3216034947b36f6d70bc2ce32782a4072f7619a
Author: Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:12:21 2025 +0000
Commit: Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 09:26:40 2025 +0000
URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=e3216034
www-apps/nextcloud-notify_push: Port to ver_replacing
Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>
.../nextcloud-notify_push-0.7.0-r1.ebuild | 26 +++++++++-------------
1 file changed, 10 insertions(+), 16 deletions(-)
diff --git
a/www-apps/nextcloud-notify_push/nextcloud-notify_push-0.7.0-r1.ebuild
b/www-apps/nextcloud-notify_push/nextcloud-notify_push-0.7.0-r1.ebuild
index d5f61873f5fb..49611c777024 100644
--- a/www-apps/nextcloud-notify_push/nextcloud-notify_push-0.7.0-r1.ebuild
+++ b/www-apps/nextcloud-notify_push/nextcloud-notify_push-0.7.0-r1.ebuild
@@ -1,4 +1,4 @@
-# Copyright 1999-2024 Gentoo Authors
+# Copyright 1999-2025 Gentoo Authors
# Distributed under the terms of the GNU General Public License v2
# Autogenerated by pycargoebuild 0.13.2
@@ -356,7 +356,7 @@ CRATES="
[email protected]
"
-inherit cargo systemd
+inherit cargo eapi9-ver systemd
DESCRIPTION="Push daemon for Nextcloud clients"
HOMEPAGE="https://github.com/nextcloud/notify_push"
@@ -392,18 +392,12 @@ src_install() {
}
pkg_postinst() {
- # According to PMS this can be a space-separated list of version
- # numbers, even though in practice it is typically just one.
- local oldver
- for oldver in ${REPLACING_VERSIONS}; do
- if ver_test "${oldver}" -lt "0.6.6"; then
- ewarn "You are upgrading from $oldver 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."
- break
- fi
- done
+ if ver_replacing -lt "0.6.6"; then
+ ewarn "You are upgrading from $oldver 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
}