public inbox for gentoo-commits@lists.gentoo.org
 help / color / mirror / Atom feed
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/ksmbd-tools/
Date: Sat, 15 Feb 2025 09:29:27 +0000 (UTC)	[thread overview]
Message-ID: <1739611593.7ad02f004d4b657f00a1cd7c94150b0e24869ee4.ulm@gentoo> (raw)

commit:     7ad02f004d4b657f00a1cd7c94150b0e24869ee4
Author:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
AuthorDate: Fri Feb 14 14:11:35 2025 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Sat Feb 15 09:26:33 2025 +0000
URL:        https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ad02f00

net-fs/ksmbd-tools: Port to ver_replacing

Signed-off-by: Ulrich Müller <ulm <AT> gentoo.org>

 net-fs/ksmbd-tools/ksmbd-tools-3.5.2.ebuild | 18 +++++++-----------
 1 file changed, 7 insertions(+), 11 deletions(-)

diff --git a/net-fs/ksmbd-tools/ksmbd-tools-3.5.2.ebuild b/net-fs/ksmbd-tools/ksmbd-tools-3.5.2.ebuild
index c8ff8da17db4..a2a2c779dfb6 100644
--- a/net-fs/ksmbd-tools/ksmbd-tools-3.5.2.ebuild
+++ b/net-fs/ksmbd-tools/ksmbd-tools-3.5.2.ebuild
@@ -1,9 +1,9 @@
-# Copyright 2022-2024 Gentoo Authors
+# Copyright 2022-2025 Gentoo Authors
 # Distributed under the terms of the GNU General Public License v2
 
 EAPI=8
 
-inherit linux-info meson systemd
+inherit eapi9-ver linux-info meson systemd
 
 DESCRIPTION="cifsd/ksmbd kernel server userspace utilities"
 HOMEPAGE="https://github.com/cifsd-team/ksmbd-tools"
@@ -58,13 +58,9 @@ src_install() {
 }
 
 pkg_postinst() {
-	local ver
-	for ver in ${REPLACING_VERSIONS}; do
-		if ver_test ${ver} -lt 3.4.6; then
-			ewarn "Upgrade from version <${CATEGORY}/${PN}-3.4.6 detected"
-			ewarn "${PN} config file moved to ${EPREFIX}/etc/ksmbd/ksmbd.conf"
-			ewarn "Please migrate from old ${EPREFIX}/etc/ksmbd/smb.conf"
-		fi
-	done
-	unset ver
+	if ver_replacing -lt 3.4.6; then
+		ewarn "Upgrade from version <${CATEGORY}/${PN}-3.4.6 detected"
+		ewarn "${PN} config file moved to ${EPREFIX}/etc/ksmbd/ksmbd.conf"
+		ewarn "Please migrate from old ${EPREFIX}/etc/ksmbd/smb.conf"
+	fi
 }


             reply	other threads:[~2025-02-15  9:29 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-02-15  9:29 Ulrich Müller [this message]
  -- strict thread matches above, loose matches on Subject: below --
2025-03-08 23:21 [gentoo-commits] repo/gentoo:master commit in: net-fs/ksmbd-tools/ Conrad Kostecki
2024-04-08  6:15 Sam James
2023-06-27  0:16 Georgy Yakovlev
2022-01-21  9:20 Georgy Yakovlev
2022-01-21  9:20 Georgy Yakovlev
2021-12-20 12:17 Georgy Yakovlev
2021-12-15  5:53 Georgy Yakovlev
2021-12-15  5:52 Georgy Yakovlev
2021-12-13 22:38 Georgy Yakovlev
2021-11-29 22:49 Georgy Yakovlev

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1739611593.7ad02f004d4b657f00a1cd7c94150b0e24869ee4.ulm@gentoo \
    --to=ulm@gentoo.org \
    --cc=gentoo-commits@lists.gentoo.org \
    --cc=gentoo-dev@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox