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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by finch.gentoo.org (Postfix) with ESMTPS id BAEF813835A for ; Fri, 26 Mar 2021 16:11:08 +0000 (UTC) Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id A04ECE0831; Fri, 26 Mar 2021 16:11:07 +0000 (UTC) Received: from smtp.gentoo.org (smtp.gentoo.org [IPv6:2001:470:ea4a:1:5054:ff:fec7:86e4]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by pigeon.gentoo.org (Postfix) with ESMTPS id 72E39E0831 for ; Fri, 26 Mar 2021 16:11:07 +0000 (UTC) Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.gentoo.org (Postfix) with ESMTPS id 0812633BEF8 for ; Fri, 26 Mar 2021 16:11:06 +0000 (UTC) Received: from localhost.localdomain (localhost [IPv6:::1]) by oystercatcher.gentoo.org (Postfix) with ESMTP id 602275CE for ; Fri, 26 Mar 2021 16:11:04 +0000 (UTC) From: "Sam James" To: gentoo-commits@lists.gentoo.org Content-Transfer-Encoding: 8bit Content-type: text/plain; charset=UTF-8 Reply-To: gentoo-dev@lists.gentoo.org, "Sam James" Message-ID: <1616775013.7c1f703583b083eca38fb4e7637be43b1a967837.sam@gentoo> Subject: [gentoo-commits] repo/gentoo:master commit in: app-laptop/laptop-mode-tools/ X-VCS-Repository: repo/gentoo X-VCS-Files: app-laptop/laptop-mode-tools/laptop-mode-tools-1.74.ebuild X-VCS-Directories: app-laptop/laptop-mode-tools/ X-VCS-Committer: sam X-VCS-Committer-Name: Sam James X-VCS-Revision: 7c1f703583b083eca38fb4e7637be43b1a967837 X-VCS-Branch: master Date: Fri, 26 Mar 2021 16:11:04 +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: 4c1fdf28-eb78-4744-91db-cb93fbabf534 X-Archives-Hash: 90435dd0348e2ab3f7f501a932cc5ba5 commit: 7c1f703583b083eca38fb4e7637be43b1a967837 Author: Sam James gentoo org> AuthorDate: Fri Mar 26 16:10:13 2021 +0000 Commit: Sam James gentoo org> CommitDate: Fri Mar 26 16:10:13 2021 +0000 URL: https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7c1f7035 app-laptop/laptop-mode-tools: convert to tmpfiles.eclass Signed-off-by: Sam James gentoo.org> .../laptop-mode-tools-1.74.ebuild | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.74.ebuild b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.74.ebuild index 8eb88dc3d5e..c90637e13dd 100644 --- a/app-laptop/laptop-mode-tools/laptop-mode-tools-1.74.ebuild +++ b/app-laptop/laptop-mode-tools/laptop-mode-tools-1.74.ebuild @@ -1,32 +1,33 @@ -# Copyright 1999-2020 Gentoo Authors +# Copyright 1999-2021 Gentoo Authors # Distributed under the terms of the GNU General Public License v2 EAPI=7 -inherit eutils multilib systemd udev +inherit optfeature systemd tmpfiles udev MY_P="${PN}_${PV}" DESCRIPTION="Linux kernel laptop_mode user-space utilities" HOMEPAGE="https://github.com/rickysarraf/laptop-mode-tools/wiki" SRC_URI="https://github.com/rickysarraf/${PN}/releases/download/${PV}/${MY_P}.tar.gz" +S="${WORKDIR}/${MY_P}" LICENSE="GPL-2" SLOT="0" KEYWORDS="~amd64 ~ppc ~x86" IUSE="+acpi apm" -RDEPEND="sys-apps/iproute2 +RDEPEND=" sys-apps/ethtool + sys-apps/iproute2 sys-apps/which || ( sys-apps/sdparm sys-apps/hdparm ) acpi? ( sys-power/acpid ) - apm? ( sys-apps/apmd )" - -S="${WORKDIR}/${MY_P}" + apm? ( sys-apps/apmd ) +" src_compile() { :; } @@ -40,20 +41,25 @@ src_install() { TMPFILES_D="/usr/lib/tmpfiles.d" \ ACPI="$(usex acpi force disabled)" \ PMU="disabled" \ - APM="$(usex apm )" \ + APM="$(usex apm)" \ SYSTEMD=yes \ sh ./install.sh || die dodoc Documentation/*.txt README.md newinitd "${FILESDIR}"/laptop_mode.init-1.4 laptop_mode + newtmpfiles "${S}"/etc/systemd/laptop-mode.conf.tmpfiles laptop-mode.conf + rm "${ED}/usr/lib/pm-utils/sleep.d/01laptop-mode" || die "could not remove PM utils config." } pkg_postinst() { local daemon_name optfeature "bluetooth support" net-wireless/bluez - if [[ -z "${REPLACING_VERSIONS}" ]]; then + + tmpfiles_process laptop-mode.conf + + if [[ -z "${REPLACING_VERSIONS}" ]] ; then if use acpi || use apm; then if use acpi; then daemon_name="acpid"