From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80]) (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 DE0821581FB for ; Sun, 24 Nov 2024 10:24:36 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id 20C35E07D0; Sun, 24 Nov 2024 10:24:36 +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 pigeon.gentoo.org (Postfix) with ESMTPS id 02E33E07D0 for ; Sun, 24 Nov 2024 10:24:36 +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 1A271342F99 for ; Sun, 24 Nov 2024 10:24:35 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id A23F01E75 for ; Sun, 24 Nov 2024 10:24:33 +0000 (UTC) From: "Andreas Sturmlechner" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Andreas Sturmlechner" Message-ID: <1732443858.d8924b16afe3668e70dea2aac86e24f3f616d1a5.asturm@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: sys-auth/elogind/ X-VCS-Repository: repo/gentoo X-VCS-Files: sys-auth/elogind/elogind-255.5-r1.ebuild X-VCS-Directories: sys-auth/elogind/ X-VCS-Committer: asturm X-VCS-Committer-Name: Andreas Sturmlechner X-VCS-Revision: d8924b16afe3668e70dea2aac86e24f3f616d1a5 X-VCS-Branch: master Date: Sun, 24 Nov 2024 10:24:33 +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: 80fde012-ba9a-4e8f-95b4-e38c0ea1af16 X-Archives-Hash: d1b0d580203f0b34159c394e26708c5c commit: d8924b16afe3668e70dea2aac86e24f3f616d1a5 Author: Andreas Sturmlechner gentoo org> AuthorDate: Sun Nov 24 00:03:45 2024 +0000 Commit: Andreas Sturmlechner gentoo org> CommitDate: Sun Nov 24 10:24:18 2024 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=d8924b16 sys-auth/elogind: ewarn about hooks in obsolete path Bug: https://bugs.gentoo.org/939216 Signed-off-by: Andreas Sturmlechner gentoo.org> sys-auth/elogind/elogind-255.5-r1.ebuild | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/sys-auth/elogind/elogind-255.5-r1.ebuild b/sys-auth/elogind/elogind-255.5-r1.ebuild index 22ad55a76fc2..2081a0952b41 100644 --- a/sys-auth/elogind/elogind-255.5-r1.ebuild +++ b/sys-auth/elogind/elogind-255.5-r1.ebuild @@ -172,6 +172,22 @@ pkg_postinst() { elog "configuration remember to migrate those to new configuration file." fi done + + local file files + # find custom hooks excluding known (nvidia-drivers, sys-power/tlp) + if [[ -d "${EROOT}"/$(get_libdir)/elogind/system-sleep ]]; then + readarray -t files < <(find "${EROOT}"/$(get_libdir)/elogind/system-sleep/ \ + -type f \( -not -iname ".keep_dir" -a \ + -not -iname "nvidia" -a \ + -not -iname "49-tlp-sleep" \) || die) + fi + if [[ ${#files[@]} -gt 0 ]]; then + ewarn "*** Custom hooks in obsolete path detected ***" + for file in "${files[@]}"; do + ewarn " ${file}" + done + ewarn "Move these custom hooks to ${EROOT}/etc/elogind/system-sleep/ instead." + fi } pkg_postrm() {