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 F27491582EF for ; Sat, 15 Feb 2025 09:29:43 +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 E00513430C0 for ; Sat, 15 Feb 2025 09:29:43 +0000 (UTC) Received: from bobolink.gentoo.org (localhost [127.0.0.1]) by bobolink.gentoo.org (Postfix) with ESMTP id 1EAA6110478; Sat, 15 Feb 2025 09:29:30 +0000 (UTC) Received: from smtp.gentoo.org (woodpecker.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (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 14B75110478 for ; Sat, 15 Feb 2025 09:29:30 +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 C0AB1343065 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 3F426271D 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: <1739611594.16daa86a9abf0097b2f9f127f5e1d7c9cc675f51.ulm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: net-wireless/kismet/ X-VCS-Repository: repo/gentoo X-VCS-Files: net-wireless/kismet/kismet-2023.07.1-r1.ebuild net-wireless/kismet/kismet-9999.ebuild X-VCS-Directories: net-wireless/kismet/ X-VCS-Committer: ulm X-VCS-Committer-Name: Ulrich Müller X-VCS-Revision: 16daa86a9abf0097b2f9f127f5e1d7c9cc675f51 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: fe9c958f-43e0-4567-9d59-23b65251c5d9 X-Archives-Hash: 86b8e8db721e09e801b123ae1ba33b1d commit: 16daa86a9abf0097b2f9f127f5e1d7c9cc675f51 Author: Ulrich Müller gentoo org> AuthorDate: Fri Feb 14 14:11:54 2025 +0000 Commit: Ulrich Müller gentoo org> CommitDate: Sat Feb 15 09:26:34 2025 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=16daa86a net-wireless/kismet: Port to ver_replacing Signed-off-by: Ulrich Müller gentoo.org> net-wireless/kismet/kismet-2023.07.1-r1.ebuild | 18 +++++------------- net-wireless/kismet/kismet-9999.ebuild | 18 +++++------------- 2 files changed, 10 insertions(+), 26 deletions(-) diff --git a/net-wireless/kismet/kismet-2023.07.1-r1.ebuild b/net-wireless/kismet/kismet-2023.07.1-r1.ebuild index b87166980da6..0f20214c45d8 100644 --- a/net-wireless/kismet/kismet-2023.07.1-r1.ebuild +++ b/net-wireless/kismet/kismet-2023.07.1-r1.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{10..12} ) -inherit autotools flag-o-matic python-single-r1 udev systemd +inherit autotools eapi9-ver flag-o-matic python-single-r1 udev systemd if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="https://www.kismetwireless.net/git/${PN}.git" @@ -194,20 +194,12 @@ migrate_config() { } pkg_postinst() { - if [ -n "${REPLACING_VERSIONS}" ]; then - for v in ${REPLACING_VERSIONS}; do - if ver_test ${v} -lt 2019.07.2 ; then - migrate_config - break - fi - if ver_test ${v} -eq 9999 ; then - migrate_config - break - fi - done + if ver_replacing -lt 2019.07.2 || ver_replacing -eq 9999 ; then + migrate_config fi udev_reload } + pkg_postrm() { udev_reload } diff --git a/net-wireless/kismet/kismet-9999.ebuild b/net-wireless/kismet/kismet-9999.ebuild index eb9aa7d0a0c6..d60d149d1f88 100644 --- a/net-wireless/kismet/kismet-9999.ebuild +++ b/net-wireless/kismet/kismet-9999.ebuild @@ -1,11 +1,11 @@ -# Copyright 1999-2024 Gentoo Authors +# Copyright 1999-2025 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=8 PYTHON_COMPAT=( python3_{10..12} ) -inherit autotools flag-o-matic python-single-r1 udev systemd +inherit autotools eapi9-ver flag-o-matic python-single-r1 udev systemd if [[ ${PV} == "9999" ]] ; then EGIT_REPO_URI="https://www.kismetwireless.net/git/${PN}.git" @@ -192,20 +192,12 @@ migrate_config() { } pkg_postinst() { - if [ -n "${REPLACING_VERSIONS}" ]; then - for v in ${REPLACING_VERSIONS}; do - if ver_test ${v} -lt 2019.07.2 ; then - migrate_config - break - fi - if ver_test ${v} -eq 9999 ; then - migrate_config - break - fi - done + if ver_replacing -lt 2019.07.2 || ver_replacing -eq 9999; then + migrate_config fi udev_reload } + pkg_postrm() { udev_reload }