From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id 1A31C1582EF for ; Sat, 15 Feb 2025 09:29:41 +0000 (UTC) Received: from lists.gentoo.org (bobolink.gentoo.org [140.211.166.189]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) (Authenticated sender: relay-lists.gentoo.org@gentoo.org) by smtp.gentoo.org (Postfix) with ESMTPSA id 043A63430B6 for ; Sat, 15 Feb 2025 09:29:41 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 0AD02110477; Sat, 15 Feb 2025 09:29:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [140.211.166.183]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by bobolink.gentoo.org (Postfix) with ESMTPS id 001AB110475 for ; Sat, 15 Feb 2025 09:29:29 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id A9BCF34305D for ; Sat, 15 Feb 2025 09:29:29 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 18F23271B for ; Sat, 15 Feb 2025 09:29:27 +0000 (UTC) From: "Ulrich Müller" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" Message-ID: <1739611593.fe131625b620680babd1efa0adbc7e081e07de54.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-fs/netatalk/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-fs/netatalk/netatalk-3.1.18.ebuild X-VCS-Directories: net-fs/netatalk/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: fe131625b620680babd1efa0adbc7e081e07de54 X-VCS-Branch: master Date: Sat, 15 Feb 2025 09:29:27 +0000 (UTC) Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-commits@lists.gentoo.org X-Auto-Response-Suppress: DR, RN, NRN, OOF, AutoReply X-Archives-Salt: 117427f5-8975-41a6-ae2e-b4990828c56a X-Archives-Hash: 1a29bde914dd3a2821d40da8d9f62b02 commit: fe131625b620680babd1efa0adbc7e081e07de54 Author: Ulrich Müller gentoo org> AuthorDate: Fri Feb 14 14:11:36 2025 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sat Feb 15 09:26:33 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=fe131625 net-fs/netatalk: Port to ver_replacing Signed-off-by: Ulrich Müller gentoo.org> net-fs/netatalk/netatalk-3.1.18.ebuild | 77 ++++++++++++++++------------------ 1 file changed, 37 insertions(+), 40 deletions(-) diff --git a/net-fs/netatalk/netatalk-3.1.18.ebuild b/net-fs/netatalk/netatalk-3.1.18.ebuild index 5d5a3fcf8c37..a3684cfeafb2 100644 --- a/net-fs/netatalk/netatalk-3.1.18.ebuild +++ b/net-fs/netatalk/netatalk-3.1.18.ebuild @@ -1,9 +1,9 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 -inherit autotools flag-o-matic pam systemd +inherit autotools eapi9-ver flag-o-matic pam systemd DESCRIPTION="Open Source AFP server" HOMEPAGE="https://netatalk.sourceforge.net/" @@ -130,43 +130,40 @@ src_install() { } pkg_postinst() { - local fle v - for v in ${REPLACING_VERSIONS}; do - if [[ $(ver_test ${v} -lt 3) ]]; then - for fle in afp_signature.conf afp_voluuid.conf; do - if [[ -f "${ROOT}"/etc/netatalk/${fle} ]]; then - if [[ ! -f "${ROOT}"/var/lib/netatalk/${fle} ]]; then - mv \ - "${ROOT}"/etc/netatalk/${fle} \ - "${ROOT}"/var/lib/netatalk/ - fi + if ver_replacing -lt 3; then + local fle + for fle in afp_signature.conf afp_voluuid.conf; do + if [[ -f "${ROOT}"/etc/netatalk/${fle} ]]; then + if [[ ! -f "${ROOT}"/var/lib/netatalk/${fle} ]]; then + mv \ + "${ROOT}"/etc/netatalk/${fle} \ + "${ROOT}"/var/lib/netatalk/ fi - done - - elog - elog "Starting from version 3.0 only uses a single init script again" - elog "Please update your runlevels accordingly" - elog - elog "Dependencies should be resolved automatically depending on settings" - elog "but please report issues with this on https://bugs.gentoo.org/ if" - elog "you find any." - elog - elog "Following config files are obsolete now:" - elog "afpd.conf, netatalk.conf, AppleVolumes.default and afp_ldap.conf" - elog "in favour of" - elog "/etc/afp.conf" - elog - elog "Please convert your existing configs before you restart your daemon" - elog - elog "The new AppleDouble default backend is appledouble = ea" - elog "Existing entries will be updated on access, but can do an offline" - elog "conversion with" - elog "dbd -ruve /path/to/Volume" - elog - elog "For general notes on the upgrade, please visit" - elog "http://netatalk.sourceforge.net/3.0/htmldocs/upgrade.html" - elog - break - fi - done + fi + done + + elog + elog "Starting from version 3.0 only uses a single init script again" + elog "Please update your runlevels accordingly" + elog + elog "Dependencies should be resolved automatically depending on settings" + elog "but please report issues with this on https://bugs.gentoo.org/ if" + elog "you find any." + elog + elog "Following config files are obsolete now:" + elog "afpd.conf, netatalk.conf, AppleVolumes.default and afp_ldap.conf" + elog "in favour of" + elog "/etc/afp.conf" + elog + elog "Please convert your existing configs before you restart your daemon" + elog + elog "The new AppleDouble default backend is appledouble = ea" + elog "Existing entries will be updated on access, but can do an offline" + elog "conversion with" + elog "dbd -ruve /path/to/Volume" + elog + elog "For general notes on the upgrade, please visit" + elog "http://netatalk.sourceforge.net/3.0/htmldocs/upgrade.html" + elog + fi }